Page 1 of 1

World-specific minetest.conf?

PostPosted: Mon Jul 25, 2016 13:33
by Wuzzy
Is it already possible that Minetest supports minetest.conf files specific to a particular world? All settings in such a file should overwrite settings of the “global” minetest.conf.
I know a similar thing already exists for subgames.

If it's not yet possible, I propose to add such a thing because I think this would be useful.
If implemented, the order or preference should be this (“>” = “overwrites”):
World-specific minetest.conf > Subgame-specific minetest.conf > Global minetest.conf > Default settings

I also propose to add the server command “setw”. It's the same as “set” the only difference is that it uses the world-specific minetest.conf (for the current world) instead.

Use case: I often tend to do “/set time_speed 0” on worlds where I just want to test stuff (this disables the movement of the sun), but I still want to have the normal behaviour for all other worlds for actual playing. Too bad this always changes the global time_speed which is annoying. With “/setw time_speed 0” I can set it for the current world only.

Re: World-specific minetest.conf?

PostPosted: Mon Jul 25, 2016 13:37
by everamzah
I'd rather see player profile-specific minetest.conf. So if I'm playing on profile "everamzah" I can get everamzah's config, and if I am playing on "test" profile, then I can get my test configuration.

Per world configuration is easily solved with --world <name> --config name.conf

Re: World-specific minetest.conf?

PostPosted: Mon Jul 25, 2016 13:43
by Wuzzy
I'd rather see player profile-specific minetest.conf. So if I'm playing on profile "everamzah" I can get everamzah's config, and if I am playing on "test" profile, then I can get my test configuration.

1) This is off-topic
2) User accounts are / should be taken care of by the OS. Minetest should not reinvent the wheel.

Per world configuration is easily solved with --world <name> --config name.conf

This works if you want a specific config file for a single time. But I want a persistent per-world configuration. Requiring the user to restart Minetest from the command line each time a new world with “special” config is loaded is very, VERY bad usability.

Re: World-specific minetest.conf?

PostPosted: Tue Oct 18, 2016 00:34
by bigfoot547
Hey! I made a mod for this!
The Forum Topic

So... I hope this helps!

Re: World-specific minetest.conf?

PostPosted: Tue Oct 18, 2016 13:34
by Wuzzy
I think this should be a core feature as there is no good reason to not have it; it should be available for all worlds, not just when you have this mod enabled. But it's a start.

Re: World-specific minetest.conf?

PostPosted: Tue Oct 18, 2016 14:59
by maikerumine
I for one, would really want this as a baked in feature. Say it checks the game folder for the conf first. This way We wouldn't need different installations of MT for our multiple servers.

Also, Multiple Debug files per game or world to keep things simply complicated. ;-)