aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_mapgen.cpp
AgeCommit message (Collapse)Author
2016-08-10Permit usage of std::unordered_map & std::unorderered_set on c++11 compilers ↵Ner'zhul
(#4430) This fallback to std::map & std::set for older compilers Use UNORDERED_SET as an example in decoration and ore biome sets Use UNORDERED_MAP as an example in nameidmapping
2016-07-03Add MapSettingsManager and new mapgen setting script API functionskwolekr
This commit refactors the majority of the Mapgen settings system. - MapgenParams is now owned by MapSettingsManager, itself a part of ServerMap, instead of the EmergeManager. - New Script API functions added: core.get_mapgen_setting core.get_mapgen_setting_noiseparams, core.set_mapgen_setting, and core.set_mapgen_setting_noiseparams. - minetest.get/set_mapgen_params are deprecated by the above new functions. - It is now possible to view and modify any arbitrary mapgen setting from a mod, rather than the base MapgenParams structure. - MapgenSpecificParams has been removed.
2016-06-05Biome API: Add per-biome riverbed material and depthparamat
Mgvalleys: Remove riverbed sand placement from base terrain generation Riverbed material placement moved to MapgenBasic::generateBiomes() Document fields and add note that the biome API is still unstable
2016-05-27Fix MgStoneType and BiomeType enum nameskwolekr
2016-05-27Move biome calculation to BiomeGenkwolekr
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.
2015-12-07Fix threshold typeest31
Fix the type of the threshold value for mapgen. The commit a78dd7f2b6b0e1fefdbaa1ae21b722dd4459e4f4 "Fix spelling of noise_threshold" has changed it to be read as int, but it can have non-integral values too. Thanks to @kwolekr for pointing this out.
2015-12-06Fix spelling of noise_thresholdJun Zhang
2015-11-05Schematics: Add core.place_schematic_on_vmanip APIkwolekr
Fix memory leak in minetest.place_schematic Slightly refactor Schematic code
2015-10-25SAPI: Throw runtime error instead of if l_get_mapgen_object called in ↵kwolekr
incorrect thread
2015-10-25SAPI: Mark all Lua API functions requiring envlockkwolekr
2015-10-04Allow setting chunksize in core.set_mapgen_paramskwolekr
2015-10-04Define and use limit constants for Irrlicht fixed-width typeskwolekr
2015-10-02Add get_biome_id(biome_name) callbackDuane Robertson
It returns the index used in mg->biomemap for a given biome name. The biomemap is useless without this unless you re-register all existing biomes, which could cause problems for anyone else trying to use biomemap. With this, you can quickly create a lookup table of ids and names.
2015-09-17Ore: Add puff ore typekwolekr
2015-09-13Ore: Add ore sheet column height range selectionkwolekr
Modders are now able to select the range of ore column height, and the midpoint at which they 'grow' starting from. This commit adds three new parameters for the 'sheet' ore type: column_height_min, column_height_max, and column_midpoint_factor. clust_size is now deprecated for this ore type.
2015-08-03Biome API: Make fallback biome stone and water, disable fillerparamat
2015-07-25Fix MSVC number conversion warningSmallJoker
2015-06-20Mapgen objects: Enable heatmap and humidmap for all biome api mapgensparamat
2015-05-28Make get_biome_list() error message more helpfulkwolekr
2015-05-28Add some missing getter functions to the lua APITeTpaAka
ObjectRef: get_properties get_armor_groups get_animation get_attach get_bone_position Players: get_physics_override hud_get_hotbar_itemcount hud_get_hotbar_image hud_get_hotbar_selected_image get_sky get_day_night_ratio get_local_animation get_eye_offset Global: minetest.get_gen_notify minetest.get_noiseparams
2015-05-17Fix null dereference when loading schematic from definition without a ↵kwolekr
NodeDefManager
2015-05-16Add mod securityShadowNinja
Due to compatibility concerns, this is temporarily disabled.
2015-05-13Fix compiler warning about sign comparisonest31
2015-05-09Schematics: Add per-node force placement optionkwolekr
2015-05-08Tests: Add schematic unittestskwolekr
Improve schematic file-saving interface Add ability to create temporary test files
2015-05-07Schematics: Add indent-with-space option for schematic Lua table serializationkwolekr
2015-05-07NodeResolver: Remove NodeResolveMethodkwolekr
This simplifies NodeResolver logic and makes some interfaces cleaner.
2015-04-20Ore: Add biomes parameterkwolekr
2015-04-19Biome API: Add biome-specific river waterparamat
2015-04-17Schematics: Fix core.schematic_create()kwolekr
2015-04-17Switch to check_v3s16 in l_mapgen.cpp and l_vmanip.cpp for type safetykwolekr
2015-04-16Biomes: Remove referenced biomes from Decorations on clearkwolekr
2015-04-16Schematics: Refactor NodeResolver and add NodeResolveMethodkwolekr
NodeResolver name lists now belong to the NodeResolver object instead of the associated NodeDefManager. In addition to minimizing unnecessary abstraction and overhead, this move permits NodeResolvers to look up nodes that they had previously set pending for resolution. So far, this functionality has been used in the case of schematics for serialization/deserialization.
2015-04-13Schematics: Reorganize (de)serialization and add Lua serialization APIkwolekr
2015-04-08Schematics: Prepend mod path to relative schematic filepathskwolekr
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-31ObjDefManager, Mapgen SAPI: Huge refactoringkwolekr
- 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
2015-03-31GenElementManager: Pass opaque handles to Lua and rename to ObjDefManagerkwolekr
Add core.clear_registered_schematics() and refactor schematics somewhat
2015-03-24lua_api/l_mapgen: generate_ores/decorations: make p1, p2 optionalparamat
2015-03-23Add core.register_schematic() and cache schematics on usekwolekr
2015-03-20Revert "Fix issue #2441: crash on respawn, since a conversion std::list to ↵kwolekr
std::vector on Environment.cpp" This reverts parts of commit 9749d9fee6db99da1ab861dc04ec63ef973db3e0, which breaks node resolver list clearing
2015-03-11lua_api/l_mapgen: Fix overlapping areas of minetest.generate_ores/decorationsparamat
2015-03-05Fix issue #2441: crash on respawn, since a conversion std::list to ↵Loic Blot
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
2015-02-26Biome API: Re-calculate biome at every surface in a mapchunk columnparamat
2015-01-05Shorten ManualMapVoxelManipulator to MMVManipkwolekr
2015-01-04Add minetest.generate_ores() and minetest.generate_decorations()kwolekr
2015-01-04Add warning about using deprecated fields in Mapgen API and update docskwolekr
2014-12-30Replace instances of height_min/height_max with y_min/y_max to remove ambiguitykwolekr
2014-12-30Decoration: Fix default parameter valueskwolekr
2014-12-29Expose mapgen parameters on scripting initkwolekr
Add minetest.get_mapgen_params() Deprecate minetest.register_on_mapgen_init()