News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

network play : let's make desynch a little less painfull

Started by paichtis, December 03, 2012, 04:43:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paichtis

Hello, since desynchs will always happen,  here's two suggestions that would make them less painfull :

1. remember current map position : currently the game remember the z coordinate on desynch why not remember x and y too ?
2. resend password on reconnect : currently the game remembers which player is active. Let the client also remember the associated password and automaticly resend it to the server on reconnect. (no security hole here : only the client remembers the password to send, for the outside world - network and server - it is exactly as if the users typed it again)

Anyway, thanks for this great game !

Ters

Kind of a nitpick, but there is a rule that programs should always clear passwords from memory as soon as they're done with them. As long as a password is held in memory, it is possible for other programs to get hold of it. Another program can also use the same memory locations later, and find that the password is still there. So it is something like a security hole for the client to remember the password, though your machine/account is pretty much owned by the hackers at that point anyway.

Fabio

This could be set as a privacy setting in simuconf or in a more accessible way.

paichtis

Quote from: Ters on December 03, 2012, 07:01:04 PM
Kind of a nitpick, but there is a rule that programs should always clear passwords from memory as soon as they're done with them. As long as a password is held in memory, it is possible for other programs to get hold of it. Another program can also use the same memory locations later, and find that the password is still there. So it is something like a security hole for the client to remember the password, though your machine/account is pretty much owned by the hackers at that point anyway.

Compared to the browser remembering your passwords it is a really small risk but yes let's make an option of this.

Seriously right now to update a line after a desynch you need :
1. open the player menus, click on the password, type the password ( 2 cliks + typing) (you need to do in this order otherwise the editing will be lost)
2. open the map window, click on the location you were working (2 clicks if you remember exactly where it was)
3. reopen your line (at least 2 clicks again), start doing what you wanted to do,  get a new desynch



ӔO

Actually, entering your password can be done with as little as a single key.

use shift+P to switch to your slot, although, you should be on this slot already if you didn't quit the game

then hit "b" for block reservation, which the server will now ask you for a password. It is also possible to be asked for a password as soon as you try and make any changes, like laying down roads or buying or selling vehicles.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

benjad

+1 on this one.   

Been playing online a lot more.  Really fun.   But recovering from desyncs is really a pain.

Would recommend when desync occurs, Automatically attempt to reconnect player to same server, and player, hopefully in same view on restart. Understand password issues, without entering password would be nice.   Don't lock UI out during process.  Give player option to cancel.  Catch server 'not responding' exception, and 'retry' in 15 seconds or so. 

prissi

Imagine a too week computer causing desync. Automatic reconnects while the play makes tea => game server denial of service for everybody.

No those things are deliberately kept manual.