Page 1 of 1

First mod problems [solved]

Posted: Thu Apr 11, 2019 7:54 pm
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"
}

Re: First mod problems

Posted: Thu Apr 11, 2019 8:02 pm
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

Re: First mod problems

Posted: Thu Apr 11, 2019 8:08 pm
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!

Re: First mod problems

Posted: Thu Apr 11, 2019 8:09 pm
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.