Page 1 of 1

Error message info.json file

Posted: Sat Oct 18, 2025 10:45 am
by marcypooh-san
Hey! Im completely new to modding and used ChatGPT to update the code of this old mod: https://mods.factorio.com/mod/themighty ... d836e001a4. I would like to test it but the mod doesnt show up in the mod list after i copy it there and i get this error message:
Error ModManager.cpp:1135: Mod package read error. File C:/Users/dalor/AppData/Roaming/Factorio/mods/LongReachSpaceAge.zip/info.json not found. But the info.json file is in the zip. Some assistence would be appreciated.

Re: Error message info.json file

Posted: Sun Oct 19, 2025 4:54 am
by Pi-C
You've got these two lines wrong:

Code: Select all

  "factorio_version": "2.0.69",
  "dependencies": ["base >= 1.0.0"],
The mod should load if you change them to

Code: Select all

  "factorio_version": "2.0",
  "dependencies": [
  	"base >= 2.0.69",
  	"space-age >= 2.0.69"
  ],

Re: Error message info.json file

Posted: Wed Oct 22, 2025 8:22 am
by marcypooh-san
Sadly i still get the same error message:

0.122 Error ModManager.cpp:1135: Mod package read error. File C:/Users/dalor/AppData/Roaming/Factorio/mods/LongReachSpaceAge.zip/info.json not found

Is the formatting in the json file of importance? What else could be the issue?

Re: Error message info.json file

Posted: Wed Oct 22, 2025 5:10 pm
by Artenchink
Maybe you need like this?:

Code: Select all

  "factorio_version": "2.0",
  "dependencies": ["base", "space-age"]
Its working for me. You can copy this code:

Code: Select all

{
  "name": "ModName", -- Name of your mod
  "version": "0.1.0", -- Version of your mod
  "title": "ModName", -- Title of your mod
  "author": "YourNickName, -- Your nickname
  "factorio_version": "2.0", -- Factorio version
  "dependencies": ["base", "space-age"] -- mods need for working of these mod
}
If it still doesnt working, it can be maybe bug or something in prototypes or others folders brokes info.json :geek:
You can message me if it still doesnt working

Re: Error message info.json file

Posted: Wed Oct 22, 2025 6:57 pm
by robot256
~~The mod files need to be inside a folder (named the same as the mod) inside the zip file.~~

JSON files normally cannot include comments. Try deleting the '--' and everything after it.

Re: Error message info.json file

Posted: Wed Oct 22, 2025 7:26 pm
by Pi-C
Common mistakes are that
  • the last line before the closing brace '}' ends with a comma
  • the other lines after the opening brace '{' DO NOT end with a comma
I am not sure whether empty lines are allowed between the braces. In the above, 'line' refers to lines that actually contain text.