Failed to load mod: Unexpected symbol near <eof>

Place to get help with not working mods / modding interface.
mcatScrub
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Mar 18, 2017 12:55 pm
Contact:

Failed to load mod: Unexpected symbol near <eof>

Post 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:
Image
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Failed to load mod: Unexpected symbol near <eof>

Post by Nexela »

Remove the very last comma and it should work
mcatScrub
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Mar 18, 2017 12:55 pm
Contact:

Re: Failed to load mod: Unexpected symbol near <eof>

Post by mcatScrub »

Nexela wrote:Remove the very last comma and it should work
Still doesn't:
Image
Here's my data.lua:

Code: Select all

require("prototypes.item")
require("prototypes.recipe")
require("prototypes.entity")
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5411
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Failed to load mod: Unexpected symbol near <eof>

Post 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:
Image

It says the error is in entities.lua, line 57, not in recipes
mcatScrub
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Mar 18, 2017 12:55 pm
Contact:

Re: Failed to load mod: Unexpected symbol near <eof>

Post 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:
Image

It says the error is in entities.lua, line 57, not in recipes
Turns out I can't read :D . Thanks for the help!
Post Reply

Return to “Modding help”