paramat
b13d0401c0
Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return -MAP_GENERATION_LIMIT if surface not found
2015-03-08 03:54:03 +00:00
ngosang
55e479a807
Respect game mapgen flags and save world noise params
2015-03-07 15:53:39 -05:00
Craig Robbins
27791ee1aa
For usages of assert() that are meant to persist in Release builds (when NDEBUG is defined), replace those usages with persistent alternatives
2015-03-07 22:41:47 +10:00
Craig Robbins
1e07aa835e
Fix mapgen using unitialised height map values
2015-03-06 01:42:55 +10:00
paramat
e5522808f8
Cavegen, mgv5: Cleanup code
...
Conf.example: Update mgv5 mapgen params
Mgv7: Lava caves only below -256
2015-03-04 23:53:58 +00:00
paramat
a5bcca8305
Biome API: Re-calculate biome at every surface in a mapchunk column
2015-02-26 03:35:25 +00:00
paramat
37bab9fe45
Mgv7 mountains: Remove divide by zero code that creates vast walls
...
Conf.example: Add mgv7 cave1, cave2 noiseparams
Mgv7: Make skipping of mountain code relative to y=0 not water level
Mountain noise offset now -0.6 to compensate
Tune chance of large caves
2015-02-05 03:21:04 -05:00
paramat
1ac087f7fa
Mgv7 generateRidgeTerrain: Make river generation relative to water level
...
Remove widthn and make nridge zero underwater
2015-01-22 02:21:11 -05:00
paramat
763e2b90ba
Mgv7: Speed optimise calculateNoise and generateRidgeTerrain
...
Remove unnecessary range limiting of persistmap
Skip calculation of filler, mountain, ridge, heat and humidity perlinmaps in underground mapchunks
Skip generateRidgeTerrain in underground mapchunks
2015-01-22 02:10:07 -05:00
paramat
f86904256d
Mgv7 generateRidgeTerrain: Enable rangelim of widthn to remove abysses, calculate widthn later in function
...
Reduce width to 0.2
Carve river channels in deeper waters
2015-01-22 02:06:33 -05:00
paramat
07a670b33a
Mgv7: Replace small pseudorandom caves with 3D noise tunnels. Fewer large caves
2015-01-17 21:57:48 -05:00
kwolekr
7ba812f028
Lighting: Fix nearly all issues
...
The cause of a single light source seemingly being lit without spread
was due to its creation in the +Y mapblock boundary layer during map
generation, which was ignored as the overtop. This overtop explicitly
needs to be omitted during sunlight propagation, however. To accomplish
this, Mapgen::calcLighting() was split into separate functions taking
separate parameters.
Additionally, do not diminish light too early during spread. This fixes the
output inconsistency between Map::updateLighting and Mapgen::calcLighting.
2015-01-04 02:42:31 -05:00
paramat
7ef439a167
MgV5/6/7: Generate dungeons above water level
...
Use/add stone_surface_max_y to speed-optimise/guide dungeon generation
MgV7: Don't let mountain terrain chop dungeons at mapchunk borders
Make mountain terrain update stone_surface_max_y for caves in mountains
2015-01-01 15:44:26 -05:00
paramat
5b48ad088d
Mgv7: Remove range limits on mountain height to enable modification through .conf
2015-01-01 12:51:49 -05:00
kwolekr
b9066cd7f3
Fix some lingering code style issues
2014-12-29 22:04:47 -05:00
kwolekr
8d748e5bf5
Mapgen: Use getBlockSeed2() for blockseeds (much better uniformity)
2014-12-29 21:44:52 -05:00
paramat
3cb4ccc0f4
Biome API: Add shore top and shore filler nodes, underwater node, water top node. Add water top depth and shore height parameters. Remove water dust node
2014-12-28 21:37:43 -05:00
paramat
d2f750b458
Re-add hacky fix for underwater grass, to fix mgv7 user's biomes
2014-12-20 14:50:13 -05:00
kwolekr
4bba841143
Mapgens: Rename m_emerge to prevent name collisions
2014-12-12 02:38:39 -05:00
kwolekr
9ac2db17df
Clean up Noise macros
2014-12-11 02:53:10 -05:00
kwolekr
6f398af64f
Noise: Automatically transform noise maps if needed
2014-12-10 23:35:37 -05:00
kwolekr
180c455ab1
Noise: Create a deep copy of NoiseParams
2014-12-10 00:37:09 -05:00
kwolekr
66c691836a
Biomes: Make biome heat and humidity noise parameters user-configurable
2014-12-09 00:38:04 -05:00
kwolekr
22b22968a1
Add flags and lacunarity as new noise parameters
...
Add 'absolute value' option to noise map functions
Extend persistence modulation to 3D noise
Extend 'eased' option to noise2d_perlin* functions
Some noise.cpp formatting fixups
2014-12-07 21:59:32 -05:00
kwolekr
4f8d54e249
Rewrite generate notification mechanism
...
Add support for notify-on-decoration
Clean up mapgen constructors
Clean up mapgen.cpp code style somewhat
Remove trailing whitespace from some files
2014-12-06 13:53:35 -05:00
paramat
896f946cec
Add definable node_stone to biome API, mgv5, mgv7. Reduce and correct depth of mgv7 biomes. l_mapgen.cpp: add '#include mapgen_v5.h' because '#include mapgen_v7' is there. Improve underwater grass hack
2014-12-03 19:45:29 -05:00
kwolekr
2d1dd941b7
Fix warnings and other misc. minor changes
2014-11-14 03:07:12 -05:00
kwolekr
22e7b35567
Mapgen v7: Fix uninitialized spflags
...
Mapgen v5: Fix minor style issue
2014-11-12 23:58:50 -05:00
kwolekr
bb5f0e46bd
Add Generator Element Management framework
...
Add BiomeManager, OreManager, DecorationManager, and SchematicManager
2014-11-12 23:02:41 -05:00
kwolekr
08068ac0c6
Split up mapgen.cpp
2014-11-01 13:16:23 -04:00
kwolekr
17c356c5ff
mapgen: Resolve nodes in ctor rather than makeChunk
2014-10-30 02:29:37 -04:00
kwolekr
2a896ffbf7
Make flag strings clear specified flag with 'no' prefix
...
Remove flagmask field from set_mapgen_params table
Add small bits of needed documentation
2014-02-08 17:50:59 -05:00
kwolekr
141123006b
Remove blank default values for emergequeue_limit_* settings
...
Add checks for invalid user input for important settings
Rename Settings::tryGet* to Settings::get*NoEx for consistency
2014-02-05 00:17:53 -05:00
kwolekr
4f9ed8a858
Revert "Fix settings to honor numeric conversion errors"
...
This reverts commit 3f376a092e1c16429fb52f24736e9da98aff4cd5.
2014-02-05 00:05:58 -05:00
sapier
ac630a8b14
Fix settings to honor numeric conversion errors
...
Rename try* non exceptioning functions to *NoEx
2014-02-04 22:14:13 -05:00
kwolekr
1c1155e0d5
Huge overhaul of the entire MapgenParams system
...
MapgenParams is no longer a polymorphic class, eliminating the need for messy and bug-prone reallocations.
Separation between the common and mapgen-specific parameters is now strongly defined.
Mapgen parameters objects are now properly encapsulated within the proper subsystems.
2014-02-03 22:50:14 -05:00
kwolekr
85d7b64e2c
Add map feature generation notify Lua API
2013-12-14 01:52:24 -05:00
kwolekr
348d16096f
Dungeongen: Create dungeon gen tuneables; add desert temples for Mapgen V6
2013-12-07 22:45:26 -05:00
kwolekr
29b415ac04
Mapgen V7: Fix out-of-bounds array access
2013-07-06 15:22:51 -04:00
kwolekr
4b906fa7ef
Mapgen V7: Huge rewrite, also tweaks to cavegen et al.
2013-07-06 02:21:54 -04:00
kwolekr
5c8a16016c
Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API
2013-06-27 22:35:35 -04:00
proller
a0d79ac7a5
Math mapgen fix, ip show on connect, pathfinder segfault fix
2013-06-23 20:35:16 +04:00
kwolekr
9dc177e181
A handful of minor fixes to various things
2013-06-22 17:27:48 -04:00
kwolekr
1a8f453958
Add initial Decoration support, many misc. improvements & modifications
2013-06-17 03:21:36 -04:00
kwolekr
76c6a6c017
Fix nearly all warnings
2013-05-19 21:26:56 -04:00
kwolekr
41712733c8
Remove no virtual dtor warnings, make MapgenParams contain actual NoiseParams
2013-05-19 12:22:20 -04:00
kwolekr
b73a72b3ee
Enhance caves for mgv7, add ravines
2013-04-27 22:40:52 -04:00
kwolekr
0dc7f97587
mgv7: Implement getGroundLevelAtPoint(), fix layer of topnodes at chunk Y boundaries, remove growGrass()
2013-04-21 15:47:13 -04:00
kwolekr
767f979585
Class-ify caves & move to cavegen.cpp, fix cave regression, add caves to Mapgen V7
2013-04-21 01:06:19 -04:00
kwolekr
22ed3739e0
Add param2 field for ores, some minor fixes and misc. code cleanup
2013-04-07 21:21:54 -04:00