Why isn't my mod working?

Place to get help with not working mods / modding interface.
Post Reply
qqwertt
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri May 08, 2020 6:26 pm
Contact:

Why isn't my mod working?

Post by qqwertt »

Image
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

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Why isn't my mod working?

Post 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.
Last edited by DaveMcW on Fri May 08, 2020 6:43 pm, edited 2 times in total.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Why isn't my mod working?

Post 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.
Image

Transport Belt Repair Man

View unread Posts

qqwertt
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri May 08, 2020 6:26 pm
Contact:

Re: Why isn't my mod working?

Post 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.
Image
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?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Why isn't my mod working?

Post by DaveMcW »

For your new error, rename icons to icon. https://wiki.factorio.com/Types/IconSpecification

qqwertt
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri May 08, 2020 6:26 pm
Contact:

Re: Why isn't my mod working?

Post by qqwertt »

Thanks!! I got it fixed!

Post Reply

Return to “Modding help”