The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Meteor on December 12, 2015, 09:54:35 PM

Title: Password forgotten
Post by: Meteor on December 12, 2015, 09:54:35 PM
Hi

So I am having an embarrasing problem. Im playing a multiplayer game with him and we have giant companies, but we had a months brake and in that time it seems I forgot my companies password  :-[ I tried every combination I thought was my password, but with no luck. I tried to google on how to make a password reset somehow (even from the server side) but with no luck. I also tried to find it on this forum but again, no luck. So I am posting this. Is it possible to somehow save my company and remove/reset the password?

Thank you in advance
Title: Re: Password forgotten
Post by: DrSuperGood on December 13, 2015, 05:08:32 AM
QuoteIs it possible to somehow save my company and remove/reset the password?
There should be a server command to do this. You need to connect to the server and issue it for the company slot. You can also delete the server password file to reset all passwords, since the file contains the hash of all passwords for each company.

If you do not own the server, ask the person who does.
Title: Re: Password forgotten
Post by: Meteor on December 13, 2015, 10:01:39 AM
Thanks for the quick reply.

We found the password file, deleted it but the saved game still has the companies password protected. I cant find the server commands and how to use them. Could you please post me a link or a quick guide on what and how to use the password reset command?

Thank you in advance
Title: Re: Password forgotten
Post by: prissi on December 13, 2015, 10:48:49 PM
Stop the server. Delete the hash file with the password. Start the server. THat shoudl remove all passwords. Otherwise the admin (public player) can change to any company he likes and set a new password as if it has never been locked for him.
Title: Re: Password forgotten
Post by: Meteor on December 14, 2015, 09:05:50 PM
We had to delete the hash file while the server was running and save the game. But that did the trick. Thanks for the help all!  :)
Title: Re: Password forgotten
Post by: Niek van Stee on December 19, 2015, 03:43:17 AM
where is this hash file located? i cant find anything useful related to passwords or hash in either my program files or my documents where all the saves are.




i found it in the saves eventually, it had no relation to the name of the saved game though, thats where it was throwing me for a loop.
Title: Re: Password forgotten
Post by: DrSuperGood on December 19, 2015, 11:30:10 PM
It is located with the server auto save and called something like "server13353-pwdhash.sve" where the 13353 may be subject to different number based on which port you choose to run the server from.
Title: Re: Password forgotten
Post by: TurfIt on December 20, 2015, 01:38:17 AM
The 'nettool' server admin program can remove the password from any player.
Otherwise, if you unlock the public player, then you can change the password on any other player. But this only works when offline for some reason...
And finally, removing the password hash file removes all passwords applied by the server from all players, but if the main save has passwords defined (they were set when offline), then they persist.

So, what a mess! nettool is the only simple/reliable method.


Title: Re: Password forgotten
Post by: Meteor on December 20, 2015, 08:45:17 PM
It is a bit complicated. As I said, we only removed the passwords when the server was running (only admin was logged), he removed the hash file while the server was up and than save it. Just removing the file, while the server was offline didnt work because somehow, Simutrans generated the file back when the game was loaded. Not sure how thats possible, than again Im a newbie to Simutrans...