News:

SimuTranslator
Make Simutrans speak your language.

[120.4] World Height Error

Started by HyperSim, September 18, 2018, 04:58:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HyperSim

Hello,
I opened my old savedata (saved with 120.1.3) and found that I can't do anything because the cursor has gone!
I reserched and found that world_maximum_height was set as same as world_minimum_height!

I think that this line in dataobj.settings.cc(l.1436) is wrong.
world_maximum_height = contents.get_int("world_maximum_height",world_maximum_height);
world_maximum_height = contents.get_int("world_minimum_height",world_maximum_height);


And, config/simuconf.tab is also wrong. (but it is just a typo and will not cause critical error)
# minimum/maximum allowed height level for the map (too heigh might cause display errors)
#world_maximum_height = -12
#world_maximum_height = 32

Ters

I don't quite see how this can cause any errors unless world_minimum_height is set in simuconf.tab, nor why it should affect visibility of the cursor in an existing map.

HyperSim

Quote from: Ters on September 18, 2018, 05:55:59 PM
I don't quite see how this can cause any errors unless world_minimum_height is set in simuconf.tab, nor why it should affect visibility of the cursor in an existing map.

The error about simconf.tab is just a typo.
And it doesn't affect game unless player edit it.

THLeaderH

Sorry for my typo.
This is a patch for fix.

prissi

I added also a sanity check too in r8592.