What do I need to do with this error?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Stormloop2005
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Aug 09, 2018 2:55 pm
Contact:

What do I need to do with this error?

Post by Stormloop2005 »

I just started with modding and I couldn't find a good tutorial except for this one: https://wiki.factorio.com/Tutorial:Modd ... al/Gangsir.
So I installed some mods and looked at the code, I coped it and changed it a bit too, but it gives me an error while the other mods don't have it.
Can someone help me and give also a good tutorial on how to mod for factorio?
Attachments
code.PNG
code.PNG (44.56 KiB) Viewed 1936 times
error.PNG
error.PNG (15.57 KiB) Viewed 1936 times

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: What do I need to do with this error?

Post by eradicator »

You're using - instead of _ all over the place. Also neither "item-name" nor a hypothetical "item_name" are valid prototype properties, it's just "name=".
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Stormloop2005
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Aug 09, 2018 2:55 pm
Contact:

Re: What do I need to do with this error?

Post by Stormloop2005 »

I tried what you just posted but I just get another error.
Attachments
code02.PNG
code02.PNG (14.22 KiB) Viewed 1916 times
error02.PNG
error02.PNG (15.69 KiB) Viewed 1916 times

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: What do I need to do with this error?

Post by eradicator »

It says it's an error during loading "locale", which means one of your locate files looks like this:
[item-name]
stuff=stuff

[item-name]
morestuff=morestuff
Just put all the stuff into a single item-name node.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Stormloop2005
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Aug 09, 2018 2:55 pm
Contact:

Re: What do I need to do with this error?

Post by Stormloop2005 »

I see, thank you

User avatar
Stormloop2005
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Aug 09, 2018 2:55 pm
Contact:

Re: What do I need to do with this error?

Post by Stormloop2005 »

And now he can't find one of my recipe's, I think that I understand the error but I don't see where the problem is, in the recipe file or in the technology file, and I also don't know what to do.../
Attachments
error03.PNG
error03.PNG (16.28 KiB) Viewed 1868 times
code03.2.PNG
code03.2.PNG (11.72 KiB) Viewed 1868 times
code03.1.PNG
code03.1.PNG (18.54 KiB) Viewed 1868 times

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: What do I need to do with this error?

Post by eradicator »

Are you sure you require() 'ed the recipe file?
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Stormloop2005
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Aug 09, 2018 2:55 pm
Contact:

Re: What do I need to do with this error?

Post by Stormloop2005 »

nope, that's stupid

User avatar
Stormloop2005
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Aug 09, 2018 2:55 pm
Contact:

Re: What do I need to do with this error?

Post by Stormloop2005 »

I have a new error, and for me it's like Chinese...
Attachments
error04.PNG
error04.PNG (17.7 KiB) Viewed 1816 times

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: What do I need to do with this error?

Post by Bilka »

Just an error message usually doesn't help find the problem, you need to post code. Now we can only guess what the problem is: You are using data.extend instead of data:extend somewhere.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
Stormloop2005
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Aug 09, 2018 2:55 pm
Contact:

Re: What do I need to do with this error?

Post by Stormloop2005 »

ok thank you

Post Reply

Return to “Modding help”