[Rseding91] [0.15.19]mod int-setting value incorrectly shown
Posted: Thu Jun 08, 2017 6:21 pm
I made a mod setting for an int value.
While in game, i went into options -> Mods and changed my mod value to a high number (10000000000)
pressed apply, back and resume.
When going back to options -> Mods the value has changed to a different value (1410065408), the actual value (when logged in my code does still show my orriginally set value (10000000000). When setting the value to a big value that is way out of range, the setting will show as -1 after reopening. (to test i tried the max int value (4,294,967,295) which changed the value to -1)
Code: Select all
{
type = "int-setting",
name = "mudular-storage-items-per-tile",
setting_type = "runtime-global",
default_value = 2000,
order = "a-b",
},
When going back to options -> Mods the value has changed to a different value (1410065408), the actual value (when logged in my code does still show my orriginally set value (10000000000). When setting the value to a big value that is way out of range, the setting will show as -1 after reopening. (to test i tried the max int value (4,294,967,295) which changed the value to -1)