Poikilos / EnlivenMinetest

Minetest engine server management tools and ENLIVEN game installer/updater
Other
3 stars 0 forks source link

settingstypes.txt does not produce GUI elements though code seems to be there #264

Open Poikilos opened 5 years ago

Poikilos commented 5 years ago

Where is missing "Mods" category in advanced settings (:edit: category is called "Games," with subcategory being game name upstream)? The code seems to be there: https://github.com/minetest/minetest/blob/ae1caba6aaa6f0a13e70f195f371fd4e7a378491/builtin/mainmenu/dlg_settings_advanced.lua

wget https://github.com/minetest/minetest/raw/ae1caba6aaa6f0a13e70f195f371fd4e7a378491/builtin/mainmenu/dlg_settings_advanced.lua

:edit: Now that I think about it, the mod settings should be in the world settings (possible now with Final Minetest's world.conf). Minetest.net's decision to have these settings included in the global settings part of the menu GUI doesn't make much sense (changing the global settings after using a single player world could lead to missing nodes and other issues in that world).

slopsbucket commented 5 years ago

I think the trigger for the code needs to be listed the the game itself. That's why you get all the settings available in the upstream version of game but not in ours.

This was also an issue discussed with OldCoder a long time back, he doesn't understand the importance of that gui menu.

Poikilos commented 5 years ago

Maybe I could take a look at the related C++ code later this week and submit a pull request.

Poikilos commented 5 years ago

@OldCoder @slopsbucket Short-term idea: maybe add a button in the world Configure menu to "Use Game Settings" then confirm to overwrite world.conf with game.conf as determined Advanced menu (after reimplementing "Mods" and "Games" categories there). Doing the same action (copying game.conf to world.conf) on world creation may also be a good idea. Any thoughts?

slopsbucket commented 5 years ago

That's not a silly idea. The power that world.conf gives people is not to be taken lightly, for hosts wanting to serve different types of game, and similarly for teachers in an edutech environment where they want different lessons set up for different age groups.

But most would be a lot more comfortable doing this through a GUI panel.

slopsbucket commented 5 years ago

Another thought to go with that, a decent and easy to follow GUI panel would save us from having to write out many many pages of documentation. This stuff just makes obvious sense in a GUI.

It needs to get it's settings from world.conf first, or create one if not already available.

It needs to list every available option that can be included in world.conf, that's almost every option that's available, there's only a couple that need to be set globally and I think OldCoder could fix some of those for us too. That's a very long page.

Most options are only booleans, the ones with numerical options such as dayspeed could be limited here by only allowing more logical ranges to be entered. This could always be overridden by manually editing the world,conf file.

Food for thought.