-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiplayer is desynchronized immediately from the start #43
Comments
Repeating a game start multiple times with predetermined houses Harkonnen vs Atreides, I do always get both houses starting at bottom right at the same spawn position with desync units. If instead I choose Random starting houses, I do get a starting configuration where the two players do hold their own houses: game host is randomized to be Fremen: whereas remote peer sees themselves as being Ordos: However looking at the enemy camp on both computers, the players are again desynchronized: game host misthinks that the enemy is instead Harkonnen: and the remote player misinterprets that the game host would be Atreides instead of Fremen: so the house identities seem to be independently randomized by the host and the peer, or something along to that effect. |
Attempting to play the game in this desynchronized colors state quickly causes the game to desynchronize even more: in the scenario the host player got two reinforcements units: However peeking at the same base at the remote peer, they have now desynchronized and do not observe those two reinforcement units to exist at all: Attempting to do a combat between the two houses results in very desynchronized situation, where the movement of some units does replicate, but combat and destroying other units does not. |
Was wondering whether this might be a recent regression from all the changes that went in (especially #31), so tried an earlier commit tag
which predates that change. Though the issue does persist there as well. Tried also an earlier tag |
The issue does NOT reproduce on the Sourceforge latest installation zip ( |
This could easily have broken years ago. My first guess would be that the random number generator state isn't being shared properly. Take a look at the log messages that look like so:
Most should match between participants in the same game ("UI" should not, since that random number generator is local). |
Multiplayer modes don't seem to work: starting a two player Harkonnen vs Atreides game:
results in an immediately desynchronized game starting state. The game host (player 1 / clb) sees seems themselves as Harkonnen:
However the remote player sees themselves as Atreides, but on their screen, they are located in the identical location as player 1, and from their point of view, all the units belong to Atreides and not to Harkonnen:
Both players can issue order to these units as if they were their own. The previous orders are forgotten, so the players can essentially fight over commanding the units.
The text was updated successfully, but these errors were encountered: