Latest Posts

Topic: Permanent IDs for internet players

Notabilis
Avatar
Topic Opener
Joined: 2016-11-03, 20:37
Posts: 41
Ranking
Pry about Widelands
Posted at: 2017-09-21, 22:24

Okay, after some considerations, it gets complicated. At least, more than it was before. The new design is:

  • Try to login with name and uuid

  • If the name is not in use take it. Done

  • If it is another uuid, add a number. Done

  • Since name is already present and uuid is the same: do a ping (i.e. test old connection)

  • If ping fails, replace the old connection. Done

  • If ping succeeds, append a number to the name. Done

Due to the ping the reconnect will be a bit slower than with the old design but that doesn't really matters (Half a second? A second? Should be fine). Am I missing something?

(A possible alternative: Display a "Do you want to replace ...?" when the uuid is in use.)


Top Quote
einstein13
Avatar
Joined: 2013-07-29, 00:01
Posts: 1118
Ranking
One Elder of Players
Location: Poland
Posted at: 2017-09-23, 01:22

It seems to be ok now. You cover 99% of cases :). There is 1% of unknown for me face-tongue.png .


einstein13
calculations & maps packages: http://wuatek.no-ip.org/~rak/widelands/
backup website files: http://kartezjusz.ddns.net/upload/widelands/

Top Quote