getting started

jklame

Chieftain
Joined
Nov 12, 2005
Messages
2
I don't seem to be able to get any custom python scripts in my mod directory to be used by the game. Here's what I did.

- Created a mod called Test: Mods/Test/
- Created subdirectories: Mods/Test/Assets/
Mods/Test/Assets/XML/
Mods/Test/Assets/XML/Terrain/
Mods/Test/Assets/Python/
- Copied all XML files from the main Assets/XML/Terrain/ directory to the corresponding mod directory
- Copied the CvEventManager.py from the main Assets/Python directory to the corresponding mod directory

When I load my mod, the changes I made in my XML directory do take effect. However, the changes I made in my CvEventManager.py script do not. The only change I made in my CVEventManager.py script was to change the text of a single debug message. My debug message isn't getting printed, but the one in the main Assets/Python directory is.

Any ideas?

John
 
Welcome to CFC! :D

Sorry, but this is the wrong forum. The subforums are only for completed files, or in this case tutorials.

You may need to clear your cache. Go to C:\Documents and Settings\USERNAME\Application Data\My Games\Civilization 4. Under Tools>> Folder Options >> View, select "Show hidden folders and files" You should now see a cache folder. Delete it. That should force the game to load all of the files again, including your new XML files.

btw, you only need to include files that you alter in the mod folder.
 
Thanks, it was indeed a caching problem. It was throwing me off because the xml was not getting cached, but the python scripts were.

Sorry for posting in the wrong forum, thanks for being nice about it. :-)

John
 
Back
Top Bottom