Bug #24035
Settings loaded in local number format, but saved UK/US
0%
Description
Since KSP 1.8, decimal values in settings.cfg are screwed up, always defaulting to 1.
Looking at it, it seems it drops the part before the decimal point and reads the rest as an integer.
Example:
- My deadzone for an axis was 0.296
- after 1.8, it is now 296, being clamped to 1.0 in the settings menu
- I can use the sliders in-game to change it to 0.296, but it will again save it as 296, so it will be wrong on restart again
As this seems to be an error parsing the decimal in this format, I tried my system's (German) default format with a , instead of a ., and voila - it works.
Workaround:
- Edit the file manually to set the deadzone to 0,296 (which is German number format, and my system is set to German), and it reads the setting correctly to 0.296
History
#1 Updated by vrampal about 5 years ago
Looks like the following issues are related:
https://bugs.kerbalspaceprogram.com/issues/23909
https://bugs.kerbalspaceprogram.com/issues/24035
Settings saved in US locale but loaded in system locale.