Adding xml tags

Discussion in 'Civ4 - Caveman 2 Cosmos' started by Joij21, Jun 14, 2020.

  1. Joij21

    Joij21 Emperor

    Joined:
    Jul 21, 2016
    Messages:
    1,278
    Just curious, how do you add new xml tags?
     
  2. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    8,668
    Location:
    Poland
  3. Joij21

    Joij21 Emperor

    Joined:
    Jul 21, 2016
    Messages:
    1,278
    So it requires coding with the DLL right?
     
  4. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    8,668
    Location:
    Poland
    Yes - every XML tag is done in c++ (DLL).
    Even simplest one, that does nothing.
    This is how modding in this game works.
    Python is interface, BUG settings, pedia, events and other such stuff.
     
  5. Joij21

    Joij21 Emperor

    Joined:
    Jul 21, 2016
    Messages:
    1,278
    Then where is the functionality for the tags <EarlyArtDefineTag>, <MiddleArtDefineTag>, and <LateArtDefineTag> located in the DLL? I was thinking of just copying and then pasting the code into the Civ4 Colonization DLL of a mod. This is because I want units to change skins based on the game era, however Colonization only has <ArtDefineTag> so units can't change with era changes.
     
  6. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    8,668
    Location:
    Poland
    Source code isn't in SVN, but its in those cpp files (they are in github):

    CvInfos.cpp
    CvInfos.h
    CvUnitInfo.cpp
    This may be referenced under different names in other files too.
     
  7. Joij21

    Joij21 Emperor

    Joined:
    Jul 21, 2016
    Messages:
    1,278
    Can't find the cpp files on GitHub the DLL isn't there.
     
  8. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    7,509
    Location:
    Norway
  9. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,640
    Gender:
    Male
    Location:
    Las Vegas
  10. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    8,668
    Location:
    Poland
    You don't decompile DLL, this DLL is created if not present on Github.
     

Share This Page