The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: River on September 13, 2016, 10:03:35 PM

Title: unprotect_abandoned_player_months setting stored in savegame?
Post by: River on September 13, 2016, 10:03:35 PM
is the unprotect_abandoned_player_months setting stored in a save game?
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: TurfIt on September 13, 2016, 11:06:37 PM
Yes. remove_dummy_player_months is too.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: River on September 13, 2016, 11:28:32 PM
anyway around this? there are some troubles with passwords disapairing everymonth on the server (excepet for the first and public player)
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: TurfIt on September 13, 2016, 11:44:34 PM
It should default to off (=0). But if it's something else, can be changed in the Settings dialog / Economy and cities tab (somewhat strange place for it...).
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: River on September 13, 2016, 11:50:49 PM
i mean when the map has started, to change it in the simuconf.tab?
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: DrSuperGood on September 14, 2016, 12:16:52 AM
Use the hidden tool 27 (which should REALLY be made into a standard feature) to change it when the map is loaded in single player and then save and restore it to the server.


dialog_tool[27]=,~


When placed in menuconf for a pakset this will make the ~ key bring up the pre-game config dialog to real time modify game settings. Only works in single player, you will need to export the server save, modify it and then restore it.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: River on September 14, 2016, 12:53:20 AM
are you sure this work in the stable release? i can't get it to work.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: DrSuperGood on September 14, 2016, 02:50:59 AM
Quote
are you sure this work in the stable release?
Yes. Tested it just now.

You need to place it inside the menuconf.tab of the pakset
For example "simutrans\pak\config\menuconf.tab".

This only works offline in single player and simutrans must be restarted for it to take effect. You will need to export the save from the server, modify it in single player and then import the modified save back to the server.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: River on September 14, 2016, 08:59:14 AM
Quote from: DrSuperGood on September 14, 2016, 02:50:59 AM
Yes. Tested it just now.

You need to place it inside the menuconf.tab of the pakset
For example "simutrans\pak\config\menuconf.tab".

This only works offline in single player and simutrans must be restarted for it to take effect. You will need to export the save from the server, modify it in single player and then import the modified save back to the server.
it worked only for me when i pressed shift + ~ and then spacebar

Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: DrSuperGood on September 14, 2016, 02:52:30 PM
Quote
it worked only for me when i pressed shift + ~ and then spacebar
No idea why you had to press the space bar...

But seeing how on my keyboard ~ = shift + # the other requirement sort of makes sense. By the way you could specify it to any disused hotkey you like, just I choose ~ because it is not commonly used.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: River on September 14, 2016, 03:25:30 PM
Thanks for the help.

I think i needed to press the spacebar because when i do shift + ~ i need to add a spacebar before it shows.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: Vladki on September 14, 2016, 03:47:22 PM
Perhaps your keyboard layout uses ~ as a dead key, to write accented letters like ñ or ã.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: Ters on September 14, 2016, 06:18:43 PM
There are keyboards that don't?!? Although I've seen texts with such a symbol by itself, it is a very rare sight (≈ would be much more useful). Then again, I've never figured out what the backslash was for before Microsoft put it to use as a path separator, but it must have predated that.

But this shows that Simutrans using characters rather than keystrokes has its drawbacks.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: Vladki on September 14, 2016, 07:06:42 PM
Quote from: Ters on September 14, 2016, 06:18:43 PM
There are keyboards that don't?!?
Sure, the plain EN-US layout has ~ as normal key. Americans have no accent(s). ;)
It is useful in Unix (shortcut for your home directory), or in some programming languages, e.g. Perl
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: Ters on September 14, 2016, 08:05:45 PM
Quote from: Vladki on September 14, 2016, 07:06:42 PM
Sure, the plain EN-US layout has ~ as normal key. Americans have no accent(s). ;)
My point is: Why do you then have the character on the keyboard in the first place.

Quote from: Vladki on September 14, 2016, 07:06:42 PM
It is useful in Unix (shortcut for your home directory), or in some programming languages, e.g. Perl
One reason for Europeans to dislike Unix. (Fortunately, you don't have to use that key to cd to your home directory. At least with bash.) As for Perl, it is being harassed enough as it is, but other languages also require their fair share of finger gymnastics, although some symbols are easier on my layout that the default English one (like +). Interestingly, @ might be the most difficult character to type on many European keyboard layouts, at least if one hand is busy, say, holding a phone.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: DrSuperGood on September 15, 2016, 01:29:45 AM
Quote
Sure, the plain EN-US layout has ~ as normal key. Americans have no accent(s).
EN-UK as well.

Quote
My point is: Why do you then have the character on the keyboard in the first place.
It is the symbol used for approximation. ~100% of the time!
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: Ters on September 15, 2016, 04:43:38 AM
Quote from: DrSuperGood on September 15, 2016, 01:29:45 AM
It is the symbol used for approximation. ~100% of the time!

That makes the Unix usage quite humorous. "It might not be the path to your home directory, just somewhere near it."
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: Vladki on September 15, 2016, 06:51:57 AM
The keyboard gymnastic is the reason why I switch to en-us keyboard when programing or being a sysadmin. Doing that with czech layout is almost impossible.
Title: Re: unprotect_abandoned_player_months setting stored in savegame?
Post by: Isaac Eiland-Hall on September 16, 2016, 06:55:32 AM
Quote from: Vladki on September 15, 2016, 06:51:57 AM
The keyboard gymnastic is the reason why I switch to en-us keyboard when programing or being a sysadmin. Doing that with czech layout is almost impossible.

Besides, you really can't czech out files from repositories. You have to check them out.

...tip your server, folks, I'll be here all week!

;-)