World settings system

User avatar
Gael de Sailly
Member
 
Posts: 475
Joined: Sun Jan 26, 2014 17:01
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

World settings system

by Gael de Sailly » Sun Jan 24, 2016 10:42

Many mods store per-world settings in the world directory. They all have a different way to do it.
I propose to add a core feature, providing a settings system that is automatically saved in a world.conf, like minetest.conf.
Mod can store everything they want in that file, with functions like minetest.world_setting_get. Or maybe overriding minetest.setting_get and similar, to get the world.conf value if defined, and the minetest.conf value if not.

And (if possible, may be a big builtin rewrite), adding the ability for mods to show a formspec just after mods loading, with the mods config, that will be stored in world.conf when fields are sent.
Very busy this year too, so do not expect me to be very active on the forum or in game. But I'm not about to drop Minetest forever :)
 

843jdc
Member
 
Posts: 207
Joined: Tue Jan 19, 2016 16:46
GitHub: jdc843
IRC: jdc843
In-game: 843jdc

Re: World settings system

by 843jdc » Tue Apr 19, 2016 19:10

The money2 mod creates a file for each player.

Having a world-specific directory for mod data would be nice. I don't know if that is possible or not. I haven't tried it yet. I will try this soon and hope I don't mess things up too badly.
 

bobomb
Member
 
Posts: 101
Joined: Sat May 23, 2015 20:28
GitHub: bobombolo
IRC: bobomb

Re: World settings system

by bobomb » Tue Apr 19, 2016 22:53

https://github.com/minetest/minetest/bl ... .txt#L3063
trying to figure out how this works.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 6 guests

cron