aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v6.cpp
AgeCommit message (Collapse)Author
2016-02-09FindSpawnPos: Let mapgens decide what spawn altitude is suitableparamat
To avoid spawn search failing in new specialised mapgens Increase spawn search range to 4000 nodes Add getSpawnLevelAtPoint() functions to EmergeManager, class Mapgen and all mapgens Remove getGroundLevelAtPoint() functions from all mapgens except mgv6 (possibly to be re-added later in the correct form to return actual ground level) Make mgvalleys flag names consistent with other mapgens Remove now unused 'vertical spawn range' setting
2016-01-11Mapgen: Various fixes and improvementsparamat
Lua_api.txt: Document 'minetest.registered_biomes' Minimal: Remove 'mapgen_air' alias Cavegen: Add fallback node for 'mapgen_ice' Dungeongen: Add fallback node for 'mapgen_river_water_source' Mgv5: Remove unnecessary '#include util/directiontables.h' Add missing 'this->'s in makeChunk() Mgv6: Edit empty line formatting Remove leading spaces in makeChunk() Add missing spaces after 'for' and 'if' Mgv7: Edit empty line formatting
2015-12-07Mapgen: Add propagate_shadow bool to calcLightingparamat
To terminate unwanted shadows from floatlands or realms above Also add to LuaVoxelManip calc_lighting for use in mapgen mods Remove the 2 argument calcLighting, mapgens now use the 5 argument form to specify the volumes for propagateSunlight and spreadLight In mgsinglenode replace calcLighting with setLighting and clean-up use of tabs and spaces
2015-11-21Mapgen: Add global 'decorations' flagparamat
Flag is set by default in MapgenParams The global 'trees' flag remains but is now undocumented and unset by default in MapgenParams Add mgv6_spflag 'trees' set by default in defaultsettings.cpp to affect new worlds only This is automatically backwards compatible for existing worlds
2015-11-13Mgv6: Move global mapgen flag 'flat' into mgv6 spflagsparamat
Add mgv6 spflag 'flat' Global flag is kept for backwards compatibility but is now undocumented
2015-10-09Mapgen: Use mapgen-specific names for constants in headersparamat
Update copyright years in all mapgens Add myself to copyright notices in mgv5 and mgv7
2015-10-04Define and use limit constants for Irrlicht fixed-width typeskwolekr
2015-09-19Various style cleanups + unused code removalest31
-> Don't pass pointer to whole IGameDef to NodeMetadata constructors and deserializers, but only to IItemDefManager, which is needed -> Remove the unused content_mapnode_get_new_name() method -> Fix style for MapBlock::deSerialize and MapBlock::deSerialize_pre22, improving accuracy of error messages a bit -> Fix style at other serialisation methods too -> Improve accuracy of some comments
2015-09-19Mgv5/6/7: Re-add #include profiler.h as commented-out optionparamat
2015-08-02Add map limit config optionrubenwardy
2015-07-21Remove profiler.h include where it's not needed. Remove some unreachable and ↵Loic Blot
very old code
2015-07-13Mgv6/treegen: (Re)Add fallback nodes for compatibility with subgamesparamat
2015-06-18Mgv6: Don't create air gap in tundra at y = 48 in custom high terrainparamat
2015-05-26Mgv6: Enable snowbiomes by default. Double biome noise spread. 3 octaves, ↵paramat
0.5 persistence for humidity
2015-05-12Mapgen v5/6/7: Cleanup node resolver and aliasesparamat
2015-04-12Mgv6: Fix taiga, allow pine tree spawning on snowblocksparamat
2015-04-12Mgv6: Add optional snow biomesparamat
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
2015-03-23Mgv6: Use heightmap in placeTreesAndJungleGrass()paramat
2015-03-18Mgv6: Remove addDirtGravelBlobs, replaced by blob ore in Minetest Gameparamat
Desert stone above y = -32 not water_level Remove unused generateExperimental()
2015-03-11Mgv6: Fix uninitialised heightmap used by cavegenparamat
2015-03-10Ensure that heightmap is initialized before useCraig Robbins
Without this, cavegen will use values in the heightmap before they are initialized.
2015-03-08Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return ↵paramat
-MAP_GENERATION_LIMIT if surface not found
2015-03-07Respect game mapgen flags and save world noise paramsngosang
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-03-06Fix mapgen using unitialised height map valuesCraig Robbins
2015-03-05Fix memory leak in MapgenV6Craig Robbins
2015-03-02Mgv6: Add heightmap. Do not make large caves that are entirely above groundparamat
2015-01-18Fix all warnings and remove -Wno-unused-but-set cflagkwolekr
2015-01-07Mapgen V6: Re-enable liquid flowingkwolekr
2015-01-04Lighting: Fix nearly all issueskwolekr
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-01MgV5/6/7: Generate dungeons above water levelparamat
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
2014-12-29Fix some lingering code style issueskwolekr
2014-12-12Mapgens: Rename m_emerge to prevent name collisionskwolekr
2014-12-11Clean up Noise macroskwolekr
2014-12-10Noise: Automatically transform noise maps if neededkwolekr
2014-12-10Noise: Create a deep copy of NoiseParamskwolekr
2014-12-07Add flags and lacunarity as new noise parameterskwolekr
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-06Rewrite generate notification mechanismkwolekr
Add support for notify-on-decoration Clean up mapgen constructors Clean up mapgen.cpp code style somewhat Remove trailing whitespace from some files
2014-11-14Fix warnings and other misc. minor changeskwolekr
2014-11-12Add Generator Element Management frameworkkwolekr
Add BiomeManager, OreManager, DecorationManager, and SchematicManager
2014-11-01Split up mapgen.cppkwolekr
2014-10-30mapgen: Resolve nodes in ctor rather than makeChunkkwolekr
2014-02-08Make flag strings clear specified flag with 'no' prefixkwolekr
Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
2014-02-05Remove blank default values for emergequeue_limit_* settingskwolekr
Add checks for invalid user input for important settings Rename Settings::tryGet* to Settings::get*NoEx for consistency
2014-02-05Revert "Fix settings to honor numeric conversion errors"kwolekr
This reverts commit 3f376a092e1c16429fb52f24736e9da98aff4cd5.
2014-02-04Fix settings to honor numeric conversion errorssapier
Rename try* non exceptioning functions to *NoEx
2014-02-03Huge overhaul of the entire MapgenParams systemkwolekr
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-01-12Mapgen V6: Add flag to stop mud flowkwolekr
2013-12-14Add map feature generation notify Lua APIkwolekr