[0.15.11] Integer setting with no upper bound

This subforum contains all the issues which we already resolved.
Neemys
Filter Inserter
Filter Inserter
Posts: 461
Joined: Sat Apr 09, 2016 6:16 pm
Contact:

[0.15.11] Integer setting with no upper bound

Post by Neemys »

When using the new mods settings ingame, if a mod set an integer entry with a minimum but no maximum like :

Code: Select all

data:extend({
	{
		type = "int-setting",
		name = ""my-wonderful-setting-name,
		setting_type = "startup",
		minimum_value = 0,
		default_value = 100,
		order = "a-a"
	}
})
And an user set a wrong value, the message in the tooltip say :
Value out of range: valid values are 0 through -1 inclusive.
Shouldn't the message only state the minimum bound when no upper bound are set ? Displaying -1 as upper bound is misleading IMO.
Want more space restriction ? Or maybe you want to be forced to use train for other thing than ore and oil ? Try Building Platform Mod !
Rseding91
Factorio Staff
Factorio Staff
Posts: 14316
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.11] Integer setting with no upper bound

Post by Rseding91 »

Ah, that's just a case of the message converting the display value wrong. I'll fix it.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”