Mod Packages
Posted: Fri Sep 04, 2015 7:18 pm
Currently, Mods can be added to the game in 2 ways.
1. In a folder with the name "<modname>_<version>" where <modname> is the name specified in info.json, and <version> is the #.#.# formatted version number as defined in info.json
2. In a zip file, that includes the folder specified above, of the exact same name.
What I sugest is that multiple mods are able to exist in a zip file, which can be a way of distributing mod packs to use as is, so that you don't have to extract them first.
The simple way of handling it is that the name of the zip doesn't matter, the game engine just looks inside it at the folders, and assigns a mod to each folder as it would normally.
A "Better" way of handling it, which would require a bit more programming on the Dev's part, is that this zip file is treated as a mad package. it contains all the mod folders that are part of the mod pack AND an info.json file similar to that within each mod. This info.json would then allow you to specify simple information like the modpack's name and version number, that would apear in the game's mod list as a catagory headder, and each of the mods within that pack as listed with an indentation under the pack to show it is part of it. I'm not sure if the game would be able to handle it, but perhaps even the mod's zip files could exist within the zip, rather than just the folders. This would allow you to have a mod pack within a mod pack.
The way the game would handle it on a "Is this mod installed" level, would be to just ignore the mod pack status, and look at the mods within the pack, that way if someone installs the mods indevidually, where someone else installs the pack, if they're all the same version, they should be compatable in multiplayer.
1. In a folder with the name "<modname>_<version>" where <modname> is the name specified in info.json, and <version> is the #.#.# formatted version number as defined in info.json
2. In a zip file, that includes the folder specified above, of the exact same name.
What I sugest is that multiple mods are able to exist in a zip file, which can be a way of distributing mod packs to use as is, so that you don't have to extract them first.
The simple way of handling it is that the name of the zip doesn't matter, the game engine just looks inside it at the folders, and assigns a mod to each folder as it would normally.
A "Better" way of handling it, which would require a bit more programming on the Dev's part, is that this zip file is treated as a mad package. it contains all the mod folders that are part of the mod pack AND an info.json file similar to that within each mod. This info.json would then allow you to specify simple information like the modpack's name and version number, that would apear in the game's mod list as a catagory headder, and each of the mods within that pack as listed with an indentation under the pack to show it is part of it. I'm not sure if the game would be able to handle it, but perhaps even the mod's zip files could exist within the zip, rather than just the folders. This would allow you to have a mod pack within a mod pack.
The way the game would handle it on a "Is this mod installed" level, would be to just ignore the mod pack status, and look at the mods within the pack, that way if someone installs the mods indevidually, where someone else installs the pack, if they're all the same version, they should be compatable in multiplayer.