Skip to content

Commit ae1caba

Browse files
authored
Update minetest.conf.example and settings_translation_file.cpp (#8278)
1 parent eeb6762 commit ae1caba

4 files changed

+14
-22
lines changed

builtin/mainmenu/dlg_settings_advanced.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,8 @@ function create_adv_settings_dlg()
10721072
return dlg
10731073
end
10741074

1075-
-- Uncomment to generate minetest.conf.example and settings_translation_file.cpp
1076-
-- For RUN_IN_PLACE the generated files may appear in the bin folder
1075+
-- Uncomment to generate 'minetest.conf.example' and 'settings_translation_file.cpp'.
1076+
-- For RUN_IN_PLACE the generated files may appear in the 'bin' folder.
1077+
-- See comment and alternative line at the end of 'generate_from_settingtypes.lua'.
10771078

10781079
--assert(loadfile(core.get_builtin_path().."mainmenu"..DIR_DELIM.."generate_from_settingtypes.lua"))(parse_config_file(true, false))

builtin/mainmenu/generate_from_settingtypes.lua

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ file:write(create_minetest_conf_example())
121121
file:close()
122122

123123
file = assert(io.open("src/settings_translation_file.cpp", "w"))
124+
-- If 'minetest.conf.example' appears in the 'bin' folder, the line below may have to be
125+
-- used instead. The file will also appear in the 'bin' folder.
126+
--file = assert(io.open("settings_translation_file.cpp", "w"))
124127
file:write(create_translation_file())
125128
file:close()
126129

minetest.conf.example

+1-13
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@
16301630
# Name of map generator to be used when creating a new world.
16311631
# Creating a world in the main menu will override this.
16321632
# Current stable mapgens:
1633-
# v5, v6, v7 (except floatlands), flat, singlenode.
1633+
# v5, v6, v7 (except floatlands), singlenode.
16341634
# 'stable' means the terrain shape in an existing world will not be changed
16351635
# in the future. Note that biomes are defined by games and may still change.
16361636
# type: enum values: v5, v6, v7, valleys, carpathian, fractal, flat, singlenode
@@ -1653,8 +1653,6 @@
16531653
# Global map generation attributes.
16541654
# In Mapgen v6 the 'decorations' flag controls all decorations except trees
16551655
# and junglegrass, in all other mapgens this flag controls all decorations.
1656-
# Flags that are not enabled are not modified from the default.
1657-
# Flags starting with 'no' are used to explicitly disable them.
16581656
# type: flags possible values: caves, dungeons, light, decorations, biomes, nocaves, nodungeons, nolight, nodecorations, nobiomes
16591657
# mg_flags = caves,dungeons,light,decorations,biomes
16601658

@@ -1719,8 +1717,6 @@
17191717
## Mapgen V5
17201718

17211719
# Map generation attributes specific to Mapgen v5.
1722-
# Flags that are not enabled are not modified from the default.
1723-
# Flags starting with 'no' are used to explicitly disable them.
17241720
# type: flags possible values: caverns, nocaverns
17251721
# mgv5_spflags = caverns
17261722

@@ -1856,8 +1852,6 @@
18561852
# The 'snowbiomes' flag enables the new 5 biome system.
18571853
# When the new biome system is enabled jungles are automatically enabled and
18581854
# the 'jungles' flag is ignored.
1859-
# Flags that are not enabled are not modified from the default.
1860-
# Flags starting with 'no' are used to explicitly disable them.
18611855
# type: flags possible values: jungles, biomeblend, mudflow, snowbiomes, flat, trees, nojungles, nobiomeblend, nomudflow, nosnowbiomes, noflat, notrees
18621856
# mgv6_spflags = jungles,biomeblend,mudflow,snowbiomes,trees
18631857

@@ -2027,8 +2021,6 @@
20272021

20282022
# Map generation attributes specific to Mapgen v7.
20292023
# 'ridges' enables the rivers.
2030-
# Flags that are not enabled are not modified from the default.
2031-
# Flags starting with 'no' are used to explicitly disable them.
20322024
# type: flags possible values: mountains, ridges, floatlands, caverns, nomountains, noridges, nofloatlands, nocaverns
20332025
# mgv7_spflags = mountains,ridges,nofloatlands,caverns
20342026

@@ -2279,8 +2271,6 @@
22792271
## Mapgen Carpathian
22802272

22812273
# Map generation attributes specific to Mapgen Carpathian.
2282-
# Flags that are not enabled are not modified from the default.
2283-
# Flags starting with 'no' are used to explicitly disable them.
22842274
# type: flags possible values: caverns, nocaverns
22852275
# mgcarpathian_spflags = caverns
22862276

@@ -2521,8 +2511,6 @@
25212511

25222512
# Map generation attributes specific to Mapgen flat.
25232513
# Occasional lakes and hills can be added to the flat world.
2524-
# Flags that are not enabled are not modified from the default.
2525-
# Flags starting with 'no' are used to explicitly disable them.
25262514
# type: flags possible values: lakes, hills, nolakes, nohills
25272515
# mgflat_spflags = nolakes,nohills
25282516

src/settings_translation_file.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -657,15 +657,15 @@ fake_function() {
657657
gettext("Print the engine's profiling data in regular intervals (in seconds).\n0 = disable. Useful for developers.");
658658
gettext("Mapgen");
659659
gettext("Mapgen name");
660-
gettext("Name of map generator to be used when creating a new world.\nCreating a world in the main menu will override this.\nCurrent stable mapgens:\nv5, v6, v7 (except floatlands), flat, singlenode.\n'stable' means the terrain shape in an existing world will not be changed\nin the future. Note that biomes are defined by games and may still change.");
660+
gettext("Name of map generator to be used when creating a new world.\nCreating a world in the main menu will override this.\nCurrent stable mapgens:\nv5, v6, v7 (except floatlands), singlenode.\n'stable' means the terrain shape in an existing world will not be changed\nin the future. Note that biomes are defined by games and may still change.");
661661
gettext("Water level");
662662
gettext("Water surface level of the world.");
663663
gettext("Max block generate distance");
664664
gettext("From how far blocks are generated for clients, stated in mapblocks (16 nodes).");
665665
gettext("Map generation limit");
666666
gettext("Limit of map generation, in nodes, in all 6 directions from (0, 0, 0).\nOnly mapchunks completely within the mapgen limit are generated.\nValue is stored per-world.");
667667
gettext("Mapgen flags");
668-
gettext("Global map generation attributes.\nIn Mapgen v6 the 'decorations' flag controls all decorations except trees\nand junglegrass, in all other mapgens this flag controls all decorations.\nFlags that are not enabled are not modified from the default.\nFlags starting with 'no' are used to explicitly disable them.");
668+
gettext("Global map generation attributes.\nIn Mapgen v6 the 'decorations' flag controls all decorations except trees\nand junglegrass, in all other mapgens this flag controls all decorations.");
669669
gettext("Projecting dungeons");
670670
gettext("Whether dungeons occasionally project from the terrain.");
671671
gettext("Biome API temperature and humidity noise parameters");
@@ -679,7 +679,7 @@ fake_function() {
679679
gettext("Small-scale humidity variation for blending biomes on borders.");
680680
gettext("Mapgen V5");
681681
gettext("Mapgen V5 specific flags");
682-
gettext("Map generation attributes specific to Mapgen v5.\nFlags that are not enabled are not modified from the default.\nFlags starting with 'no' are used to explicitly disable them.");
682+
gettext("Map generation attributes specific to Mapgen v5.");
683683
gettext("Cave width");
684684
gettext("Controls width of tunnels, a smaller value creates wider tunnels.");
685685
gettext("Large cave depth");
@@ -713,7 +713,7 @@ fake_function() {
713713
gettext("3D noise defining terrain.");
714714
gettext("Mapgen V6");
715715
gettext("Mapgen V6 specific flags");
716-
gettext("Map generation attributes specific to Mapgen v6.\nThe 'snowbiomes' flag enables the new 5 biome system.\nWhen the new biome system is enabled jungles are automatically enabled and\nthe 'jungles' flag is ignored.\nFlags that are not enabled are not modified from the default.\nFlags starting with 'no' are used to explicitly disable them.");
716+
gettext("Map generation attributes specific to Mapgen v6.\nThe 'snowbiomes' flag enables the new 5 biome system.\nWhen the new biome system is enabled jungles are automatically enabled and\nthe 'jungles' flag is ignored.");
717717
gettext("Desert noise threshold");
718718
gettext("Deserts occur when np_biome exceeds this value.\nWhen the new biome system is enabled, this is ignored.");
719719
gettext("Beach noise threshold");
@@ -747,7 +747,7 @@ fake_function() {
747747
gettext("Defines areas where trees have apples.");
748748
gettext("Mapgen V7");
749749
gettext("Mapgen V7 specific flags");
750-
gettext("Map generation attributes specific to Mapgen v7.\n'ridges' enables the rivers.\nFlags that are not enabled are not modified from the default.\nFlags starting with 'no' are used to explicitly disable them.");
750+
gettext("Map generation attributes specific to Mapgen v7.\n'ridges' enables the rivers.");
751751
gettext("Mountain zero level");
752752
gettext("Y of mountain density gradient zero level. Used to shift mountains vertically.");
753753
gettext("Cave width");
@@ -807,7 +807,7 @@ fake_function() {
807807
gettext("Second of two 3D noises that together define tunnels.");
808808
gettext("Mapgen Carpathian");
809809
gettext("Mapgen Carpathian specific flags");
810-
gettext("Map generation attributes specific to Mapgen Carpathian.\nFlags that are not enabled are not modified from the default.\nFlags starting with 'no' are used to explicitly disable them.");
810+
gettext("Map generation attributes specific to Mapgen Carpathian.");
811811
gettext("Base ground level");
812812
gettext("Defines the base ground level.");
813813
gettext("Cave width");
@@ -859,7 +859,7 @@ fake_function() {
859859
gettext("3D noise defining giant caverns.");
860860
gettext("Mapgen Flat");
861861
gettext("Mapgen Flat specific flags");
862-
gettext("Map generation attributes specific to Mapgen flat.\nOccasional lakes and hills can be added to the flat world.\nFlags that are not enabled are not modified from the default.\nFlags starting with 'no' are used to explicitly disable them.");
862+
gettext("Map generation attributes specific to Mapgen flat.\nOccasional lakes and hills can be added to the flat world.");
863863
gettext("Ground level");
864864
gettext("Y of flat ground.");
865865
gettext("Large cave depth");

0 commit comments

Comments
 (0)