Page 1 of 1

[1.1.49][not a bug] "runtime-per-user" ignores some properties

Posted: Mon Dec 13, 2021 8:02 pm
by ZwerOxotnik
data.lua

Code: Select all

data:extend({
	{type = "int-setting", name = "Example-1", setting_type = "runtime-per-user", default_value = 6, minimal_value = 1, maximal_value = 40}
})
Expected:
  • minimal value is 1
  • maximal value is 40
Steps to reproduce:
  • Load the game with new setting
  • Change the setting in a game
Actual Result:
  • The setting ignores minimal value, maximal value in the game
Notes:
  • I checked it in single-player only
  • Also, the value resets to 0 when I entered a float number
  • I didn't check other properties

Re: [1.1.49] "runtime-per-user" ignores some properties

Posted: Mon Dec 13, 2021 8:18 pm
by Loewchen
Not a bug, those properties do not exist, check the exact spelling: https://wiki.factorio.com/Tutorial:Mod_ ... e_property.

Re: [1.1.49] "runtime-per-user" ignores some properties

Posted: Mon Dec 13, 2021 9:01 pm
by ZwerOxotnik
Thank you for response, I overlooked things somehow.