Modular GameUtils

Ferocca

Warlord
Joined
Nov 21, 2011
Messages
179
I'll try to keep it short: I am using a mod with a BUG/BULL core, so according to the 'documents' I have to make all my python mods modular to prevent errors - although I have no idea how to make a python code modular!

I am using almost no python mods, I'm only using 'def cannotTrain' in the CvGameUtils.py

But yes, I have some nasty CTDs, so I have to get this code out of the python folder and into the modular folder (I should add a python line instead of replacing the original CvGameUtils.py-file if you know what I mean).

Thanks in advance!
 
BUG's modular Python files do not go in the Modules folder. They just go into different files (whatever file name you want to use) in the Python folder. You'd create a new file with the function in it and use BUG to load it like it loads everything else (via specifications in the Config/init.xml file).

Not exactly detailed instructions. Go to the link provided by The_J for more detailed info, and look at other mods that use BUG to see how they do it (like, presumably, modifieda4's mod).
 
Back
Top Bottom