First mod problems [solved]

Place to get help with not working mods / modding interface.
Pirate
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Apr 28, 2017 6:25 pm
Contact:

First mod problems [solved]

Post by Pirate »

I was recreating the Fire Armor mod from the wiki tutorial, but the game doesn't load it. I checked for typos like 5 times already. Compared my files against files downloaded from github. Everything seems to be the way its supposed to be but I still get an error in the logfile.

Code: Select all

0.547 Error ModManager.cpp:793: Mod package read error. JSON parser error in package metadata: Unexpected character (0) at C:/Users/Pirat/AppData/Roaming/Factorio/mods/FireArmor_0.1.0/info.json:8
I can't figure out what's wrong.

Here's the info.json

Code: Select all

{
	"name": "FireArmor",
	"version": "0.1.0",
	"title": "Fire Armor",
	"author": "Pirate",
	"contact": "",
	"homepage": "",
	"factorio_version: "0.17",
	"dependencies": ["base >= 0.17"],
	"description": "Armor that leaves a fire trail"
}
Last edited by Pirate on Thu Apr 11, 2019 8:18 pm, edited 1 time in total.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: First mod problems

Post by darkfrei »

The file info.json has too much or to few commas, quotes or colons.

The good one looks like:

Code: Select all

{
  "name": "BurnBarrels",
  "version": "0.1.2",
  
  "title": "Burn Barrels",
  "description": "It's possible to use barrels as burning power source",

  "author": "darkfrei",
  "dependencies": ["base", "? BurntExtractor"],
  "factorio_version": "0.17"
}
Please save it as UTF-8 without BOM
Attachments
2019-04-11 22_03_32-.png
2019-04-11 22_03_32-.png (4.24 KiB) Viewed 1146 times
Pirate
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Apr 28, 2017 6:25 pm
Contact:

Re: First mod problems

Post by Pirate »

OMG! I was missing a quote. I even ran the files through Compare It! I don't know how I missed it.

Thanks a bunch!
Last edited by Pirate on Thu Apr 11, 2019 8:17 pm, edited 1 time in total.
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: First mod problems

Post by eduran »

You are missing a quotation mark after factorio_version. The final number (8) in your error message tells you which line is at fault.
Post Reply

Return to “Modding help”