View Full Version : [BTS] Where is CvUtil.py?


Stormreaver
Jul 28, 2007, 10:41 AM
In my mod I'm adding keyboard events, which means I need to add event IDs somehow. At least in the mods I've looked att before those are specified in CvUtil.py and CvUtil is still imported in CvEventManager.py.

However, I can't find the CvUtil.py file - does that mean it is read from the Vanilla or Warlords Assets/Python folder if not overridden in Mods/ModName/Assets/Python?

I want to make sure I copy the right .py file to make changes to...

MatzeHH
Jul 28, 2007, 10:52 AM
does that mean it is read from the Vanilla or Warlords Assets/Python folder if not overridden in Mods/ModName/Assets/Python?

Exactly.

Matze

Stormreaver
Jul 28, 2007, 10:57 AM
At least it's somewhat predictable. Exactly in which order are files looked for/read?

1. BTS ModFolder/Assets/
2. MyDocs CustomAssets/
3. BTS Assets/
4. Warlords Assets/
5. Vanilla Assets/

Which in this case means I should copy and edit Warlords/Assets/Python/CvUtil.py?