Page 1 of 1
Assign ID
Posted: Sun Dec 28, 2014 1:57 pm
by Night_Ange1
Having some issues with my code assigning ID to an Item I've created. The names are the same (capitals sensitive) in my recipe item and entity files.
Here is the only info I found and it was capitalization error
https://forums.factorio.com/forum/vie ... n+ID#p1390
Any ideas. The error occurs in the item.lua file under place_result = "item",
Re: Assign ID
Posted: Sun Dec 28, 2014 3:52 pm
by L0771
Night_Ange1 wrote:Having some issues with my code assigning ID to an Item I've created. The names are the same (capitals sensitive) in my recipe item and entity files.
Here is the only info I found and it was capitalization error viewtopic.php?f=34&t=56&p=1390&hilit=assign+ID#p1390
Any ideas. The error occurs in the item.lua file under place_result = "item",
must be place_result = "entity", but if you have the same name this isn't the problem.
You load the entity in data.lua?
can show some code?
Re: Assign ID
Posted: Tue Dec 30, 2014 4:05 pm
by Night_Ange1
Sorry for the delay here is the mod so far.
Very basic just trying to get an item in game that I understand all the code for.
Re: Assign ID
Posted: Tue Dec 30, 2014 6:39 pm
by L0771
place_result = "trucks"
Must be
place_result = "truck",
Re: Assign ID
Posted: Tue Dec 30, 2014 10:36 pm
by Night_Ange1
Did you run the mod in your game? I believe thats where I narrowed down the culprit to which naming was having issues. My fault for not fixing it back before submitting :/
Re: Assign ID
Posted: Thu Jan 01, 2015 7:24 am
by L0771
Night_Ange1 wrote:Did you run the mod in your game? I believe thats where I narrowed down the culprit to which naming was having issues. My fault for not fixing it back before submitting :/
__Trucking__/graphics don't exist.
entity.lua is
Code: Select all
data:extend(
{
{
type = "car",
name = "truck",
...
}
})
" { } " is missing.
Need changes in entity.lua, i think you use a old version, the new car has got more than 240 lines, your entity.lua has got 157 (with the change of above)
Re: Assign ID
Posted: Thu Jan 01, 2015 4:07 pm
by Night_Ange1
Yeah I tries to remove a lot of the layers so when I do get graphics I dont need 3 sets of drawings. Thanks for the help. And sorry forgot I didnt include the graphics. It was too big
Edit: Uploaded Mod to GitHub so I can easily share and work on it.
https://github.com/NightAnge1/Trucking_0.0.2
P.S. THANKS L0771 That fixed my entity problem now i have a Missing node (direction_count) problem :/
Re: Assign ID
Posted: Tue Jan 06, 2015 3:34 pm
by Night_Ange1
Ok New problem and I figured I'd just append it to this thread. I'm having a problem with the Direction_Count on my animation set. Says it can't find it. Any help would be appreciated
Re: Assign ID
Posted: Fri Jan 09, 2015 1:37 am
by Adil
In case it's still needed:
In base car keyword "layers" is separated by two "{" from "direction_count" and in your code there seems to be only one.
Which means that instead of being inside a table inside a table labeled "layers", your "direction_count" is located right on the first level of inclusion, while the program needs to go deeper.
Re: Assign ID
Posted: Fri Jan 09, 2015 4:17 pm
by Night_Ange1
thanks so much man... These double layers keep getting me

Re: Assign ID
Posted: Sun Jul 09, 2017 5:27 pm
by siblingdragons
I have the error : Error in AssignID, an item with the name "..." does not exist. I have installed a few mods in the steam version and now the game is not running anymore... I dont want to lose my progress in the game with deinstalling it and i cant find the mods folder , so what can I do because i cant delete the mods when the game wont start due an error in the mods ... who had this stupid idea ...
Re: Assign ID
Posted: Mon Jul 10, 2017 7:10 am
by Choumiko
For steam it should be in %appdata%/Factorio (translates to "C:\Users\Choumiko\AppData\Roaming\Factorio for me. might be different for you). If you can't find it search for one of the mod names or for factorio-current.log on your PC, that should lead you to it.