Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit3c6b2ff

Browse files
duane-rparamat
authored andcommitted
Add Valleys mapgen.
1 parentb4cbcae commit3c6b2ff

File tree

7 files changed

+1300
-0
lines changed

7 files changed

+1300
-0
lines changed

‎build/android/jni/Android.mk

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ LOCAL_SRC_FILES := \
179179
jni/src/mapgen_v5.cpp\
180180
jni/src/mapgen_v6.cpp\
181181
jni/src/mapgen_v7.cpp\
182+
jni/src/mapgen_valleys.cpp\
182183
jni/src/mapnode.cpp\
183184
jni/src/mapsector.cpp\
184185
jni/src/mesh.cpp\

‎builtin/settingtypes.txt

+78
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,84 @@ mgfractal_np_filler_depth (Mapgen fractal filler depth noise parameters) noise_p
10331033
mgfractal_np_cave1 (Mapgen fractal cave1 noise parameters) noise_params 0, 12, (128, 128, 128), 52534, 4, 0.5, 2.0
10341034
mgfractal_np_cave2 (Mapgen fractal cave2 noise parameters) noise_params 0, 12, (128, 128, 128), 10325, 4, 0.5, 2.0
10351035

1036+
# Mapgen Valleys parameters
1037+
[***Mapgen Valleys]
1038+
1039+
# General parameters
1040+
[****General]
1041+
1042+
# Map generation attributes specific to Mapgen Valleys.
1043+
# Flags that are not specified in the flag string are not modified from the default.
1044+
# Flags starting with "no" are used to explicitly disable them.
1045+
# "altitude_chill" makes higher elevations colder, which may cause biome issues.
1046+
# "fast" produces softer terrain, more quickly
1047+
# "humid_rivers" modifies the humidity around rivers and in areas where water would tend to pool. It may interfere with delicately adjusted biomes.
1048+
# "rugged" and "cliffs" do nothing unless "fast" is enabled
1049+
mg_valleys_spflags (Valleys C Flags) flags altitude_chill,cliffs,humid_rivers,nofast,rugged altitude_chill,noaltitude_chill,cliffs,nocliffs,fast,nofast,humid_rivers,nohumid_rivers,rugged,norugged
1050+
1051+
# The altitude at which temperature drops by 20C
1052+
mg_valleys_altitude_chill (Altitude Chill) int 90
1053+
1054+
# Average humidity
1055+
mg_valleys_humidity (Humidity) int 50
1056+
1057+
# The highest humidity around rivers in otherwise dry areas
1058+
mg_valleys_humidity_break_point (Humidity Break) int 65
1059+
1060+
# Maximum altitude where lava can emerge
1061+
mg_valleys_lava_max_height (Lava Height) int 0
1062+
1063+
# Maximum altitude where water occurs in caves (and tends to fall out)
1064+
mg_valleys_cave_water_max_height (Cave Water Height) int 31000
1065+
1066+
# How deep to make rivers
1067+
mg_valleys_river_depth (River Depth) int 4
1068+
1069+
# How wide to make rivers
1070+
mg_valleys_river_size (River Size) int 5
1071+
1072+
# Average temperature
1073+
mg_valleys_temperature (Temperature) int 50
1074+
1075+
# How often water occurs in caves (0-10)
1076+
mg_valleys_water_features (Water Features) int 3
1077+
1078+
# Noise parameters
1079+
[****Noises]
1080+
1081+
# Cliff noise
1082+
mg_valleys_np_cliffs (Cliffs) noise_params 0, 1, (750, 750, 750), 8445, 5, 1.0, 2.0
1083+
1084+
# Mountain corrugation
1085+
mg_valleys_np_corr (Corrugation) noise_params 0, 1, (40, 40, 40), -3536, 4, 1.0, 2.0
1086+
1087+
# The depth of dirt or other filler
1088+
mg_valleys_np_filler_depth (Filler Depth) noise_params 0, 1.2, (256, 256, 256), 1605, 3, 0.5, 2.0
1089+
1090+
# River noise -- rivers occur close to zero
1091+
mg_valleys_np_rivers (River Noise) noise_params 0, 1, (256, 256, 256), -6050, 5, 0.6, 2.0
1092+
1093+
# Caves and tunnels form at the intersection of the two noises
1094+
mg_valleys_np_simple_caves_1 (Simple Caves #1) noise_params 0, 1, v3f(64, 64, 64), -8402, 3, 0.5, 2.0
1095+
1096+
# Caves and tunnels form at the intersection of the two noises
1097+
mg_valleys_np_simple_caves_2 (Simple Caves #2) noise_params 0, 1, v3f(64, 64, 64), 3944, 3, 0.5, 2.0
1098+
1099+
# Base terrain height
1100+
mg_valleys_np_terrain_height (Terrain Height) noise_params -10, 50, (1024, 1024, 1024), 5202, 6, 0.4, 2.0
1101+
1102+
# Raises terrain to make valleys around the rivers
1103+
mg_valleys_np_valley_depth (Valley Depth) noise_params 5, 4, (512, 512, 512), -1914, 1, 1.0, 2.0
1104+
1105+
# Slope and fill work together to modify the heights
1106+
mg_valleys_np_inter_valley_fill (Valley Fill) noise_params 0, 1, (256, 512, 256), 1993, 6, 0.8, 2.0
1107+
1108+
# Amplifies the valleys
1109+
mg_valleys_np_valley_profile (Valley Profile) noise_params 0.6, 0.5, (512, 512, 512), 777, 1, 1.0, 2.0
1110+
1111+
# Slope and fill work together to modify the heights
1112+
mg_valleys_np_inter_valley_slope (Valley Slope) noise_params 0.5, 0.5, (128, 128, 128), 746, 1, 1.0, 2.0
1113+
10361114
[*Security]
10371115

10381116
# Prevent mods from doing insecure things like running shell commands.

‎minetest.conf.example

+41
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,47 @@
13131313
# type: noise_params
13141314
# mgfractal_np_cave2 = 0, 12, (128, 128, 128), 10325, 4, 0.5, 2.0
13151315

1316+
#### Mapgen Valleys
1317+
1318+
#mg_valleys_spflags = altitude_chill,cliffs,humid_rivers,nofast,rugged
1319+
# "altitude_chill" makes higher elevations colder, which may cause biome issues.
1320+
# "fast" produces softer terrain, more quickly
1321+
# "humid_rivers" modifies the humidity around rivers and in areas where water would tend to pool. It may interfere with delicately adjusted biomes.
1322+
# "rugged" and "cliffs" do nothing unless "fast" is enabled
1323+
#
1324+
#mg_valleys_altitude_chill = 90 # the altitude at which temperature drops by 20C
1325+
#mg_valleys_cave_water_max_height = 31000 # max altitude of water in caves
1326+
#mg_valleys_humidity = 50 # the average humidity
1327+
#mg_valleys_humidity_break_point = 65 # The highest humidity around rivers in otherwise dry areas
1328+
#mg_valleys_lava_max_height = 0 # maximum altitude of lava
1329+
#mg_valleys_river_depth = 4 # how deep to make rivers
1330+
#mg_valleys_river_size = 5 # how wide to make rivers
1331+
#mg_valleys_temperature = 50 # the average temperature
1332+
#mg_valleys_water_features = 3 # how often water occurs in caves (0-10)
1333+
#
1334+
#mg_valleys_np_cliffs = 0, 1, (750, 750, 750), 8445, 5, 1.0, 2.0
1335+
#mg_valleys_np_corr = 0, 1, (40, 40, 40), -3536, 4, 1.0, 2.0
1336+
#mg_valleys_np_filler_depth = 0, 1.2, (256, 256, 256), 1605, 3, 0.5, 2.0
1337+
#
1338+
# River noise -- rivers occur close to zero
1339+
#mg_valleys_np_rivers = 0, 1, (256, 256, 256), -6050, 5, 0.6, 2.0
1340+
#
1341+
#mg_valleys_np_simple_caves_1 = 0, 1, v3f(64, 64, 64), -8402, 3, 0.5, 2.0
1342+
#mg_valleys_np_simple_caves_2 = 0, 1, v3f(64, 64, 64), 3944, 3, 0.5, 2.0
1343+
#
1344+
# Base terrain height
1345+
#mg_valleys_np_terrain_height = -10, 50, (1024, 1024, 1024), 5202, 6, 0.4, 2.0
1346+
#
1347+
# Raises terrain to make valleys around the rivers
1348+
#mg_valleys_np_valley_depth = 5, 4, (512, 512, 512), -1914, 1, 1.0, 2.0
1349+
#
1350+
# Slope and fill work together to modify the heights
1351+
#mg_valleys_np_inter_valley_fill = 0, 1, (256, 512, 256), 1993, 6, 0.8, 2.0
1352+
#mg_valleys_np_inter_valley_slope = 0.5, 0.5, (128, 128, 128), 746, 1, 1.0, 2.0
1353+
#
1354+
# Amplifies the valleys
1355+
#mg_valleys_np_valley_profile = 0.6, 0.5, (512, 512, 512), 777, 1, 1.0, 2.0
1356+
13161357
## Security
13171358

13181359
# Prevent mods from doing insecure things like running shell commands.

‎src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ set(common_SRCS
388388
mapgen_v5.cpp
389389
mapgen_v6.cpp
390390
mapgen_v7.cpp
391+
mapgen_valleys.cpp
391392
mapnode.cpp
392393
mapsector.cpp
393394
mg_biome.cpp

‎src/emerge.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
3939
#include"mapgen_v5.h"
4040
#include"mapgen_v6.h"
4141
#include"mapgen_v7.h"
42+
#include"mapgen_valleys.h"
4243
#include"mapgen_singlenode.h"
4344
#include"mg_biome.h"
4445
#include"mg_ore.h"
@@ -108,6 +109,7 @@ MapgenDesc g_reg_mapgens[] = {
108109
{"v7",new MapgenFactoryV7,true},
109110
{"flat",new MapgenFactoryFlat,true},
110111
{"fractal",new MapgenFactoryFractal,true},
112+
{"valleys",new MapgenFactoryValleys,true},
111113
{"singlenode",new MapgenFactorySinglenode,false},
112114
};
113115

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp