[solved] Struggling to add custom signals...

Place to get help with not working mods / modding interface.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

[solved] Struggling to add custom signals...

Post by aubergine18 »

tl;dr: Mod name is case sensitive everywhere, including __modname__.

I'm making a new mod that adds a few additional signals. I keep getting this error on startup:

Image

My mod folder is `radio_0.0.1`, and my info.json is:

Code: Select all

{
	"name": "radio",
	"version": "0.0.1",
	"title": "Radio Signals",
	"author": "aubergine18",
	"description": "...",
	"homepage": "...",
	"factorio_version": "0.13",
	"dependencies": ["base >= 0.13.0"]
}
the script adding my signals is:

Code: Select all

  data:extend {{
    type = "item-group",
    name = "signals",
    icon = '__RADIO__/graphics/grp-signal.png',
    order = "y",
  }}

  data:extend {{
    type = "item-subgroup",
    name = "vs-radio",
    group = "signals",
    order = "a[vs-radio]"
  }}

  data:extend {{
    type = "item-subgroup",
    name = "vs-snoop",
    group = "signals",
    order = "b[vs-snoop]"
  }}

  ... then a bunch of signals
in `/radio/graphics/' folder there is a 64x64px 'grp-signal.png' file.

Anyone know why I'm getting that error about __RADIO__/graphics/grp-signal.png ?
Last edited by aubergine18 on Thu Aug 11, 2016 12:04 pm, edited 1 time in total.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: Struggling to add custom signals...

Post by Choumiko »

have you tried __radio__ ? I think it's case sensitive.
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Struggling to add custom signals...

Post by aubergine18 »

yup, that fixed it! thank you - I'd been starting at it for ages and was going crazy!
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Modding help”