aboutsummaryrefslogtreecommitdiff
path: root/src/script/common
AgeCommit message (Collapse)Author
2015-10-17Fix crash regression when invsize formspec gets usedest31
The invsize formspec element is outdated. Even though, it is still supported, only a deprecation warning is shown, introduced by commit [1]. The lua context passed to the log_deprecated method added by commit [1] is NULL for the invsize deprecation warning, as its run on the client and not the server. Commit [1] has removed checks for NULL inside the log_deprecated method, resulting in a crash when a formspec with an invsize element is parsed. This commit puts the check back. Fixes #3260. Referenced commits: [1]: b5acec0a3c5701c53854ff7afdf4008863e6e8df "Add proper lua api deprecated handling" [2]: 7b8d372947aae232ddf598155e972bb4dda157a "Use warningstream for deprecated field messages and refactor log_deprecated"
2015-10-15Use warningstream for deprecated field messages and refactor log_deprecatedShadowNinja
2015-08-27Push error handler afresh each time lua_pcall is usedKahrl
Fixes "double fault" / "error in error handling" messages (issue #1423) and instead shows a complete backtrace.
2015-08-27Use numeric indices and raw table access with LUA_REGISTRYINDEXKahrl
2015-08-12SAPI: Track last executed mod and include in error messageskwolekr
2015-08-10Display Lua memory usage at the time of Out-of-Memory errorkwolekr
Also misc. minor cleanups
2015-08-05Improve Script CPP API diagnosticskwolekr
2015-08-05Fix tiling issues for PLANTLIKE and FIRELIKE with FSAARealBadAngel
2015-07-16Fix relief mapping issuesRealBadAngel
2015-07-02Fix code style from recent commits and add misc. optimizationskwolekr
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-17SAPI/Noise: Add PerlinNoiseMap:getMapSlice() functionkwolekr
This adds the ability to grab 'slices' of noise calculated by PerlinNoiseMap. Retrieving smaller slices of noise from the computation result as needed optimizes memory usage while maintaining a reasonable amount of CPU overhead.
2015-05-16SAPI: Accept either ARGB8 table or ColorString to specify colorskwolekr
2015-05-16Add mod securityShadowNinja
Due to compatibility concerns, this is temporarily disabled.
2015-05-15Add push_ARGB8 to script/common/c_converterTeTpaAka
2015-05-09Schematics: Add per-node force placement optionkwolekr
2015-05-08Fix missing Y component assignment in check_v3fkwolekr
2015-05-07Remove duplicate lua_getfield() in c_converter.cppKevin Ott
Fixes #2678
2015-05-06Fix error messages for type-checking Lua reading functionsShadowNinja
2015-04-19Add 'persistence' alias for Lua noiseparams and validate more vector parameterskwolekr
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-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-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-07Don't use luaL_checkstring to read node names, it's only for argumentsShadowNinja
This caused confusing error messages like "argument #4 to set_node is not a string."
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-01-04Remove freezemelt (the remainder of proller nonsense)kwolekr
2014-12-27Redefine NodeResolver interface and replace with callback mechanismkwolekr
2014-12-10Move get_schematic and read_schematic to l_mapgen.cppkwolekr
2014-12-10Remove get_noiseparams function. read_noiseparams should be used from now onkwolekr
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-06Schematics: Fix minetest.place_schematic() when defined by a Lua tablekwolekr
2014-11-26Don't corrupt stepheight when setting other propertiesCiaran Gultnieks
2014-11-13Add option 'eased' to NoiseParamsSmallJoker
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-12Add Generator Element Management frameworkkwolekr
Add BiomeManager, OreManager, DecorationManager, and SchematicManager
2014-11-01Split up mapgen.cppkwolekr
2014-10-26Add NodeResolver and clean up node name -> content ID resolution systemkwolekr
2014-10-19Custom collision boxes node property.RealBadAngel
2014-10-18Add meshnode drawtype.RealBadAngel
2014-08-23Fix LuaJIT exception wrapperKahrl
2014-05-08Use "core" namespace internallyShadowNinja
2014-04-29Add proper lua api deprecated handlingsapier
2014-04-12Use integers instead of float valuesBlockMen
2014-03-15Remove lua_State parameter from LuaError::LuaErrorShadowNinja
2014-03-15Revert "Make sure we get a stacktrace for as many lua errors as possible"ShadowNinja
This reverts commit 362ef5f6ced862daa4733034810d0b07e2ad5d89. Stack tracebacks couldn't be generated in LuaError::LuaError anyway and this caused a second, empty traceback in most cases. In cases where there wasn't annother traceback the stack had already unwound and the traceback was empty.
2014-03-15Make sure we get a stacktrace for as many lua errors as possibleSfan5
2014-03-08Update set_mapgen_params and set_gen_notify Lua API to use new flag formatkwolekr
2014-02-15Add minetest.set_noiseparam_defaults() Lua APIkwolekr
2014-02-09Define strlcpy on platforms that do not have itkwolekr
2014-02-09Add capability to read table flag fields from Lua APIkwolekr
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