I need a little python help

Grev_michal

Chieftain
Joined
Dec 8, 2005
Messages
28
Hope someone has a solution for this one:

I keep getting this error in the game - its pops op after every turn ;-(


Traceback (most recent call last):

File "CvEventInterface", line 27, in onEvent

File "CvEventManager", line 164, in handleEvent

File "CvSevoEventManager", line 92, in onEndPlayerTurn

File "SevoMod", line 424, in onEndPlayerTurn

AttributeError: RealSlavery instance has no attribute 'playerSlaves'
ERR: Python function onEvent failed, module CvEventInterface


Maybe one of you knows what the error means.

/michal
 
Grev_michal said:
Hope someone has a solution for this one:

I keep getting this error in the game - its pops op after every turn ;-(


Traceback (most recent call last):

File "CvEventInterface", line 27, in onEvent

File "CvEventManager", line 164, in handleEvent

File "CvSevoEventManager", line 92, in onEndPlayerTurn

File "SevoMod", line 424, in onEndPlayerTurn

AttributeError: RealSlavery instance has no attribute 'playerSlaves'
ERR: Python function onEvent failed, module CvEventInterface


Maybe one of you knows what the error means.

/michal

The 424th line of Sevomod.py seems to be attempting to use a RealSlavery.playerSlaves function that doesn't exist.
 
how do I fix it - can I open the py file and just delete that line?

( have a feeling thats not gonna work hehe )
 
Grev_michal said:
how do I fix it - can I open the py file and just delete that line?

( have a feeling thats not gonna work hehe )

Yeah, thats not gonna work. You would have to look at the code, see what its supposed to do, what its doing and the difference between those two things.
 
Back
Top Bottom