
Failed to load mod: Unexpected symbol near <eof>
Failed to load mod: Unexpected symbol near <eof>
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>
Remove the very last comma and it should work
Re: Failed to load mod: Unexpected symbol near <eof>
Still doesn't:Nexela wrote:Remove the very last comma and it should work

Code: Select all
require("prototypes.item")
require("prototypes.recipe")
require("prototypes.entity")
Re: Failed to load mod: Unexpected symbol near <eof>
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>
Turns out I can't readKlonan 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
