Page 1 of 1

[Mod] World Specific Settings [0.1] [wwsettings]

PostPosted: Sun Oct 16, 2016 18:31
by bigfoot547
Hello! This mod adds an API for world-specific settings so that your worlds folder is not filled with 10 or so configuration files that contain only one setting!

This mod is for 0.4.14 because I made it in that version.

Bugs
If any bugs are found, github is preferable but the forums are acceptable.

Suggestions
Suggestions are welcomed. If you post them where I can find them, it is okay!

+ Features

+ Planned Features


License
Code: LGPL v2.1+

Downloads
Download
or
Browse the code on Github

+ Changelog


Image Image Image

Re: [Mod] World Specific Settings [0.1] [wwsettings]

PostPosted: Mon Oct 17, 2016 11:39
by azekill_DIABLO
Nice for modders!

Re: [Mod] World Specific Settings [0.1] [wwsettings]

PostPosted: Tue Oct 18, 2016 13:33
by Wuzzy
Ummm, this is something which belongs to core Minetest or builtin.

This is a typical “no-brainer” feature which users/server operators would always want. There is no good reason to not have this feature. Therefore: core feature.

Re: [Mod] World Specific Settings [0.1] [wwsettings]

PostPosted: Thu Oct 20, 2016 01:56
by bigfoot547
Well, one of the reasons for this mod is because I have a private whitelisted server and I heavily mod it. I found about 10 .conf files that only had 1 or 2 settings. As a bonus, I found it in Nore's personal to-do list and I wanted to test the feature before it was added.

EDIT: Could this be added? and how?

Re: [Mod] World Specific Settings [0.1] [wwsettings]

PostPosted: Thu Oct 20, 2016 09:25
by azekill_DIABLO
It could be added by changing the core to make it write the settngs in world.mt or world.conf in the worlds folder instead of a general minetest.conf file. also the engine of the game should have a basic minetest.conf only used if no conf is present in the world folder. The subgame should also be able to have his own minetest conf. Like that, a game which gives privs to player at start could override the basic settings of the world.conf.

Re: [Mod] World Specific Settings [0.1] [wwsettings]

PostPosted: Thu Oct 20, 2016 12:00
by ManElevation
um what does it really do

Re: [Mod] World Specific Settings [0.1] [wwsettings]

PostPosted: Thu Oct 20, 2016 12:54
by azekill_DIABLO
What does it do?

example: you want to have a special player property or a particular mapgen for a world, with the actual minetest.conf, this will be modified for every world you create, and if you delete the setting, you will have to reselect it for the special world. With the WWsettings you can add a special feature for every world, every time you play them.