The International Simutrans Forum

 

Author Topic: Network - When rejoining server, client remembers last position on map  (Read 2389 times)

0 Members and 1 Guest are viewing this topic.

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
We now have the network mode remembering the player we were last (which is really useful). Would it be possible for it to also remember the last location on the map? Currently every time you rejoin (e.g. after a desync) it reverts your position to somewhere else on the map. It'd be really useful if it could remember where you were.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Network - When rejoining server, client remembers last position on map
« Reply #1 on: February 19, 2012, 01:01:17 AM »
I see that this hasn't been posted in a long time, but I missed this topic first time around: it would be helpful if this feature could be reconsidered, if the developers are not too busy on other things.

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: Network - When rejoining server, client remembers last position on map
« Reply #2 on: February 19, 2012, 10:15:42 AM »
I think this was implemented wasn't it?

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Network - When rejoining server, client remembers last position on map
« Reply #3 on: February 19, 2012, 11:38:24 AM »
Hmm, I don't think so...?

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: Network - When rejoining server, client remembers last position on map
« Reply #4 on: February 19, 2012, 04:23:02 PM »
Well probably not too hard to do, just make the game remember the last coordinates of the viewport for each server, and then move to that point when you join the server. I don't know where the best place would be to do that.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9569
  • Languages: De,EN,JP
Re: Network - When rejoining server, client remembers last position on map
« Reply #5 on: February 22, 2012, 07:56:31 PM »
That the map download from the server is at the position at the server has the reason, that anyone can see some labels with the server rule immediately. And a server could not guess, if a client is rejoining or not.

Offline Fabio

  • Devotee
  • Administrator
  • *
  • Posts: 2898
  • The Pak128 Guy
    • Visit me on Facebook
  • Languages: EN, IT, RO, FR
Re: Network - When rejoining server, client remembers last position on map
« Reply #6 on: February 22, 2012, 09:05:17 PM »
Every company could have a current position saved, so in the moment you switch to that company, the focus is moved there.