Questions about game data

numcrunch

Chieftain
Joined
Sep 9, 2018
Messages
4
I'm writing a small program that will help decide which opponents I want to play against based on the personalities of the various leaders.
However there are some different numbers associated with the same leaders inside the xml files. To clarify, I'm playing with the current patch and both BNW and G&K.

I would like to know how the game verifies which files are loaded at the start of game play.
One really obvious question for a more obvious answer is: Couldn't you just include the data that is changing in the file and include revision or versions in the file so the game knows which is the most current?
  • Augustus
    • Flavor Religion
      • 5 \Gameplay\XML\Leaders\CIV5Leader_Augustus.xml
      • 4 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Augustus.xml
  • Bismark
    • Flavor Religion
      • 5 \Gameplay\XML\Leaders\CIV5Leader_Bismark.xml
      • 3 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Bismark.xml
  • Darius
    • Flavor Religion
      • 8 \Gameplay\XML\Leaders\CIV5Leader_Darius.xml
      • 6 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Darius.xml
  • Genghis Khan
    • Flavor Religion
      • 5 \DLC\DLC_01\Gameplay\XML\CIV5Leader_GenghisKhan.xml
      • 3 \DLC\Expansion2\DLC\DLC_01\Gameplay\XML\CIV5Leader_GenghisKhan.xml
    • Minor Civ Approach Protective
      • 5 \DLC\Expansion\DLC\DLC_01\Gameplay\XML\CIV5Leader_GenghisKhan.xml
      • 3 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_GenghisKhan_Expansion.xml
    • Minor Civ Approach Conquest
      • 7 \DLC\Expansion\DLC\DLC_01\Gameplay\XML\CIV5Leader_GenghisKhan.xml
      • 8 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_GenghisKhan_Expansion.xml
  • Harun al-Rashid*
    • Flavor Nuke
      • 3 \Gameplay\XML\Leaders\CIV5Leader_HarunAlRashid.xml
      • 5 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_HarunAlRashid.xml
  • Hiawatha
    • Flavor Ranged
      • 6 \Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
      • 7 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
    • Flavor Expansion
      • 6 \Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
      • 9 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
    • Flavor Growth
      • 6 \Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
      • 3 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
    • Flavor Infrastructure
      • 5 \Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
      • 4 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
    • Flavor Science
      • 5 \Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
      • 4 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
    • Flavor Culture
      • 7 \Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
      • 5 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
    • Flavor Diplomacy
      • 5 \Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
      • 6 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Hiawatha.xml
  • Napoleon
    • Flavor Religion
      • 4 \Gameplay\XML\Leaders\CIV5Leader_Napoleon.xml
      • 3 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_Napoleon.xml
  • Oda Nobunaga
    • Flavor Religion
      • 5 \Gameplay\XML\Leaders\CIV5Leader_OdaNobunaga.xml
      • 4 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_OdaNobunaga.xml
  • Wu Zetian
    • Flavor Expansion
      • 4 \Gameplay\XML\Leaders\CIV5Leader_WuZetian.xml
      • 6 \DLC\Expansion\Gameplay\XML\Leaders\CIV5Leader_WuZetian.xml
* - his name doesn't follow format in file structure or the data structure.

Disclaimer - I was lazy in my implementation of finding these values because extracting the information was a pain in the butt since Firaxis used 2 very different schemes in these files. There could very well be others - this is only an example.
 
Top Bottom