Mod Metadata

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Mod Metadata

by Evergreen » Mon Dec 07, 2015 02:36

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.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Mod Metadata

by rubenwardy » Mon Dec 07, 2015 02:37

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.
Code: Select all
name = modname


However no other elements in mod.conf are used anywhere yet.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: Mod Metadata

by Evergreen » Mon Dec 07, 2015 02:58

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.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Mod Metadata

by kaeza » Mon Dec 07, 2015 03:31

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.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 5 guests

cron