Error message info.json file

Place to get help with not working mods / modding interface.
marcypooh-san
Burner Inserter
Burner Inserter
Posts: 16
Joined: Mon Jun 08, 2020 12:58 pm
Contact:

Error message info.json file

Post 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.
Attachments
factorio-current.log
(10.68 KiB) Downloaded 28 times
settings.lua
(1010 Bytes) Downloaded 30 times
info.json
(410 Bytes) Downloaded 28 times
event.lua
(4.7 KiB) Downloaded 29 times
control.lua
(1.55 KiB) Downloaded 27 times
LongReachSpaceAge.zip
(2.88 KiB) Downloaded 29 times
Pi-C
Smart Inserter
Smart Inserter
Posts: 1788
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Error message info.json file

Post 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"
  ],
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
marcypooh-san
Burner Inserter
Burner Inserter
Posts: 16
Joined: Mon Jun 08, 2020 12:58 pm
Contact:

Re: Error message info.json file

Post 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?
Attachments
settings.lua
(1010 Bytes) Downloaded 27 times
LongReachSpaceAge.zip
(2.74 KiB) Downloaded 33 times
info.json
(450 Bytes) Downloaded 30 times
event.lua
(4.7 KiB) Downloaded 24 times
control.lua
(1.55 KiB) Downloaded 29 times
factorio-current.log
(13.6 KiB) Downloaded 26 times
Artenchink
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Oct 17, 2025 8:39 am
Contact:

Re: Error message info.json file

Post 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
robot256
Smart Inserter
Smart Inserter
Posts: 1315
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Error message info.json file

Post 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.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Pi-C
Smart Inserter
Smart Inserter
Posts: 1788
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Error message info.json file

Post 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.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Post Reply

Return to “Modding help”