GameUtils.py problem

ripple01

Emperor
Joined
Mar 7, 2006
Messages
1,254
Location
New York City
Hello all,

I am using a modified GameUtils.py that includes code from the Inquisitor mod and zebra9's zReligion mod. When I simulate a game using aiplay, it locks up around turn 300 with the following:

Traceback (most recent call last)

File "CvGameInterface", line 180 in AI_chooseProduction
File "CvGameUtils", line 236, in AI_chooseProduction

NameError: global name "pPlayer" is not defined

I've attached my GameUtils.py file. Could anyone look at this and suggest any fixes?

Thanks,
ripple01
 

Attachments

After the line that says iOwner = pCity.getOwner( ) add
pPlayer = gc.getPlayer(iOwner)
 
Back
Top Bottom