Problem with functions called by a ModNetMessage

Alrik2002

Warlord
Joined
May 24, 2012
Messages
214
Location
Berlin, Germany
Hi,

I´ve some parts of my code which are called by a ModNetMessage when onCityBuilt is called. These is f.e. a bonus for the population for leaders with the trait expansive. I´ve these from platyping an they work great even when they are called by a ModNetMessage. The only Problem I have is, that tey don´t work when I give a settler the order to found a new city when he has no movement pints left. He founds the city automatically in the next round but without the bonus.

When I write the code directly in the function onCityBuilt it works but in Pitboss games, I got an OOS (that´s why I use the ModNetMessage).

Is there any way to solve this problem?

Thank you very much!
 
The oos is more likely due to those addbuilding codes you have.
Modnet didn't workbecause when they auto found, the unit was not selected
 
Hi,

yes these addbuildings-things need to be called by a ModNetMessage, that´s why I used them already. But I believe to remember, that some of the Traits are causing OOS too, but only in Pitboss games, so that I put them behind the ModNetMessage too and it solved the problem. In normal network games they work perfect even without ModNetMessages.

Thx for the answer. Ok then I have to live with it.
 
Top Bottom