Page 1 of 1
Failed to load mod: Unexpected symbol near <eof>
Posted: Sat Mar 18, 2017 12:59 pm
by mcatScrub
In my recipe.lua file, the ')' at the end of the file either gets ignored by factorio (it says that ')' is expected) or it gets counted as an unexpected symbol. Here's a screenshot of my code, as well as the factorio error:

Re: Failed to load mod: Unexpected symbol near <eof>
Posted: Sat Mar 18, 2017 1:18 pm
by Nexela
Remove the very last comma and it should work
Re: Failed to load mod: Unexpected symbol near <eof>
Posted: Sat Mar 18, 2017 3:04 pm
by mcatScrub
Nexela wrote:Remove the very last comma and it should work
Still doesn't:
Here's my data.lua:
Code: Select all
require("prototypes.item")
require("prototypes.recipe")
require("prototypes.entity")
Re: Failed to load mod: Unexpected symbol near <eof>
Posted: Sat Mar 18, 2017 3:10 pm
by Klonan
mcatScrub wrote:In my recipe.lua file, the ')' at the end of the file either gets ignored by factorio (it says that ')' is expected) or it gets counted as an unexpected symbol. Here's a screenshot of my code, as well as the factorio error:

It says the error is in entities.lua, line 57, not in recipes
Re: Failed to load mod: Unexpected symbol near <eof>
Posted: Sat Mar 18, 2017 4:00 pm
by mcatScrub
Klonan wrote:mcatScrub wrote:In my recipe.lua file, the ')' at the end of the file either gets ignored by factorio (it says that ')' is expected) or it gets counted as an unexpected symbol. Here's a screenshot of my code, as well as the factorio error:

It says the error is in entities.lua, line 57, not in recipes
Turns out I can't read

. Thanks for the help!