Sfan5
118e2ae865
Fix all warnings reported by clang
2014-04-15 21:34:53 +02:00
ShadowNinja
f3d83a4516
Add more informative error messages for inventory and item method errors
2014-03-15 17:20:52 -04:00
ShadowNinja
31fe72dbac
Remove lua_State parameter from LuaError::LuaError
2014-03-15 16:28:59 -04:00
ShadowNinja
f8b7555558
Revert "Make sure we get a stacktrace for as many lua errors as possible"
...
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-15 16:01:06 -04:00
Sfan5
362ef5f6ce
Make sure we get a stacktrace for as many lua errors as possible
2014-03-15 14:51:00 +01:00
Selat
7cac34c807
Pass arguments by reference
2014-03-12 17:34:48 -04:00
Ciaran Gultnieks
5ce3f8f7b7
Correct misleading detached inventory error message
...
Looks like a bit of hasty copying and pasting from s_item.cpp.
2014-03-09 11:16:09 +01:00
kwolekr
83bafbe08b
Make flag strings clear specified flag with 'no' prefix
...
Remove flagmask field from set_mapgen_params table
Add small bits of needed documentation
2014-02-08 17:50:59 -05:00
ShadowNinja
458045d49f
Fix crash when a error occurs in a globalstep callback
2014-02-03 18:15:03 -05:00
ShadowNinja
76d4396fa1
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
2014-01-23 19:21:56 -05:00
Kahrl
ba8fa0bd42
Log guilty node name when allow_metadata_inventory_move/put/take fails
2013-12-18 23:04:13 +01:00
ShadowNinja
49cec3f782
Handle LuaErrors in Lua -> C++ calls on LuaJIT
2013-12-18 16:35:55 -05:00
kaeza
33de69a173
Add 'on_prejoinplayer' callback
2013-12-12 13:42:14 -05:00
sapier
04e9a9d541
Cleanup jthread and fix win32 build
2013-12-01 16:25:46 +01:00
ShadowNinja
371b39a09a
Pass a errfunc to lua_pcall to get a traceback
2013-11-15 14:13:31 -05:00
Novatux
bd6d4666ab
Add a callback: minetest.register_on_craft(itemstack, player,
...
old_craft_grid, craft_inv) and
minetest.register_craft_predict(itemstack, player, old_craft_grid,
craft_inv)
2013-11-01 15:55:34 +01:00
kwolekr
d308352dbd
Always use builtin JThread library
2013-09-15 23:00:01 -04:00
Kahrl
4e1f50035e
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
Perttu Ahola
8831669505
Allow mods to listen to cheat detections using minetest.register_on_cheat()
2013-08-04 00:45:49 +03:00
proller
3aedfac968
Weather support
2013-07-27 23:21:48 +04:00
PilzAdam
8cae659786
Add an option to disable object <-> object collision for Lua entities
2013-07-20 20:43:11 +02:00
proller
9733dd5b5e
Leveled nodebox
2013-07-13 22:13:24 +04:00
kwolekr
2e292b67a0
Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API
2013-06-27 22:35:35 -04:00
kwolekr
d6ac3d8d9a
Add LuaVoxelManip
2013-06-27 22:35:35 -04:00
Kahrl
773471750d
Fix class/struct forward declaration inconsistencies (good on ya, MSVC)
2013-06-06 22:57:38 +02:00
sapier
ab43377577
Move scriptapi to separate folder (by 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)
2013-05-25 00:51:02 +02:00