How to reproduce multi-player game de-syncs
Moderator: Moderators
How to reproduce multi-player game de-syncs
Hi,
A few days ago, while playing with a friend of mine, we found a reliable way to reproduce the de-syncs. It happened 3 out of 3 times.
Setup:
Me (HOSTING) Canada: AMD 64 X2 5000+, 2Gb ram, GeForce 9800GT (512M), Win XP sp3, ADSL 8Mbps Down, 256 kbps Upload.
Friend (Client) Romania: dell 1520 laptop ( Intel Core 2 Duo 2000, 4Gb ram, nVidia GeForce 8600M GT (256), with Win XP sp3.
Game: 2vs2 BA game on the map DeltaSiege Island 8 Way (http://spring.jobjol.nl/show_file.php?id=1952). We ware 2 players and 2 KAI's (you need KAI as it does not build any water).
Steps to reproduce:
At the beginning of the game we only built 4 mex on the ground and then moved completely in the water. After 10, 15 minutes of play (you can speed up the game if you want, just give time to the AI to build a significant number of units) then just build an hydroplane complex, and a radar plane, and send the radar over the middle of the island. And there you go a gigantic de-sync, in one game the frame difference was up to 10.000. If I pressed the pause button he's game was still running for 5 min, and then we gave up.
Thanks.
A few days ago, while playing with a friend of mine, we found a reliable way to reproduce the de-syncs. It happened 3 out of 3 times.
Setup:
Me (HOSTING) Canada: AMD 64 X2 5000+, 2Gb ram, GeForce 9800GT (512M), Win XP sp3, ADSL 8Mbps Down, 256 kbps Upload.
Friend (Client) Romania: dell 1520 laptop ( Intel Core 2 Duo 2000, 4Gb ram, nVidia GeForce 8600M GT (256), with Win XP sp3.
Game: 2vs2 BA game on the map DeltaSiege Island 8 Way (http://spring.jobjol.nl/show_file.php?id=1952). We ware 2 players and 2 KAI's (you need KAI as it does not build any water).
Steps to reproduce:
At the beginning of the game we only built 4 mex on the ground and then moved completely in the water. After 10, 15 minutes of play (you can speed up the game if you want, just give time to the AI to build a significant number of units) then just build an hydroplane complex, and a radar plane, and send the radar over the middle of the island. And there you go a gigantic de-sync, in one game the frame difference was up to 10.000. If I pressed the pause button he's game was still running for 5 min, and then we gave up.
Thanks.
Re: How to reproduce multi-player game de-syncs
You may be confusing the "no sync response" messages for actual sync errors. Upload an infolog of one of these games (from both parties), right now this
looks like a symptom of your setting the game speed too high.And there you go a gigantic de-sync, in one game the frame difference was up to 10.000. If I pressed the pause button he's game was still running for 5 min
Re: How to reproduce multi-player game de-syncs
No, the game-speed was just for speeding up the reproducing steps, when we played the game we played it at normal speed. As for the infolog, it will have to wait, I did not saved it,so we will have to reproduce the bug again, sorry.Kloot wrote:looks like a symptom of your setting the game speed too high.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: How to reproduce multi-player game de-syncs
When your network connection is really bad, something like this can happen.
I can reproduce that with setting something like 400 ms ping and 10% packet loss.
I can reproduce that with setting something like 400 ms ping and 10% packet loss.
Re: How to reproduce multi-player game de-syncs
The de-sync never happened between us, except with using those steps. We have never experienced any lag, in any of our games. And we also use Skype to talk while playing, and there ware no problems with that either.Auswaschbar wrote:When your network connection is really bad, something like this can happen.
I can reproduce that with setting something like 400 ms ping and 10% packet loss.
Re: How to reproduce multi-player game de-syncs
As I understand it Skype can handle bad network conditions surprisingly well.xyz wrote: And we also use Skype to talk while playing, and there ware no problems with that either.
Re: How to reproduce multi-player game de-syncs
True, but what bothers me is the fact that we never got any de-sync, until we played it as the steps described above, and in that day we also played a chicken defence game, and no problems there.YokoZar wrote:As I understand it Skype can handle bad network conditions surprisingly well.xyz wrote: And we also use Skype to talk while playing, and there ware no problems with that either.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: How to reproduce multi-player game de-syncs
Chicken is a Lua AI, which runs on every clients computer and thus not causing any network traffic.xyz wrote:True, but what bothers me is the fact that we never got any de-sync, until we played it as the steps described above, and in that day we also played a chicken defence game, and no problems there.YokoZar wrote:As I understand it Skype can handle bad network conditions surprisingly well.xyz wrote: And we also use Skype to talk while playing, and there ware no problems with that either.
In contrast, KAI is a normal AI, running on your (or maybe your friends) computer, and sending its commands over network. Don't know how efficient it is in terms of bandwith, but that you have 2 of them running might kill your internets.
Re: How to reproduce multi-player game de-syncs
I will have to do some ore testing, because we use to play the same game configuration versus 2 KAI's but it never de-synced.Auswaschbar wrote:Chicken is a Lua AI, which runs on every clients computer and thus not causing any network traffic.
In contrast, KAI is a normal AI, running on your (or maybe your friends) computer, and sending its commands over network. Don't know how efficient it is in terms of bandwith, but that you have 2 of them running might kill your internets.
Re: How to reproduce multi-player game de-syncs
I still suspect there is a bug causing long and sometimes infinite loops in current Spring tho, would be interesting if you managed to reproduce those, but 99% chance this is just KAI giving too many orders at the same time.
Re: How to reproduce multi-player game de-syncs
Like trying to attack my plane with all the units? Sounds like a good explanation. Another thing that bothers me is how does the game manage to fall behind up to 10.000 frames (10000/20fps/60spm = 8 min) almost instantly?Tobi wrote:I still suspect there is a bug causing long and sometimes infinite loops in current Spring tho, would be interesting if you managed to reproduce those, but 99% chance this is just KAI giving too many orders at the same time.
Re: How to reproduce multi-player game de-syncs
Nah, what I was referring at really isn't a performance related thing.
It's 30 fps (simulation frames, which is what the number is), but 5.5 minute is still quite much yeah.
It's 30 fps (simulation frames, which is what the number is), but 5.5 minute is still quite much yeah.
Re: How to reproduce multi-player game de-syncs
I mean the AI gives an attack order to all its units to attack my plane, ant then it needs to send that order over the network, and as there are about 1000 units (500 per player) that's a lot of traffic, in one frame I suspect.Tobi wrote:Nah, what I was referring at really isn't a performance related thing.
It's 30 fps (simulation frames, which is what the number is), but 5.5 minute is still quite much yeah.
As for the 10.000 frame lag, I got that form the de-sync message, the one with: "Delay response for frame ### current frame ###", and from the fact that talking to my friend he was seeing actions that happened on my screen a long long time ago.
Re: How to reproduce multi-player game de-syncs
"Delayed sync responce" is not a desync, it's just lag. It comes away if the condition that caused it disappears (like the 1000 units being killed).
Desync is "Sync error for <player name> in frame <number>". It does not go away, once it happened, the game is ruined - every client is effectively playing his own game.
Desync is "Sync error for <player name> in frame <number>". It does not go away, once it happened, the game is ruined - every client is effectively playing his own game.
Re: How to reproduce multi-player game de-syncs
This is what happened, eachone was playing its own game; I will have to play it again and get the infolog. Is the replay any good? I think I still have it.yuritch wrote:Desync is "Sync error for <player name> in frame <number>". It does not go away, once it happened, the game is ruined - every client is effectively playing his own game.
Re: How to reproduce multi-player game de-syncs
No, lagging like that means that your commands will take ages to register, but you're not playing different games. Player(s) are stuck viewing the past in the same game.
Unless it actually said "sync error" ?
Unless it actually said "sync error" ?
Re: How to reproduce multi-player game de-syncs
OK I will have to get the infolog, I will post back here when I got them.