Page 1 of 1

[Rseding91] [0.15.19]mod int-setting value incorrectly shown

Posted: Thu Jun 08, 2017 6:21 pm
by Runesmacher
I made a mod setting for an int value.

Code: Select all

	{
		type = "int-setting",
		name = "mudular-storage-items-per-tile",
		setting_type = "runtime-global",
		default_value = 2000,
		order = "a-b",
	},
While in game, i went into options -> Mods and changed my mod value to a high number (10000000000)
Before apply and closing
Before apply and closing
before.png (209.54 KiB) Viewed 2303 times
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 reopening
When reopening
after.png (231.55 KiB) Viewed 2303 times
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)

Re: [0.15.19]mod int-setting value incorrectly shown

Posted: Thu Jun 08, 2017 7:04 pm
by Rseding91
Ah, that's just a display problem. It's being stored as a signed 64 bit number which has a range of −9,223,372,036,854,775,807 to +9,223,372,036,854,775,807.

I'll get it fixed so it displays correctly.