Mod Metadata

Posted:
Mon Dec 07, 2015 02:36
by Evergreen
I just saw a post in general discussion about a mod not working because the poster didn't know to remove -master from the end of the name. I think it would be better to store information about the mod (such as name, description, screenshots, etc) in a metadata file so the end user doesn't have to worry about the folder being named correctly. This is how it appears to work with texture packs now, so why not with mods? It would also make adding mods to a mod database easier, because all of the metadata is already there for the script to parse.
Re: Mod Metadata

Posted:
Mon Dec 07, 2015 02:37
by rubenwardy
Name can already be stored in mod.conf, thanks to kaeza.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
However no other elements in mod.conf are used anywhere yet.
Re: Mod Metadata

Posted:
Mon Dec 07, 2015 02:58
by Evergreen
Right, but is it actually used within minetest to determine the mod's name? That way, the folder name wouldn't matter and new people wouldn't have to worry about it.
Re: Mod Metadata

Posted:
Mon Dec 07, 2015 03:31
by kaeza
The main menu/world config dialog seems to ignore `mod.conf`, so it just cannot be "enabled" (it shows an error about invalid chars). It works if you put the mod in a game or in `yourworld/worldmods`.
Could you open an issue on Github? Nevermind.