Scores in the score list become zero and stay there with this dll both with and without PPIO installed.Here's the compiled .dll if you want to test with that.
The python code is processed and the correct value is returned both with and without PPIO installed.
Could you post the calc. score source code you wrote for that last dll?
Spoiler I guess it should look something like this :
Code:
int CvPlayer::calculateScore(bool bFinal, bool bVictory) const
{
PROFILE_FUNC();
if (!isAlive())
{
return 0;
}
if (GET_TEAM(getTeam()).getNumMembers() == 0)
{
return 0;
}
long lScore = 0;
CyArgsList argsList;
argsList.add((int) getID());
argsList.add(bFinal);
argsList.add(bVictory);
PYTHON_CALL_FUNCTION(__FUNCTION__, PYGameModule, "calculateScore", argsList.makeFunctionArgs(), &lScore);
return ((int)lScore);
}
Last edited: