The International Simutrans Forum

 

Author Topic: 121.0 - Password in the network game  (Read 872 times)

0 Members and 1 Guest are viewing this topic.

Offline Andarix

  • *
  • Posts: 140
  • Languages: de
121.0 - Password in the network game
« on: December 20, 2019, 07:53:51 PM »
Apparently the password is deleted from other players if you have entered the password for your own player and then calls up the finances via the open player list.

Today I can watch it directly. When connecting for the first time, the password was set for another player. After a disconnect and reconnect, the password was deleted.

I was the only player at the time.

Simutrans 121.0
pak64.german 0.120.4.1.3

Network game

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2829
  • Languages: EN
Re: 121.0 - Password in the network game
« Reply #1 on: December 21, 2019, 12:43:23 AM »
How is the server configured? Ultimately the server is responsible for managing all passwords and it should only remove them if instructed to by the server administrator tool.

Be aware that the public service player can bypass all player passwords. Once playing as an unlocked public service player one can change into any other locked company and that company will unlock to that player. This is to allow server administrators control over other player companies when fixing or intervening without resetting their passwords. If the public service player is password locked then only players who know to the password will be able to use this feature.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4711
  • Languages: EN, DE, AT
Re: 121.0 - Password in the network game
« Reply #2 on: December 21, 2019, 10:43:55 AM »
Andarix, can you please write down the exact sequence of steps to reproduce this behavior? This will make it easier to debug.

Offline Andarix

  • *
  • Posts: 140
  • Languages: de
Re: 121.0 - Password in the network game
« Reply #3 on: December 21, 2019, 11:17:07 AM »
The Simutrans server uses the normal Windows program file from SF and was started normally under Windows 10. The game was then loaded as a server game.

The public player was not used.

I noticed before that the password was deleted. Even with my own player.

The server runs normally with an interface and the player list is open there.

Since I have several players active ( no password set ) as a start-up aid for potential teammates, I often look into the finances to check that they don't slip into the loss. If necessary, I also switch to these players.

That was not the case last time. I entered the password for my own player and then viewed the other player's finances with a password. Then there was a disconnect. After reconnecting my password was still set but the other player's password was gone.


It would be more helpful if there was an active confirmation whether a password should be deleted or not. If I use the public player and switch back to my own, I don't want to delete my password.
« Last Edit: December 21, 2019, 11:29:51 AM by Andarix »

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2829
  • Languages: EN
Re: 121.0 - Password in the network game
« Reply #4 on: December 21, 2019, 11:51:50 AM »
It would be more helpful if there was an active confirmation whether a password should be deleted or not. If I use the public player and switch back to my own, I don't want to delete my password.
It should not be possible for that action to delete passwords. The public player bypasses the password check. Effectively it acts as if you entered the correct password without knowing what that password is.

Servers can be set so that passwords automatically time out after some amount of game time if not recently used. This feature is intended to free up in use company slots that are not actively in use due to the owner having stopped using the company. Please confirm that the password removal observed is not a result of this.

Offline Andarix

  • *
  • Posts: 140
  • Languages: de
Re: 121.0 - Password in the network game
« Reply #5 on: December 21, 2019, 07:14:36 PM »
the following is set
unprotect_abandoned_player_months = 12

In the beginning, my own password was reset several times. I played alone and the server paused without a client.
In the meantime it doesn't seem to be reset anymore.

EDIT

Does the timer start as soon as you switch to another player or the input client ends the connection?


« Last Edit: December 21, 2019, 07:40:24 PM by Andarix »

Offline Andarix

  • *
  • Posts: 140
  • Languages: de
Re: 121.0 - Password in the network game
« Reply #6 on: December 21, 2019, 09:01:35 PM »
It's a little strange, I can't send my own trains to the depot anymore.




Offline Andarix

  • *
  • Posts: 140
  • Languages: de
Re: 121.0 - Password in the network game
« Reply #7 on: December 24, 2019, 12:42:35 PM »
The subsequent change of unprotect_abandoned_player_months does not seem to be possible. Is this setting saved with the map?

It should also be noted that neither the public player nor the Simutrans player (at the top) will reset the password.