the100thballoon
Emperor
- Joined
- Aug 13, 2003
- Messages
- 1,239
Anyone tried to make sense of the XML files yet? I glanced at one of them and its not too confusing, but a tutorial is definately in order. Anyone up to the challenge?
popewiz said:Ok, I'll try to help out a little before I go to sleep. First of all, everything we'll be modding will be in the folder marked .../Firaxis Games/Sid Meier's Civilization 4/Assets. From there just open the XML folder and look around. I decided to open up the Units folder and check out the Civ4UnitInfos.xml file. Each unit in the game has a listing just like this:
<UnitClassInfo>
<Type>UNITCLASS_HINDU_MISSIONARY</Type>
<Description>TXT_KEY_UNIT_HINDU_MISSIONARY</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>3</iMaxPlayerInstances>
<DefaultUnit>UNIT_HINDU_MISSIONARY</DefaultUnit>
</UnitClassInfo>
The numbers in between reflect the total number of units of that type allowed in the entire map, for each team, and for each player. -1 means that there is no limit, and any number including 0 places a limit on that type. Try changing the number 3, starting the hindu religion in the game, and you'll see that you'll be able to build that many hindu missionaies. Anyway, I'm off to sleep now very exciting times ahead.
Hopefullly somebody who is a better programmer than me will make an editor. Until then, I guess Ctrl-F works.Zurai said:Yeah, I kinda wish they did one XML file per unit rather than one XML file with all 100+ units. It's a lot to slog through. Same with the buildings and a lot of the other "big systems".
Weasel Op said:Hopefullly somebody who is a better programmer than me will make an editor. Until then, I guess Ctrl-F works.