The International Simutrans Forum

 

Author Topic: simuconf.tab and default value  (Read 2397 times)

0 Members and 1 Guest are viewing this topic.

Offline z9999+

  • Coder/patcher
  • *
  • Posts: 377
simuconf.tab and default value
« on: February 24, 2010, 01:35:46 PM »
In simutrans 102-2 and after version, all value of config/simuconf.tab is commented out.
I don't like this because of reason below.

- Player can't know current setting value.
- Player can't restore default value easily.

Example.
Default max_transfers value is 9.
max_transfers value in pak.german/config/simuconf.tab is 15.
max_transfers value is not defined in pak/config/simuconf.tab.

In this case, if once we start a game of pak.german, max_transfers=15 is stored in settings.xml and default.sve

Next time if we start a new game of pak64, max_transfers=15 will be used. But plyer can't know such a thing. Players always think it is default.
There is Simuconf.tab and Default.sve button on Seting dialogue, but these buttons are also not possible to restore default value.

Only the way to restore default value is delete Simuconf.tab and Default.sve.
This is inconvenience for players.

Max_transfers thing is not the special case, all value are the same.
If one pakset defined but other pakset undefined, this problem will always happen.

How do you think about this problems ?
Especially problem is pak.german, which defined many values which are not defined in other pakset.

Offline Spike

  • *
  • Posts: 1361
  • First Simutrans Developer and Graphics Artist
Re: simuconf.tab and default value
« Reply #1 on: February 24, 2010, 01:58:26 PM »
How do you think about this problems ?
Especially problem is pak.german, which defined many values which are not defined in other pakset.

I don't want to say pak.german is the problem. The problem is that values defined for pak.german sneak into other games, and Simutrans needs to avoid this.

I'd  encourage all paks to ship a simuconf.tab with a complete list of config options set. So that it's ensured that a pak runs with it's best defaults.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9469
  • Languages: De,EN,JP
Re: simuconf.tab and default value
« Reply #2 on: February 24, 2010, 02:17:58 PM »
@z9999+
Ypu are right. I think setting these values explicitely is a better option at the moment.

My idea was, that certain parameters, that can be alter via the dialoge, should be easily overidably. Maybe a better solution would be pak set dependent default.sve files?