TeTpaAka
14b9820f48
Add minetest.register_on_player_hpchange
2015-06-13 19:40:31 +02:00
est31
b0f86bb221
dofile error reporting for syntax errors
...
According to doc, dofile() raises an error when parsing failed due to syntax errors.
Fixes #2775
2015-06-12 20:23:31 +02:00
est31
057c0f538f
Fix uninitialized variable error
...
If you run minetest with valgrind, you'll quickly notice uninitialized jump
depend error messages that point to s_base.cpp:131. This commit fixes those.
2015-06-02 13:55:02 +02:00
SmallJoker
33071ebfa2
Fix Windows build, clean up included headers
...
Also fix a startup error caused by s_security.cpp
2015-05-22 20:37:59 +02:00
kwolekr
4df33b90e5
Replace instances of std::map<std::string, std::string> with StringMap
...
Also, clean up surrounding code style
Replace by-value parameter passing with const refs when possible
Fix post-increment of iterators
2015-05-19 16:10:49 -04:00
ShadowNinja
1008aefa8c
Add mod security
...
Due to compatibility concerns, this is temporarily disabled.
2015-05-16 18:32:31 -04:00
Brandon
aeaeed77e7
Add minetest.register_on_punchplayer
2015-05-15 11:09:55 +02:00
ShadowNinja
2de60ae349
Clean up and tweak build system
...
* 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-27 15:00:48 -04:00
Craig Robbins
27791ee1aa
For usages of assert() that are meant to persist in Release builds (when NDEBUG is defined), replace those usages with persistent alternatives
2015-03-07 22:41:47 +10:00
onkrot
c91dbf8ad2
Performance fixes.
2015-01-13 23:48:56 +10:00
kwolekr
eb208e6b75
Expose mapgen parameters on scripting init
...
Add minetest.get_mapgen_params()
Deprecate minetest.register_on_mapgen_init()
2014-12-29 12:59:59 -05:00
kwolekr
df97ee1af6
Expose mapgen chunksize in on_mapgen_init callbacks
2014-12-14 18:46:46 -05:00
ShadowNinja
05ef9bdc68
Simplify loading of Android version of menu
2014-11-20 15:37:20 -05:00
RealBadAngel
1c09928344
Add meshnode drawtype.
2014-10-18 16:42:23 +02:00
ShadowNinja
531d960b6a
Fix object reference pushing functions when called from coroutines
2014-10-07 16:37:45 -04:00
BlockMen
e25777936f
Add optional framed glasslike drawtype
2014-10-02 11:35:15 +02:00
TriBlade9
2d6eb3d2f3
Add firelike drawtype
2014-09-21 15:50:27 -04:00
sapier
a50bacdc3a
Don't call a player event without having player to do a event for
2014-08-21 17:29:26 +02:00
ShadowNinja
f8a9e8358d
Fix over-poping and only push the core once
2014-05-30 19:38:11 -04:00
ShadowNinja
9718e20bfa
Use "core" namespace internally
2014-05-08 13:02:04 -04:00
ShadowNinja
6001210df6
Organize builtin into subdirectories
2014-05-07 17:14:23 -04:00
sapier
d83d1a95b7
Fix heart + bubble bar size on different texture packs
...
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-05-07 21:46:27 +02:00
ShadowNinja
e414ce7d7d
Fix code style of async API
2014-04-27 16:15:53 -04:00
ShadowNinja
5805a3dc4c
Remove dependency on marshal and many other async changes
...
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-27 16:15:53 -04:00
ShadowNinja
a9cdd75a5b
Only push the Lua error handler once
2014-04-27 16:15:53 -04:00
Sfan5
3f90a81374
Fix all warnings reported by clang
2014-04-15 21:34:53 +02:00
ShadowNinja
e2bc90f1cd
Add more informative error messages for inventory and item method errors
2014-03-15 17:20:52 -04:00
ShadowNinja
ce942de6ed
Remove lua_State parameter from LuaError::LuaError
2014-03-15 16:28:59 -04:00
ShadowNinja
56e1aa4833
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
056e6fdec8
Make sure we get a stacktrace for as many lua errors as possible
2014-03-15 14:51:00 +01:00
Selat
a83693c5c3
Pass arguments by reference
2014-03-12 17:34:48 -04:00
Ciaran Gultnieks
d521fe173a
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
2a896ffbf7
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
6cc6b9ac1b
Fix crash when a error occurs in a globalstep callback
2014-02-03 18:15:03 -05:00
ShadowNinja
ca5b6594b9
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
2014-01-23 19:21:56 -05:00
Kahrl
9e27fac2d5
Log guilty node name when allow_metadata_inventory_move/put/take fails
2013-12-18 23:04:13 +01:00
ShadowNinja
4a8e393a79
Handle LuaErrors in Lua -> C++ calls on LuaJIT
2013-12-18 16:35:55 -05:00
kaeza
ba7af927a7
Add 'on_prejoinplayer' callback
2013-12-12 13:42:14 -05:00
sapier
396602432c
Cleanup jthread and fix win32 build
2013-12-01 16:25:46 +01:00
ShadowNinja
5cb34cf9dd
Pass a errfunc to lua_pcall to get a traceback
2013-11-15 14:13:31 -05:00
Novatux
0f0a497d0f
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
d017bf220a
Always use builtin JThread library
2013-09-15 23:00:01 -04:00
Kahrl
ee90d438b8
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
Perttu Ahola
eadddb8a83
Allow mods to listen to cheat detections using minetest.register_on_cheat()
2013-08-04 00:45:49 +03:00
proller
cdb2b82262
Weather support
2013-07-27 23:21:48 +04:00
PilzAdam
617d8cba5d
Add an option to disable object <-> object collision for Lua entities
2013-07-20 20:43:11 +02:00
proller
0d55518108
Leveled nodebox
2013-07-13 22:13:24 +04:00
kwolekr
5c8a16016c
Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API
2013-06-27 22:35:35 -04:00
kwolekr
669194d224
Add LuaVoxelManip
2013-06-27 22:35:35 -04:00
Kahrl
cda0df5feb
Fix class/struct forward declaration inconsistencies (good on ya, MSVC)
2013-06-06 22:57:38 +02:00