Another error has surfaced, this time only seen randomly, in multiplayer games.
Sometimes players gets more extra dissent when a minister death event occurs than what is intended.
The error is mostlikely caused be command sequence of sleepminister & install new minister commands, combined with internet lag between host and klient. The sleepminister command is executed removing old minister, because of lag between host and client the install command gets delayed, so the game installs a suitable minister automaticly, often the same as in the command, this give dissent. Then the install new minister command gets executed installing a new minister again giving the player dissent.
Code:
action_a = {
name = "OK"
command = { type = sleepminister which = 1001 }
command = { type = headofstate which = 1031 }
}
By changing the sequence from above to below, thereby making sure the new minister is installed before the old is sleept should make sure that it cant happend.
Code:
action_a = {
name = "OK"
command = { type = headofstate which = 1031 }
command = { type = sleepminister which = 1001 }
}
This should be done for all events that changes ministers. Note most events do have the correct sequence of command.
Sofar from a sample of 1 multiplayre game with a laggy host it has worked. But this being a random error nothing is sure. I however cant think of any other cause for this than the one described above.