Python (?) Problem

mqduck

Chieftain
Joined
Mar 10, 2002
Messages
69
Location
Mountain View, CA, USA
I'm making a merge of BAT 2.2, Better BTS AI 0.84 and Next War. It's going pretty well, but I'm getting an error I don't know what to do with. On starting a new game, it complains about onPreSave or something failing.

PythonErr.log:
Traceback (most recent call last):
File "BugEventManager", line 362, in _handleDefaultEvent
File "ReminderEventManager", line 247, in onPreSave
File "SdToolKit", line 213, in sdDelGlobal
File "SdToolKit", line 101, in sdModLoad
File "SdToolKit", line 76, in sdModInit
AttributeError: 'list' object has no attribute 'has_key'

Relevant part from PythonDbg.log:
PY:OnPreSave
19:49:12 TRACE: Error in OnPreSave event handler <bound method ReminderEventManager.onPreSave of <ReminderEventManager.ReminderEventManager instance at 0x1E2B87B0>>
19:49:12 TRACE: 'list' object has no attribute 'has_key'
2 SCREEN TURNED ON

Can anyone help?
 
Yes, there is a thread in our forum where Cammagno put together a merge of BUG and Next War. Next War must be modified to not store a list in the game's script data. You should be able to snake the code from that thread.
 
Top Bottom