aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
AgeCommit message (Collapse)Author
2015-04-20Ore: Add biomes parameterkwolekr
2015-04-19Add 'persistence' alias for Lua noiseparams and validate more vector parameterskwolekr
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-17Refactor around translatePasswordest31
Change types for passed password from wstring to string, which removes converting back and forth in most cases. Move the narrow_to_wide conversion, where its neccessary, closer to irrlicht. Remove trailing spaces in guiPasswordChange.cpp. Make parameters for translatePassword passed as const reference.
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-16Use std::vector instead of std::set for Environment::getObjectsInsideRadiusLoic Blot
We are only iterating sequentially, we don't need a set here Also use a vector reference instead of a copy
2015-04-13Schematics: Reorganize (de)serialization and add Lua serialization APIkwolekr
2015-04-08Document for api functions that rely on current_modname, that it doesn't ↵est31
work when not loading mods
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-29Fix typoCraig Robbins
2015-03-28Add Lua function get_video_modes() for main menuCraig Robbins
Also updates and uses porting::getSupportedVideoModes()
2015-03-27Clean up and tweak build systemShadowNinja
* Combine client and server man pages. * Update unit test options and available databases in man page. * Add `--worldname` to man page. * Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`. * Disable server build by default on all operating systems. * Make `ENABLE_FREETYPE` not fail if FreeType isn't found. * Enable LevelDB, Redis, and FreeType detection by default. * Remove the `VERSION_PATCH_ORIG` hack. * Add option to search for and use system JSONCPP. * Remove broken LuaJIT version detection. * Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`. * Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`. * Clean up style of CMake files.
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-23Fix minetest.get_craft_recipe functionest31
Previously, calling it resulted in a crash.
2015-03-22Revert "Add a Lua call to do damages / heals" ok @ShadowNinjaLoic Blot
This reverts commit 467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.
2015-03-22Add support for the PCG32 PRNG algo (and associated script APIs)kwolekr
2015-03-20Optimize minetest.get_(all)_craft_recipe(s)gregorycu
Signed off by: ShadowNinja, kwolekr
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-18Fix game minetest.conf default settingsest31
This was a regression introduced by f6e4c5d9cf459e8278a76a2beaee59732e841458 .
2015-03-18Add a Lua call to do damages / healsLoic Blot
2015-03-13Prepare Protocol v25 init & authentication.Loic Blot
* TOSERVER_INIT and TOCLIENT_INIT renamed to _LEGACY * TOSERVER_PASSWORD merged from dev-0.5, can use protocol v24 and v25 * TOCLIENT_ACCESS_DENIED merged from dev-0.5, can use protocol v24 and v25, with normalized strings an a custom id for custom errors * new TOSERVER_INIT packet only send MT version, supported compressions, protocols and serialization, this permit to rework everything later without break the _INIT packet * new TOSERVER_AUTH packet which auth the client * new TOCLIENT_HELLO packet which send server serialization version atm * new TOCLIENT_AUTH_ACCEPTED which is send when TOCLIENT_AUTH was okay. After this packet, the client load datas from servers, like after TOCLIENT_INIT_LEGACY packet
2015-03-11lua_api/l_mapgen: Fix overlapping areas of minetest.generate_ores/decorationsparamat
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-05l_get_modnames: Compare using std::sort instead of a custom function which ↵Loic Blot
does same work
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-03-05Performance improvement: Use std::list instead of std::vector for ↵Loic Blot
request_media, Server::getModNames, Environment::m_simple_objects. * Also remove unused Server::m_modspaths
2015-03-04We always know playerSAO when calling SendInventory. Using it instead of ↵Loic Blot
searching it via peer_id
2015-03-04Send Inventory packet on event, don't check it at each AsyncRunStep.Loic Blot
* Call UpdateCrafting into SendInventory because this functions is only called before SendInventory * Use Player* instead of peer_id for UpdateCrafting because SendInventory already has the Player* pointer, then don't loop for searching Player* per peer_id * m_env_mutex don't need to be used with this modification because it's already locked before the calls
2015-03-03Send Breath packet on event, don't check it at each AsyncRunStepLoic Blot
2015-03-03Send Player HP when setHP (or a setHP caller) is called instead of looping ↵Loic Blot
and testing the state change.
2015-02-27Change find_surface_nodes_in_area to find_nodes_in_area_under_airCraig Robbins
2015-02-27Add find_surface_nodes_in_area LUA call which permit to only get the nodes ↵Loic Blot
which touch air. This permit to massively improve performance for mods like plantlife
2015-02-26Biome API: Re-calculate biome at every surface in a mapchunk columnparamat
2015-02-23Disallow object:remove() if the object is a playerKahrl
Rebased by Zeno- (conflict in lua_api.txt)
2015-02-18Server: announce MIN/MAX protocol version supported to serverlist. Client: ↵est31
check serverlist Client now informs about incompatible servers from the list, this permits to prevent the protocol movements. Server announces its supported protocol versions to master server
2015-02-18Fix unused (and so, broken) enable_rollback_recording. This option must be ↵Loic Blot
reloaded at server loop but loaded when server starts, for data consistency (not a hot load variable) ok @ShadowNinja
2015-02-17SAO work: ActiveObject types & SAO cleanup * Replace u8 types with ↵Loic Blot
ActiveObjectType. * Merge content_object.h into activeobject.h * Remove DummyLoadSAO, it's now unused. * Remove ItemSAO, it's also unused
2015-02-16Performance Improvement: Use a cache which caches result for getFacePositions.Loic Blot
This greatly reduce the number of std::list generated by caching the result, which is always constant for each radius selected. In the callgrind map, you will see original: * 3.3M calls to std::list for 9700 calls to getFacePositions In the modified version, you will see: * 3.3K calls to std::list for 6900 call to getFacePositions Callgrind map is here: #2321 it's a huge performance improvement to l_find_node_near
2015-02-12Fix .zip extraction (mod store)ngosang
2015-02-05Reduce gettext wide/narrow and string/char* conversionsShadowNinja
2015-01-18Fix all warnings and remove -Wno-unused-but-set cflagkwolekr
2015-01-18Reorganize supported video driver query mechanismskwolekr
2015-01-15Add ability to delete MapBlocks from mapkwolekr
Also add a Lua API and chatcommand for this