URL:
<http://gna.org/bugs/?16316>
Summary: Game state becomes inconsistent in network game,
synchronization issue
Project: Wormux
Submitted by: rhywek
Submitted on: Wednesday 07/28/2010 at 20:53
Category: Network
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 0.9.2
Discussion Lock: Any
_______________________________________________________
Details:
Almost every time I play Wormux via LAN, some inconsistencies arise in
the game state. I estimate this happens in 80% of games I play.
The typical scenario is like this:
Player 1 creates game server, player 2 connects.
A standard game 6 against 6 is started.
The game goes normally for 10 minutes or so.
Then some inconsistency arises.
I have tried to evaluate what kind of inconsistency arises first and I
think in most cases it's the movement information. I mean player 1 moves
the character around using arrows and the character moves on his
machine, but on the other machine (which player 2 sees) the character
moves by fewer pixels. For instance player 1 holds the left arrow for 1
second, moving the character by 100 pixels, but on player 2's screen the
character moves only 90 pixels. It looks to me as if some movement
information wasn't fully transferred to the other computer via network.
This movement inconsistency results in further inconsistencies. Now
player 1 will use some weapon, but due to the fact that the character is
positioned differently on the map on both computers, the weapon will
have different effect on both computers. It explodes in different
places, so that the terrain is now different on both computers. Also the
injuries to characters are different on both computers. On one computer
the character could loose 40% life, on the other 26%. Sometimes the
character dies on one computer, but not on the other.
Another thing is that as soon as some inconsistencies arise, the game
slows down. Sometimes it's just the graphics that gets low fps (say 10
fps instead of 30). Sometimes it's also the controls - when you press
arrows on the keyboard, your character responds to that after a second
or so.
This bug is of course not strictly reproducible. I get it almost each
time I play, but every time it occurs at different point in time.
I attach the output printed by wormux on both computers in one game
where inconsistencies occurred. In that game, inconsistencies were quite
small (just few pixels' misplacement of a character), but big enough to
be noticed, because some terrain differences occurred.
The server machine runs Ubuntu 10.04 i686 and wormux 1:0.9.2-0~ppa2.
The client machine runs Gentoo x86_64 and wormux 0.9.2.1.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wednesday 07/28/2010 at 20:53 Name: wormux_server.out Size: 468kB
By: rhywek
<http://gna.org/bugs/download.php?file_id=9607>
-------------------------------------------------------
Date: Wednesday 07/28/2010 at 20:53 Name: wormux_client.out Size: 475kB
By: rhywek
<http://gna.org/bugs/download.php?file_id=9608>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?16316>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna