Page 1 of 1
Why isn't my mod working?
Posted: Fri May 08, 2020 6:30 pm
by qqwertt
So I'm trying to make a mod and this pops up. All that exists is a fluid.
here's item.lua:
Code: Select all
data:extend (
{
{
type = "fluid",
name = "liquid-fuel",
icons = "QwrtMod_0.1.0/graphics/icons/fuel.png",
icon_size = 32,
default_temperature = 25,
max_temperature = 200,
base_color = {0.6, 0.47, 0.03},
},
}
)
I'm new to modding so I'm not sure if I'm just incredibly dumb
Re: Why isn't my mod working?
Posted: Fri May 08, 2020 6:38 pm
by DaveMcW
You are missing the mandatory property flow_color.
https://wiki.factorio.com/Prototype/Fluid
The weird error message is because the barrel system runs before the game does the property validation checks, and the barrel system does not do validation checks either.
Re: Why isn't my mod working?
Posted: Fri May 08, 2020 6:40 pm
by steinio
Code: Select all
icons = "QwrtMod_0.1.0/graphics/icons/fuel.png",
needs to be
Code: Select all
icons = "__QwrtMod__/graphics/icons/fuel.png",
The error says the base mod (not yours) has an error so the dev of this mod needs to fix it.
Re: Why isn't my mod working?
Posted: Fri May 08, 2020 6:46 pm
by qqwertt
DaveMcW wrote: ↑Fri May 08, 2020 6:38 pm
You are missing the mandatory property flow_color.
https://wiki.factorio.com/Prototype/Fluid
The weird error message is because the barrel system runs before the game does the property validation checks, and the barrel system does not do validation checks either.
I added a flow color but it still won't work.
steinio wrote: ↑Fri May 08, 2020 6:40 pm
Code: Select all
icons = "QwrtMod_0.1.0/graphics/icons/fuel.png",
needs to be
Code: Select all
icons = "__QwrtMod__/graphics/icons/fuel.png",
The error says the base mod (not yours) has an error so the dev of this mod needs to fix it.
renaming the folder to __QwrtMod__ doesn't work, what should I do?
Re: Why isn't my mod working?
Posted: Fri May 08, 2020 6:48 pm
by DaveMcW
Re: Why isn't my mod working?
Posted: Fri May 08, 2020 6:50 pm
by qqwertt
Thanks!! I got it fixed!