TechnicSolder
TechnicSolder copied to clipboard
Support For Metadata of 1.14+ Mods
Describe the bug
When uploading a forge mod for any version above 1.14, no mod metadata is found due to the fact that for the past few years, they have abandoned the mcmod.info standard and have now created and follow the mods.toml file standard. This standard requires a file called mods.toml
to be located in the META-INF
folder in the mod's base directory or in src/main/resources/META-INF/
. Because of a lack of support for mods.toml files and the new file-structure, TheGameSpider's TechnicSolder does not detect the mod info automatically, even when it does exist. This can make modpack creation tiring at times as the data is there, but we need to enter it manually. This also creates issues when uploading new versions of a mod as we need to rename it to the same name as the old version, and make sure the slug is the same. This then causes the description to go away and we need to completely redefine the description of the mod. Support for both mcmod.info and mods.toml files would be greatly appreciated.
To Reproduce Steps to reproduce the behaviour:
- Go to 'Mod Library'
- Upload a mod for version 1.14 or higher
- See that mod has no info available.
Expected behaviour
The software should look for a mcmod.info
file. If the file does not exist, it should then look for a mods.toml
file and get the information from it.
Additional context mods.toml file format: https://github.com/MinecraftForge/MinecraftForge/blob/1.14.x/mdk/src/main/resources/META-INF/mods.toml Documentation on the structuring of the file with info on what the fields mean and what ones are required/not required: https://mcforge.readthedocs.io/en/latest/gettingstarted/structuring/ TOML file format documentation: https://toml.io/en/ TOML on Wikipedia: https://en.wikipedia.org/wiki/TOML PHP TOML Parser 1: https://github.com/yosymfony/toml PHP TOML Parser 2: https://github.com/leonelquinteros/php-toml
Honestly, this shouldn't be too big of a fix as the file format for .toml is relatively simple
Fixed in PR #37 !