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

Place to get help with not working mods / modding interface.
Post Reply
User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

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

Post 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
Last edited by ZwerOxotnik on Mon Dec 13, 2021 9:02 pm, edited 1 time in total.

Loewchen
Global Moderator
Global Moderator
Posts: 8373
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

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

Post by Loewchen »

Not a bug, those properties do not exist, check the exact spelling: https://wiki.factorio.com/Tutorial:Mod_ ... e_property.

User avatar
ZwerOxotnik
Fast Inserter
Fast Inserter
Posts: 114
Joined: Tue Dec 19, 2017 6:58 pm
Contact:

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

Post by ZwerOxotnik »

Thank you for response, I overlooked things somehow.
I make cakes from mods. However, I don't have dough now but you can help me.

Post Reply

Return to “Modding help”