Iustus
King
The python function "canRazeCity" is missing from the Alexander the Great scenario. This function is called from the SDK, so needs to exist or you get python runtime errors.
If you look at line 54 of CvGameUtils.py from Warlords/Assets/Python/:
Those are the lines you need. If the Alexander scenario wants to return false all the time, that would be perfectly ok.
If you look at CvGameUtils.py from Warlords/Mods/Alexander The Great/Assets/Python/, it is missing this definition. (It has some new stuff for Alexander, but it needs to have this definition). Fix is to add those lines at line 55 to the Alexander the Great version.
called from SDK, CvPlayer::acquireCity, CvPlayer.cpp line 1308:
and CvPlayer::canRaze, CvPlayer.cpp line 4007:
Was this bug already reported? I am suprised it was not fixed in 2.08. I did not check the other scenarios to see if any other suffer from the same ommision.
-Iustus

If you look at line 54 of CvGameUtils.py from Warlords/Assets/Python/:
Code:
def canRazeCity(self,argsList):
iRazingPlayer, pCity = argsList
return True
Those are the lines you need. If the Alexander scenario wants to return false all the time, that would be perfectly ok.
If you look at CvGameUtils.py from Warlords/Mods/Alexander The Great/Assets/Python/, it is missing this definition. (It has some new stuff for Alexander, but it needs to have this definition). Fix is to add those lines at line 55 to the Alexander the Great version.
called from SDK, CvPlayer::acquireCity, CvPlayer.cpp line 1308:
Code:
gDLL->getPythonIFace()->callFunction(PYGameModule, "canRazeCity", argsList.makeFunctionArgs(), &lResult);
Code:
gDLL->getPythonIFace()->callFunction(PYGameModule, "canRazeCity", argsList.makeFunctionArgs(), &lResult);
Was this bug already reported? I am suprised it was not fixed in 2.08. I did not check the other scenarios to see if any other suffer from the same ommision.
-Iustus