Nonsense. You, The_J, and EF might be best at Python here.
Thanks, but in fact i'm a horrible coder, you just can't really see it here.
And you forgot Xienwolf, jdog and some of the others which do not regularly look in here.
But back to the problem:
PHP:
Traceback (most recent call last):
File "BugGameUtils", line 342, in callHandler
File "BugGameUtils", line 297, in <lambda>
File "DestinyCvGameUtils", line 564, in canPickPlot
AttributeError: 'module' object has no attribute 'lPlagueCities'
the line 564 returns true for the call if pGodsOfOld.isPlagueCity. pGodsOfOld = GreatDoctorEventManager, and GreatDoctorEventManager.py has only one class GreatDoctorEventManager, so this assignment should be enough to be able to call the function, right?
But somehow this does not work, because else it would not return true, right?
Because the error can't be in isPlagueCity:
PHP:
def isPlagueCity(self, iX, iY):
iCoords = ( iX, iY )
return self.lPlagueCities.count( iCoords ) == 0
EEEEdit: Should it not be pGodsOfOld = GreatDoctorEventManager()?
Because else the constructor is not called and the mentioned variables in the error are not initialized.
crap, i do not have enough experience here.
The other error:
PHP:
Traceback (most recent call last):
File "CvScreensInterface", line 969, in forceScreenUpdate
File "CvMainInterface", line 1313, in updateScreen
AttributeError: 'module' object has no attribute 'getPlagueCities'
ERR: Python function forceScreenUpdate failed, module CvScreensInterface
1313 is pGodsOfOld.doPlagueEffect(), same definition as above.
The function itself is:
PHP:
def doPlagueEffect(self):
for iCoords in self.lPlagueCities:
city = gc.getMap( ).plot( iCoords[0], iCoords[1] ).getPlotCity( )
cityPlotPoint = city.plot( ).getPoint( )
plagueEffect = gc.getInfoTypeForString("EFFECT_GODS_PLAGUE")
CyEngine().triggerEffect( plagueEffect, cityPlotPoint )
The problematic function getPlagueCities is nowhere called in there, right?
Something is here really messed up.