How do I fix "Error in assignID..." on start?

Place to get help with not working mods / modding interface.
cyanit
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Dec 16, 2014 4:27 pm
Contact:

How do I fix "Error in assignID..." on start?

Post by cyanit »

Hi

I tried to create a small mod to help my current RSO-mod playthrough.
It's hard to find new oil wells because I always have to fight myself through alot of large biter bases and then setup a couple of radars to unveil the surrounding. To help with that I want to create a mod that adds a second, stronger radar with a much higher radius.

I followed this Tutorial (https://forums.factorio.com/wiki/inde ... g_Tutorial)
but it seems outdated and I can't get the mod created there running.

So I basically looked for the entry of the radar in the game files, copied them into a new entity.lua and changed the name and increased it's range and energy consumption and added a recipe.lua.
When I try to run the game with this mod I get an error:

"Error in assignID, "longradar" was not recognized id of entity"


It would be nice if somebody could look over the code and point the error out to me because I have no idea where to even start with this message :D
Attachments
longradar_0.0.1.zip
(2.14 KiB) Downloaded 119 times
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: How do I fix "Error in assignID..." on start?

Post by prg »

You're missing another set of curly braces around the entity definition in the call to data:extend.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
cyanit
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Dec 16, 2014 4:27 pm
Contact:

Re: How do I fix "Error in assignID..." on start?

Post by cyanit »

Wow thank you very much.

All this time I thought I was missing something essential and in the end it was two braces missing.
Anyway it's working now :lol:
Post Reply

Return to “Modding help”