XML Basics -- when to create a new file and when to mod the original

Discussion in 'Civ4 - Creation & Customization' started by Padmewan, May 3, 2006.

  1. Padmewan

    Padmewan King

    Joined:
    Nov 26, 2003
    Messages:
    748
    Location:
    Planet
    I learned the hard way recently that you can create all sorts of arbitrary XML files to hold TXT_KEY values, and the compiler will magically find them. And I also learned about GlobalDefinesAlt rather than GlobalDefines.

    Are there any other "magic" XML values that I can add in a place OTHER than the original file? For example, if I wanted to create a new SOUND_DEF, must I add that to the main sounds XML, or, like TXT_KEY, can I just create a new XML file referencing the same schema?

    (Is any of this documented anywhere?)
     
  2. Agent 009

    Agent 009 Civ 4 Addict

    Joined:
    Mar 28, 2006
    Messages:
    346
    Location:
    In a virtual Civ 4 Environment.
    The art defs I think work the same way as the TXT_KEY refs. So, you can create a new file I believe. I mean look at the XML Art folder. There are several of them in there that point to each of the different aspects of the game.

    So, it makes sense that you can have an ART_DEF somewhere and create a new Art def file that points to it.
     
  3. Padmewan

    Padmewan King

    Joined:
    Nov 26, 2003
    Messages:
    748
    Location:
    Planet
    Makes sense, of course, but does it work? I guess I'll find out tonight :)
     

Share This Page