What Python Scripts are called and what XML files are Called in a scenario?

I_batman

Emperor
Joined
Jun 22, 2004
Messages
1,261
Location
markham, ontario
I am trying to get a handle on Python and XML, without the benefit of actually playing the game. Yeah, difficult to do, but the game installed on my laptop, but I can't run it, and I am a month away now from getting a desktop powerful enough to play the game.
However, the game installed all the files perfectly so I am going through the various tutorials on Python, and trying to understand what files are called when and how by the various Python scripts.

I have been keying on the WorldBuilderSave file (under directory Public Maps)for the american revolution scenario. This XML file clearly holds the map, and has a directory path back to mods\AmericanRevolution and gives basic info on each civ, the unit placement, and city information.

This is all as expected with Dale's tutorial on the WBS file.

I find info, on the unit types in
Mods\American Revolution\Assets\XML\Units directory. There is definitely info defining the types in Civ4UnitClassInfos.xml and Civ4UnitInfos.xml in that directory.

But the other file CivFormationInfos.xml in that directory is virtually unreadable in Notepad or Wordpad, since the builder of the file had something against newlines, and it is one entire text string. Any idea what that file does?

I also think that the Python script CvAMRevEvents.py in the Mods\AmericanRevoultion\Assets\Python will autogenerate units, but I can't figure out where this script puts them.

There are three other Python scripts in the this scenario's directory structure, but they appear to be generic scripts used in all scenarios.

So does anybody know how all these Python scripts and XML files work toegther?
 
Back
Top Bottom