Fabrysse
Charming-snake learner
At a turn "t", I want a player "A" to be killed and his cities acquired by other players : "B", "C", "D",...
So, I have a loop that takes all the cities of "A" one by one, and I say for instance PlayerB.acquireCity(theCity, False, False)
I tried PlayerB.acquireCity(theCity, True, False) : same result
Sometimes it runs, sometimes not. And I don't exactly know why (I have an unidentifiable C++ exception on this line in the python logs, and nothing more).
When I look at the map after my loop (that crashed), I see that Player A still have only one city.
So my question is : Do I have to do something before killing this player ?
If you have any idea, please tell it, I'll try....
While I write this, I think that the problem could be that my Player A is the human player (in a game "single player only"). Could it be the problem ?
So, I have a loop that takes all the cities of "A" one by one, and I say for instance PlayerB.acquireCity(theCity, False, False)
I tried PlayerB.acquireCity(theCity, True, False) : same result

Sometimes it runs, sometimes not. And I don't exactly know why (I have an unidentifiable C++ exception on this line in the python logs, and nothing more).
When I look at the map after my loop (that crashed), I see that Player A still have only one city.
So my question is : Do I have to do something before killing this player ?
If you have any idea, please tell it, I'll try....
While I write this, I think that the problem could be that my Player A is the human player (in a game "single player only"). Could it be the problem ?