GameUtils file fails to load in BUG

OrionVeteran

Deity
Joined
Dec 25, 2003
Messages
2,443
Location
Newport News VA
I have been up all night trying to configure a new mod to load OGIGameUtils.py in BUG, but it fails every time. :cry: Everything else is working perfectly.

I get the following error:

Code:
BugConfig - failure parsing C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\MineWarfare4\Assets\Config\OGIGameUtils.xml at line 11

Line 11 is:

Code:
<gameutils module="OGIGameUtils" class="OGIGameUtils" override="True"/>

This is what is in the log file:

Code:
Traceback (most recent call last):
  File "BugConfig", line 110, in unknown_endtag
  File "BugConfig", line 334, in endChild
  File "BugConfig", line 337, in end
  File "BugConfig", line 318, in process
  File "BugGameUtils", line 405, in handle
  File "BugUtil", line 650, in callFunction
  File "BugUtil", line 629, in lookupFunction
  File "BugUtil", line 623, in lookupModule
ConfigError: No such module 'OGIGameUtils'

What do I have to do to get my OGIGameUtils.py to load properly in BUG?
 
Where is the file OGIGameUtils.py?
It should be in your mod's Assets\Python folder (or maybe in a sub-folder like Contrib, but I'd just put it directly in Python).
 
Where is the file OGIGameUtils.py?
It should be in your mod's Assets\Python folder (or maybe in a sub-folder like Contrib, but I'd just put it directly in Python).

I moved the OGIGameUtils.py up from a sub folder directly to the Python folder. I've tried creating different files to run it from. Same result every time. I know it's going to be some boned headed thing I forgot to do. I just can't find it. This mod is made up of a merge of Better BTS AI, BUG 4.4 and a new version of one of my mods (Mine Warfare). The combination allows AI Auto play and provides stability to BTS. OGIGameUtils.py is the only file left to load, as everything else works OK.
 
I decided to rebuild the mod again. So I transferred the Mine Warfare files to a new base mod for BUG and BBAI. Result: It now works! :crazyeye:

I have no idea why other than to say, I must have had a corrupt file somewhere.

Side Note: Testing of this stand alone mod has proven my theory to be true. Although Mine Warfare ver 2 works, the game performance becomes really slow in the late game. This is due to checking the movement of every unit to see if there is a mine on the plot. The more units you have, the slower the game becomes. It is really slow on a huge map. Therefore, after careful consideration, I have come to the conclusion that Mine Warfare must migrate to SDK. I will require help to make this happen, as I have limited SDK skills. Still, I will release the mod for others to consider.
 
Back
Top Bottom