Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Mapgen: Combine dungeon generation code | kwolekr | 2016-05-27 | 1 | -1/+10 |
| | |||||
* | Mapgen: Deduplicate common constructor code | kwolekr | 2016-05-27 | 1 | -7/+15 |
| | |||||
* | Cavegen: Move V5-style caves to CavesNoiseIntersection | kwolekr | 2016-05-27 | 1 | -3/+2 |
| | |||||
* | Fix MgStoneType and BiomeType enum names | kwolekr | 2016-05-27 | 1 | -3/+3 |
| | |||||
* | Mapgen: Combine generateBiomes, dustTopNodes, and generateCaves | kwolekr | 2016-05-27 | 1 | -0/+56 |
| | | | | | This commit condenses the above methods into a single implementation used by V7, V5, Flat, Fractal, and Valleys mapgens and introduces MapgenBasic. | ||||
* | Move biome calculation to BiomeGen | kwolekr | 2016-05-27 | 1 | -12/+9 |
| | | | | | | | BiomeGen defines an interface that, given a set of BiomeParams, computes biomes for a given area using the algorithm implemented by that specific BiomeGen. This abstracts away the old system where each mapgen supplied the noises required for biome generation. | ||||
* | FindSpawnPos: Let mapgens decide what spawn altitude is suitable | paramat | 2016-02-09 | 1 | -0/+7 |
| | | | | | | | | | | | | 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 | ||||
* | Mapgen: Add propagate_shadow bool to calcLighting | paramat | 2015-12-07 | 1 | -6/+3 |
| | | | | | | | | | | 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 | ||||
* | Mapgen: Add global 'decorations' flag | paramat | 2015-11-21 | 1 | -6/+7 |
| | | | | | | | | | | 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 | ||||
* | Add DISABLE_CLASS_COPY macro (and use it) | kwolekr | 2015-10-27 | 1 | -0/+3 |
| | | | | | | | | | Use this macro to disallow copying of an object using the assignment operator or copy constructor. This catches otherwise silent-but-deadly mistakes such as "ServerMap map = env->getMap();" at compile time. If so desired, it is still possible to copy a class, but it now requires an explicit call to memcpy or std::copy. | ||||
* | Decoration API: Add flag for placement on liquid surface | paramat | 2015-10-23 | 1 | -0/+1 |
| | | | | | Add findLiquidSurface() function to mapgen.cpp Update lua_api.txt | ||||
* | Mgv5/mgv7 biomes: Reduce heat and humidity noise spreads to former value of 750 | paramat | 2015-09-07 | 1 | -2/+2 |
| | |||||
* | Remove unused functions. | onkrot | 2015-08-16 | 1 | -2/+0 |
| | |||||
* | Biome API: Increase heat and humidity noise spreads to 1000 | paramat | 2015-06-30 | 1 | -2/+2 |
| | |||||
* | Mapgen objects: Enable heatmap and humidmap for all biome api mapgens | paramat | 2015-06-20 | 1 | -0/+2 |
| | |||||
* | Biome API: Add noise defined biome blend | paramat | 2015-06-18 | 1 | -0/+4 |
| | |||||
* | Biome API, mgv7: Increase heat/humidity spreads. Improve mgv7 noise parameters | paramat | 2015-05-24 | 1 | -2/+2 |
| | |||||
* | Split ObjDef/ObjDefManager out to objdef.cpp | kwolekr | 2015-05-18 | 1 | -68/+0 |
| | |||||
* | Mapgen v5/v7: Detect sandstone, enable sandstone brick dungeons | paramat | 2015-05-17 | 1 | -0/+7 |
| | |||||
* | ObjDefManager: Set replacement object's handle info after calling set() | kwolekr | 2015-05-03 | 1 | -1/+4 |
| | | | | | Make gamedef optional when constructing an ObjDefManager Add note about object ownership | ||||
* | Biomes: Remove referenced biomes from Decorations on clear | kwolekr | 2015-04-16 | 1 | -0/+2 |
| | |||||
* | ObjDefManager, Mapgen SAPI: Huge refactoring | kwolekr | 2015-03-31 | 1 | -1/+0 |
| | | | | | | | - General code cleanup - Unified object creation and loading - Specifying objects in APIs is now orthogonal (i.e. anything can take an ID, name string, or the raw table definition (and automatically registers if present | ||||
* | GenElementManager: Pass opaque handles to Lua and rename to ObjDefManager | kwolekr | 2015-03-31 | 1 | -17/+49 |
| | | | | Add core.clear_registered_schematics() and refactor schematics somewhat | ||||
* | Add core.register_schematic() and cache schematics on use | kwolekr | 2015-03-23 | 1 | -0/+2 |
| | |||||
* | Revert "Fix issue #2441: crash on respawn, since a conversion std::list to ↵ | kwolekr | 2015-03-20 | 1 | -1/+1 |
| | | | | | | | std::vector on Environment.cpp" This reverts parts of commit 9749d9fee6db99da1ab861dc04ec63ef973db3e0, which breaks node resolver list clearing | ||||
* | Silence Clang warning | ShadowNinja | 2015-03-10 | 1 | -2/+1 |
| | |||||
* | Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return ↵ | paramat | 2015-03-08 | 1 | -1/+0 |
| | | | | -MAP_GENERATION_LIMIT if surface not found | ||||
* | Respect game mapgen flags and save world noise params | ngosang | 2015-03-07 | 1 | -14/+17 |
| | |||||
* | Fix mapgen using unitialised height map values | Craig Robbins | 2015-03-06 | 1 | -0/+1 |
| | |||||
* | Fix issue #2441: crash on respawn, since a conversion std::list to ↵ | Loic Blot | 2015-03-05 | 1 | -1/+1 |
| | | | | | | | std::vector on Environment.cpp * Also change some std::list to std::vector for ClientMap::renderMap * Remove disabled code in ClientMap::renderMap, disabled since a long time | ||||
* | Shorten ManualMapVoxelManipulator to MMVManip | kwolekr | 2015-01-05 | 1 | -3/+2 |
| | |||||
* | Optionally specify propagateSunlight area in calcLighting | kwolekr | 2015-01-05 | 1 | -1/+5 |
| | | | | This fixes the Mapgen V5 calcLighting segfault | ||||
* | Lighting: Fix nearly all issues | kwolekr | 2015-01-04 | 1 | -0/+4 |
| | | | | | | | | | | | 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. | ||||
* | Mapgen: Use getBlockSeed2() for blockseeds (much better uniformity) | kwolekr | 2014-12-29 | 1 | -0/+4 |
| | |||||
* | Redefine NodeResolver interface and replace with callback mechanism | kwolekr | 2014-12-27 | 1 | -1/+1 |
| | |||||
* | Add minetest.clear_registered_decorations() and clear_registered_ores() | kwolekr | 2014-12-12 | 1 | -1/+2 |
| | |||||
* | Biome API: Reduce heat and humidity persistences to 0.5 | paramat | 2014-12-10 | 1 | -2/+2 |
| | |||||
* | Biomes: Make biome heat and humidity noise parameters user-configurable | kwolekr | 2014-12-09 | 1 | -0/+6 |
| | |||||
* | Add minetest.clear_registered_biomes() api | kwolekr | 2014-12-06 | 1 | -2/+2 |
| | |||||
* | Rewrite generate notification mechanism | kwolekr | 2014-12-06 | 1 | -7/+33 |
| | | | | | | | Add support for notify-on-decoration Clean up mapgen constructors Clean up mapgen.cpp code style somewhat Remove trailing whitespace from some files | ||||
* | Fix double free bug when server is shut down | Craig Robbins | 2014-11-15 | 1 | -0/+1 |
| | | | | Thanks @oleastre | ||||
* | Fix compilation under some Linux distributions | kwolekr | 2014-11-13 | 1 | -1/+1 |
| | |||||
* | Add Generator Element Management framework | kwolekr | 2014-11-12 | 1 | -9/+34 |
| | | | | Add BiomeManager, OreManager, DecorationManager, and SchematicManager | ||||
* | Split up mapgen.cpp | kwolekr | 2014-11-01 | 1 | -185/+0 |
| | |||||
* | Refactor decoration-related code | kwolekr | 2014-10-29 | 1 | -1/+2 |
| | | | | | Split up ModApiMapgen::l_register_decoration() Define and make use of CONTAINS() and ARRLEN() macros | ||||
* | Add NodeResolver and clean up node name -> content ID resolution system | kwolekr | 2014-10-26 | 1 | -24/+13 |
| | |||||
* | Split settings into seperate source and header files | ShadowNinja | 2014-09-21 | 1 | -2/+2 |
| | | | | This also cleans up settings a bit | ||||
* | Fix all warnings reported by clang | Sfan5 | 2014-04-15 | 1 | -1/+1 |
| | |||||
* | Schematic: Add force_placement parameter to minetest.place_structure API | kwolekr | 2014-02-15 | 1 | -1/+1 |
| | |||||
* | Make flag strings clear specified flag with 'no' prefix | kwolekr | 2014-02-08 | 1 | -3/+3 |
| | | | | | Remove flagmask field from set_mapgen_params table Add small bits of needed documentation |