1. I would rather have a modname like in the Minetest' s mods folder (i mean e.g. mesecons, moreores, mobf etc.), and real mod name and description should be in the description field. In othere words, my modname is your ID ;). And it is for both modlist and modinfo. It will be also better for your scripts, because "minetest/forum/api/3m/getmodbyname?id=Minecraft like item drop/pick up" would be rather problematic URL... Also, my parsers are quite strict ;).
2. The default dependency should also be listed in modinfo. Or "none" if it really depends on nothing.
3. The repotypes. Since mesecons is on a Github, the best solution would be setting repotype to git and a public clone URL as its address.
4. And I really need those releases. And release changes ONLY when content of the mod changes.
Project status: SYNC IS WORKING! I would be grateful if someone else would test it. Here is a quick guide to configuration (currently only for Linux):
1. In your home directory create a .3m directory.
2. In ~/.3m create two files: config and remote_modlists
3. In config write your settings in the following format:
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
[localpath]
/path/to/your/local/minetest/mods/repository/
[modlist]
/path/to/your/local/modlist.3mlm
[repoinfo]
/path/to/your/local/repoinfo.3mri
Note: The files above don' t have to exist, but their directories must be writeable.
4. In remote_modlists write your remote modlist list in the following format:
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
{modlistname}
[server]
server.with.your.modlist.3mml
[path]
/path/to/modlist.3mml/on/the/server
{end}
5. Compile 3m - "make" or "make 3m"
6. run ./3m -S
7. If everything is set up correctly, you should find a generated local modlist.3mlm in the directory, that you choosed.
File examples:
config:
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
[localpath]
/home/phitherek/Pobrane/minetest/mods/3m/
[modlist]
/home/phitherek/Pobrane/minetest/mods/3m/modlist.3mlm
[repoinfo]
/home/phitherek/Pobrane/minetest/mods/3m/repoinfo.3mri
[end]
remote_modlists:
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
{local}
[server]
phitherek.dyndns.org
[path]
/3m/files/modlist.3mml
{end}
Rubenwardy, you can now test your API yourself, just see if and how is the local modlist generated ;). And thank you for collaboration, because with your DB is one more, easy to maintain repository and the mod developers are more likely to register there than create modinfos for 3m themselves ;).