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

This subforum contains all the issues which we already resolved.
Runesmacher
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sat Dec 03, 2016 12:10 am
Contact:

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

Post 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 2192 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 2192 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)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14301
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”