Page 1 of 1

What do I need to do with this error?

Posted: Sun Aug 12, 2018 11:29 am
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?

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

Posted: Sun Aug 12, 2018 1:13 pm
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=".

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

Posted: Sun Aug 12, 2018 2:56 pm
by Stormloop2005
I tried what you just posted but I just get another error.

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

Posted: Mon Aug 13, 2018 1:58 am
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.

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

Posted: Sat Aug 18, 2018 8:24 am
by Stormloop2005
I see, thank you

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

Posted: Sat Aug 18, 2018 9:03 am
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.../

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

Posted: Sat Aug 18, 2018 10:10 am
by eradicator
Are you sure you require() 'ed the recipe file?

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

Posted: Sat Aug 18, 2018 10:54 am
by Stormloop2005
nope, that's stupid

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

Posted: Tue Aug 21, 2018 11:38 am
by Stormloop2005
I have a new error, and for me it's like Chinese...

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

Posted: Tue Aug 21, 2018 1:50 pm
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.

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

Posted: Tue Aug 21, 2018 2:17 pm
by Stormloop2005
ok thank you