Skip to content

Commit cd2c8ad

Browse files
committedSep 23, 2016
Conf.example: Re-add deleted noise parameter documentation
Re-add documentation of noise parameter formats. Re-add 'mgv5_np_ground' noise parameters in group format. Both these were deleted through auto-generation of conf.example. Add note to builtin/mainmenu/dlg_settings_advanced.lua that this documentation must be preserved.
1 parent 9fa562f commit cd2c8ad

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
 

‎builtin/mainmenu/dlg_settings_advanced.lua

+8-1
Original file line numberDiff line numberDiff line change
@@ -659,5 +659,12 @@ function create_adv_settings_dlg()
659659
return dlg
660660
end
661661

662-
-- generate minetest.conf.example and settings_translation_file.cpp:
662+
-- Generate minetest.conf.example and settings_translation_file.cpp
663+
664+
-- *** Please note ***
665+
-- There is text in minetest.conf.example that will not be generated from
666+
-- settingtypes.txt but must be preserved:
667+
-- The documentation of mapgen noise parameter formats (title plus 16 lines)
668+
-- Noise parameter 'mgv5_np_ground' in group format (13 lines)
669+
663670
--assert(loadfile(core.get_mainmenu_path()..DIR_DELIM.."generate_from_settingtypes.lua"))(parse_config_file(true, false))

‎minetest.conf.example

+33
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,25 @@
10991099
# type: int
11001100
# num_emerge_threads = 1
11011101

1102+
#### Noise parameters and formats
1103+
1104+
# Noise parameters can be specified as a set of positional values, for example:
1105+
# Offset, scale, (spread factors), seed offset, number of octaves, persistence, lacunarity
1106+
# mgv6_np_terrain_base = -4, 20, (250, 250, 250), 82341, 5, 0.6, 2.0
1107+
# Or the group format can be used instead, for example:
1108+
# mgv6_np_terrain_base = {
1109+
# offset = -4,
1110+
# scale = 20,
1111+
# spread = (250, 250, 250),
1112+
# seed = 82341,
1113+
# octaves = 5,
1114+
# persistence = 0.6,
1115+
# lacunarity = 2.0,
1116+
# flags = "defaults"
1117+
# }
1118+
# Only the group format supports noise flags which are needed for eased noise.
1119+
# Mgv5 uses eased noise for np_ground so this is shown in group format below.
1120+
11021121
# Noise parameters for biome API temperature, humidity and biome blend.
11031122
# type: noise_params
11041123
# mg_biome_np_heat = 50, 50, (750, 750, 750), 5349, 3, 0.5, 2.0
@@ -1133,6 +1152,20 @@
11331152
# type: noise_params
11341153
# mgv5_np_cave2 = 0, 12, (50, 50, 50), 10325, 4, 0.5, 2.0
11351154

1155+
# Noise parameters in group format, unsupported by advanced settings
1156+
# menu but settable in minetest.conf.
1157+
# See documentation of noise parameter formats above.
1158+
# mgv5_np_ground = {
1159+
# offset = 0,
1160+
# scale = 40,
1161+
# spread = (80, 80, 80),
1162+
# seed = 983240,
1163+
# octaves = 4,
1164+
# persistence = 0.55,
1165+
# lacunarity = 2.0,
1166+
# flags = "eased"
1167+
# }
1168+
11361169
#### Mapgen v6
11371170

11381171
# Map generation attributes specific to Mapgen v6.

0 commit comments

Comments
 (0)
Please sign in to comment.