Author Topic: unprotect_abandoned_player_months setting stored in savegame?  (Read 1791 times)

0 Members and 1 Guest are viewing this topic.

Offline River

unprotect_abandoned_player_months setting stored in savegame?
« on: September 13, 2016, 10:03:35 PM »
is the unprotect_abandoned_player_months setting stored in a save game?

Offline TurfIt

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #1 on: September 13, 2016, 11:06:37 PM »
Yes. remove_dummy_player_months is too.

Offline River

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #2 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)

Offline TurfIt

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #3 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...).

Offline River

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #4 on: September 13, 2016, 11:50:49 PM »
i mean when the map has started, to change it in the simuconf.tab?

Offline DrSuperGood

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #5 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.

Code: [Select]
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.

Offline River

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #6 on: September 14, 2016, 12:53:20 AM »
are you sure this work in the stable release? i can't get it to work.

Offline DrSuperGood

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #7 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.

Offline River

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #8 on: September 14, 2016, 08:59:14 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


Offline DrSuperGood

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #9 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.

Offline River

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #10 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.

Offline Vladki

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #11 on: September 14, 2016, 03:47:22 PM »
Perhaps your keyboard layout uses ~ as a dead key, to write accented letters like ñ or ã.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4577
  • Total likes: 167
  • Helpful: 106
  • Languages: EN, NO
Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #12 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.

Offline Vladki

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #13 on: September 14, 2016, 07:06:42 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

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4577
  • Total likes: 167
  • Helpful: 106
  • Languages: EN, NO
Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #14 on: September 14, 2016, 08:05:45 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.

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.

Offline DrSuperGood

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #15 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!

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4577
  • Total likes: 167
  • Helpful: 106
  • Languages: EN, NO
Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #16 on: September 15, 2016, 04:43:38 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."

Offline Vladki

Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #17 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.

Offline Isaac.Eiland-Hall

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3389
  • Total likes: 254
  • Helpful: 90
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: unprotect_abandoned_player_months setting stored in savegame?
« Reply #18 on: September 16, 2016, 06:55:32 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!

;-)