Settings.lua problem[0.17.x] SOLVED
Posted: Mon Sep 16, 2019 6:21 pm
Hello everyone!
I am working on my mod and I want to add a settings into it, but I get a bug.
"No loader found for "bool-setting" ".
I tried to copy the tutorial's code into settings.lua, I tried other mods codes, but I got this bug every time.
Now this is how the files looks like.
Data.lua
settings.lua
options-panel.lua
Do I need to put extra code into other places or do I missed something?
I would be glad if someone could help!
I am working on my mod and I want to add a settings into it, but I get a bug.
"No loader found for "bool-setting" ".
I tried to copy the tutorial's code into settings.lua, I tried other mods codes, but I got this bug every time.
Now this is how the files looks like.
Data.lua
Code: Select all
require("prototype.settings")
require("prototype.item-groups")
require("prototype.item")
require("prototype.entity")
require("prototype.recipe")
require("prototype.control")
Code: Select all
require("prototype.options-panel")
Code: Select all
data:extend({
{
type = "bool-setting",
name = "wartorio-maximum-number-robots-both",
setting_type = "runtime-global",
order="a",
default_value = true
},
{
type = "int-setting",
name = "wartorio-maximum-number-robots",
setting_type = "runtime-global",
order="b",
minimum_value = 0,
maximum_value = 1000,
default_value = 100
},
{
type = "int-setting",
name = "wartorio-maximum-number-robots-iron",
setting_type = "runtime-global",
minimum_value = 0,
order="c",
maximum_value = 1000,
default_value = 0
},
{
type = "int-setting",
name = "wartorio-maximum-number-robots-copper",
setting_type = "runtime-global",
order="d",
minimum_value = 0,
maximum_value = 1000,
default_value = 0
}
})
I would be glad if someone could help!