Page 1 of 1

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

Posted: Fri Jan 30, 2015 7:44 pm
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

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

Posted: Fri Jan 30, 2015 8:00 pm
by prg
You're missing another set of curly braces around the entity definition in the call to data:extend.

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

Posted: Fri Jan 30, 2015 8:10 pm
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: