aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
AgeCommit message (Collapse)Author
2014-05-30Fix over-poping and only push the core onceShadowNinja
2014-05-08Use "core" namespace internallyShadowNinja
2014-05-07Organize builtin into subdirectoriesShadowNinja
2014-05-07Fix heart + bubble bar size on different texture packssapier
Add DPI support for statbar Move heart+bubble bar to Lua HUD Add statbar size (based upon an idea by blue42u) Add support for customizing breath and statbar
2014-04-27Fix code style of async APIShadowNinja
2014-04-27Remove dependency on marshal and many other async changesShadowNinja
This makes a number of changes: * Remove the dependency on marshal by using string.dump and loadstring. * Use lua_tolstring rather than having Lua functions pass string lengths to C++. * Move lua_api/l_async_events.* to cpp_api/s_async.*, where it belongs. * Make AsyncWorkerThread a child of ScriptApiBase, this removes some duplicate functionality. * Don't wait for async threads to shut down. (Is this safe? Might result in corruption if the thread is writing to a file.) * Pop more unused items from the stack * Code style fixes * Other misc changes
2014-04-27Only push the Lua error handler onceShadowNinja
2014-04-15Fix all warnings reported by clangSfan5
2014-03-15Add more informative error messages for inventory and item method errorsShadowNinja
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-12Pass arguments by referenceSelat
2014-03-09Correct misleading detached inventory error messageCiaran Gultnieks
Looks like a bit of hasty copying and pasting from s_item.cpp.
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-03Fix crash when a error occurs in a globalstep callbackShadowNinja
2014-01-23Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacksShadowNinja
2013-12-18Log guilty node name when allow_metadata_inventory_move/put/take failsKahrl
2013-12-18Handle LuaErrors in Lua -> C++ calls on LuaJITShadowNinja
2013-12-12Add 'on_prejoinplayer' callbackkaeza
2013-12-01Cleanup jthread and fix win32 buildsapier
2013-11-15Pass a errfunc to lua_pcall to get a tracebackShadowNinja
2013-11-01Add a callback: minetest.register_on_craft(itemstack, player,Novatux
old_craft_grid, craft_inv) and minetest.register_craft_predict(itemstack, player, old_craft_grid, craft_inv)
2013-09-15Always use builtin JThread librarykwolekr
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-08-04Allow mods to listen to cheat detections using minetest.register_on_cheat()Perttu Ahola
2013-07-27Weather supportproller
2013-07-20Add an option to disable object <-> object collision for Lua entitiesPilzAdam
2013-07-13Leveled nodeboxproller
2013-06-27Add Lua on_mapgen_init callback, and minetest.set_mapgen_params APIkwolekr
2013-06-27Add LuaVoxelManipkwolekr
2013-06-06Fix class/struct forward declaration inconsistencies (good on ya, MSVC)0.4.7-MSVCKahrl
2013-05-25Move scriptapi to separate folder (by sapier)sapier
On the lua side, notably minetest.env:<function>(<args>) should now be replaced by minetest.<function>(<args>). The old way is and will stay supported for a long time. Also: Update and clean up lua_api.txt (by celeron55) Move EnvRef to lua and remove add_rat and add_firefly (by kahrl) Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)