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

Post Reply
User avatar
bigfoot
Member
Posts: 203
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot
Location: Somewhere between polar bears and penguins.

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

by bigfoot » Post

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!
Spoiler
  • This mod adds an API for adding settings via the same syntax as the minetest.setting_get() & minetest.setting_set functions.
  • You can also use the chat command: /wwset in the same way you use the /set command.
  • For full documentation, see the readme.
Spoiler
  • I intend to add support for boolean values, integers/floats, position values, and even tables.
License
Code: LGPL v2.1+

Downloads
Download
or
Browse the code on Github
Spoiler
  • 0.1
    Initial commit.
Image Image Image
Last edited by bigfoot on Sun Jan 08, 2017 23:05, edited 1 time in total.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

Nice for modders!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Wuzzy
Member
Posts: 4799
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

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.

User avatar
bigfoot
Member
Posts: 203
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot
Location: Somewhere between polar bears and penguins.

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

by bigfoot » Post

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?

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

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.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

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

by ManElevation » Post

um what does it really do
My Public Mods! Discord: Rottweiler Games#3368

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

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.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 9 guests