Results 1 to 2 of 2

Thread: problem with strategy.sd.xml file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default problem with strategy.sd.xml file

    hello

    i would like to put my new COA on an another TGA (other than an already modded interface file like stratpage_01 etc.. that work fine). i had the doc, change the number of page, idem for counts, i put the coord and game crash at start, with an unspecified error in the error log.

    should the coord be within the white part of the alpha channel, or what ?? don't know.

    thanks if someone can help.

    EDIT : I add this new file.tga in each cultures and it works now.
    Last edited by Matthias the great; November 04, 2009 at 03:15 AM.

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: problem with strategy.sd.xml file

    From my Adding a new Faction tutorial:
    Coat of Arms (CoA) files
    During my long travels in the modding world, I heard that these are easy to replace but very difficult to add. Let us try to make both ways easy. In the data\ui folder are two xml files (remember: right click, Open with notepad) which determine the source of graphics for the strategic map and for other shared graphics. Let us start with ‘shared’. I took the liberty to finish this file and the ‘strat’ file as well. It makes explaining a bit easier. Once you open ‘shared.sd.xml’, you will notice two parts: the small one underneath ‘texture_pages count’ and the huge one underneath ‘sprites count’. The first one points to the graphic files that contain all the little graphic signs. You will notice this entry: ‘sharedpage_NEW_02.tga’. This is the file that contains our brand new (cloned) CoA in the small version and can be found in the data\ui\southern_european\interface directory. When you add a new entry here, you have to remember to increase the count number (count="4"). The entry consists of the filename and the height and width of the graphic file.
    In the big part you specify the name of the graphic element (remember descr_sm_factions?), in this case ‘SMALL_FACTION_LOGO_OTTOMANS’ as well as its position on the graphic. This can be a bit tricky, therefore the template. The index on the left of the line has to be in chronological order, starting with zero at the top. If you have to delete an entry in the middle, you will have to renumber every entry after it. The number of the ‘count=’ entry will be one bigger as the last line as the count starts with zero. The same principle applies for the number of the ‘page=’ entry for the individual element. In our case, it is 3 as it is the fourth page, starting with zero as the first page. Underneath the entry for ‘ottomans’ I left template entries for ‘yellow’ and ‘blue’ for later use.
    The same principle applies to ‘strategy.sd.xml’ so I will not bore you with a repetition, just the ‘count’ numbers change.










Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •