News:

SimuTranslator
Make Simutrans speak your language.

Bug: Parameter "increase_maintenance_by_percent" can not set correctly

Started by RESTRICTED ACCOUNT, August 09, 2018, 11:04:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RESTRICTED ACCOUNT

If "increase_maintenance_by_percent" is larger than 200 in .dat file, "increase_maintenance_by_percent" is set to 200. (The maintenance cost will eventually double)
For example, CartMailNew has increase_maintenance_by_percent set to 275 but it only rises to 100% like following image.


If "increase_maintenance_by_percent" is smaller than 200 in .dat file, "increase_maintenance_by_percent" is set to 100. (The maintenance cost will not rise at all)
If "increase_maintenance_by_percent" is not set in .dat file, the default setting is used. (This is correct behavior. The maintenance cost will eventually increase to 4 times in the default setting of 128Britain-Ex)

jamespetts

Thank you for the report - I believe that I have now fixed this, which was, I think, caused by a rounding/loss of precision error.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

RESTRICTED ACCOUNT

I confirmed today's nightly build and it has been fixed. :thumbsup:
Thank you for the quick fix ^-^

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.