News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

r4951 Win pak128 - Multiplayer - Player is disconnecting after several actions

Started by Foxglove, November 19, 2011, 04:45:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Foxglove

Actually, the problem appears randomly, I am not really sure if it is fault of Simutrans but not connection of players. In few words, we are playing together with a canadian player. I am hosting a server on my own pc, ping of canadian player is around 200-220, dl speed is near 50 kb/s.

So we're playing normally but only until we do some actions. For example I send a truck back to depot, pressed a "Return to depot" button in trucks window and what I see, "Now 0 clients are connected".

The same is when I am removing piece of road which was generated by map generator (not the road I built). It comes instantly after when I do it.

First time we played very well and for 2 hours without any problems. But I wasnt sending cars back to depot and destroying generated roads, as far as I remember... What would it be, problem of being too far from server, or some server side problem? This guy tried VPN from my country but the result is exactly the same. I got no players from other countries who would try it, so couldnt check if it is only high ping problem.

Another question, all the time he is trying to join, he has to download big save file and it takes for 2-4 minutes. Is there possibility not to download whole save but only changes which has been done compared to previous version of save file?

Dwachs

Did you check that you have the same program version as well as pakset version?
Parsley, sage, rosemary, and maggikraut.

Foxglove

Yea obviously we do. I just copied him my pak128 and it was working fine first time, until I started to send cars to depot.
Program version is 4951, pakset is latest one.

Lemme describe a moment of disconnecting better.
When I send a car into depot (action 1) or when I remove a piece of generated road (2), game freezes for a moment (50 ms or 1 second), and during this freezing, the player disconnects. Freezing in actions 1 and 2 started to appear only when I switched from 102.2 to 110 version. Actually it freezes for a longer time in action 1 than 2.

sdog

are the config files also of the recent version. If you only updated the executeable they might be outdated.

Foxglove

Simuconf.tab wasnt from latest one. Gonna check with latest, hold on.

No, the same "Now 0 clients connected". If you meant simuconf.tab, sure.

UPD. Some more info.
"Human" player there has over than 6000 trucks (numbers 1 - 6400).
"Napik" player has less than 100 cars (numbers 5600 - 5800). Tested next things together:
- canadian player sends a car of Napik to depot, car #5732, depot is 50 reference units far from a vehicle, coords of car are 85,335. He doesnt get disconnected, game doesnt freeze for him and me when he sends a car to depot.
- canadian player sends a car of Human to depot, car #5377, depot is 100 reference units far from a vehicle, coords of car are 212,63. He doesnt get disconnected, game doesnt freeze for him and me when he sends a car to depot.
- I am (server holder) sending a car of Human to depot, car #1957, depot is 100 reference units far from a vehicle, coords of car are 280,173. He doesnt get disconnected, game doesnt freeze for him and me when I send a car to depot.
- I am (server holder) sending a car of Human to depot, car #6027, depot is 10 reference units far from a vehicle, coords of car are 10,124. He doesnt get disconnected, game doesnt freeze for him and me when I send a car to depot.
- I am (server holder) sending a car of Human to depot, car #6228, depot is 150 reference units far from a vehicle, coords of car are 51,49. He doesnt get disconnected, game doesnt freeze for him and me when I send a car to depot.
- canadian player sends a car of Human to depot, car #5905, depot is 50 reference units far from a vehicle, coords 457,421. He doesnt get disconnected, game doesnt freeze for him and me when he sends a car to depot.
- I am (server holder) sending a car of Human to depot, car #5906, depot is 50 reference units far from a vehicle, coords 452,421. Then canadian player gets disconnected, game freezes for me when I send a car to depot.

Any ideas what could it be?

In few words, if car is closer to north-west corner of the map, it gives less chances to make canadian player disconnecting. He didnt get disconnected in 100% of case if I send a car to depot if car is near western part of the map. But disconnected in 100% of case when I sent a car which is in the middle of the map.

Dwachs

Game freezing is a bug.

Could you and your friend run simutrans with '-debug 3 -log 1' to have some impression of error log. Then try to disconnect the client and post the part of the clients log around the 'disconnect' message.

Please also upload the savegame.
Parsley, sage, rosemary, and maggikraut.

Foxglove

Will try tomorrow morning.
Savegame requires a lot of modified files of pak128 and mods, which is around 38 megabytes. Do I upload both?

UPD also behind "Game freezes for me" I meant just 0.5 - 1 secs freezing, sorry if it wouldve been sounded wrong.

prissi

This means the car did not found its original depot, or the route search for the car took too lang. However, it should not lead to a desync as the command should be done by both. Nevertheless, if you are freezing for a second and the other player for much less, he may run in your future. Then the other client gets commands from the past and as a result disconnects. In such a case the xxx_frames_behind section in simuconf.tab may help. (Of course this would also increase the interval between a command and the execution.)

Foxglove

Quote from: prissi on November 20, 2011, 09:04:02 PM
In such a case the xxx_frames_behind section in simuconf.tab may help. (Of course this would also increase the interval between a command and the execution.)
Increased to
server_frames_ahead = 10
additional_client_frames_behind = 5
It was 4 and 0 by default. Now when I send a car from the middle of the map into depot, player waits 5 seconds and he doesnt get disconnected on his screen but gets all cars stucking behind "Schedule changing" car which I sent to depot (see attachment). On server side it writes "Now 0 clients are connected". Means he is kind of timed out.
Btw on client side it writes "Cannot change routing during the path finding", when he clicks on "Schedule changing" truck I sent to depot.

Nevermind, server_frames_ahead = 30 and additional_client_frames_behind = 20 worked! Thank you guys, I love you.