Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Push error handler afresh each time lua_pcall is used | Kahrl | 2015-08-27 | 12 | -77/+171 | |
| | | | | | Fixes "double fault" / "error in error handling" messages (issue #1423) and instead shows a complete backtrace. | |||||
* | Use numeric indices and raw table access with LUA_REGISTRYINDEX | Kahrl | 2015-08-27 | 3 | -10/+9 | |
| | ||||||
* | Clean up threading | ShadowNinja | 2015-08-23 | 4 | -65/+42 | |
| | | | | | | | | | | | | | | | | | | | | * Rename everything. * Strip J prefix. * Change UpperCamelCase functions to lowerCamelCase. * Remove global (!) semaphore count mutex on OSX. * Remove semaphore count getter (unused, unsafe, depended on internal API functions on Windows, and used a hack on OSX). * Add `Atomic<type>`. * Make `Thread` handle thread names. * Add support for C++11 multi-threading. * Combine pthread and win32 sources. * Remove `ThreadStarted` (unused, unneeded). * Move some includes from the headers to the sources. * Move all of `Event` into its header (allows inlining with no new includes). * Make `Event` use `Semaphore` (except on Windows). * Move some porting functions into `Thread`. * Integrate logging with `Thread`. * Add threading test. | |||||
* | SAPI: Track last executed mod and include in error messages | kwolekr | 2015-08-12 | 8 | -23/+109 | |
| | ||||||
* | Display Lua memory usage at the time of Out-of-Memory error | kwolekr | 2015-08-10 | 1 | -1/+1 | |
| | | | | Also misc. minor cleanups | |||||
* | Improve Script CPP API diagnostics | kwolekr | 2015-08-05 | 11 | -86/+55 | |
| | ||||||
* | Optional reconnect functionality | est31 | 2015-07-23 | 2 | -8/+13 | |
| | | | | | | Enable the server to request the client to reconnect. This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting. | |||||
* | Fix code style from recent commits and add misc. optimizations | kwolekr | 2015-07-02 | 2 | -19/+15 | |
| | ||||||
* | Add Lua errors to error dialog | rubenwardy | 2015-06-29 | 2 | -13/+13 | |
| | ||||||
* | Add minetest.register_on_player_hpchange | TeTpaAka | 2015-06-13 | 2 | -0/+20 | |
| | ||||||
* | dofile error reporting for syntax errors | est31 | 2015-06-12 | 1 | -1/+2 | |
| | | | | | According to doc, dofile() raises an error when parsing failed due to syntax errors. Fixes #2775 | |||||
* | Fix uninitialized variable error | est31 | 2015-06-02 | 1 | -0/+5 | |
| | | | | | 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. | |||||
* | Fix Windows build, clean up included headers | SmallJoker | 2015-05-22 | 1 | -1/+1 | |
| | | | | Also fix a startup error caused by s_security.cpp | |||||
* | Replace instances of std::map<std::string, std::string> with StringMap | kwolekr | 2015-05-19 | 6 | -25/+27 | |
| | | | | | | Also, clean up surrounding code style Replace by-value parameter passing with const refs when possible Fix post-increment of iterators | |||||
* | Add mod security | ShadowNinja | 2015-05-16 | 5 | -27/+708 | |
| | | | | Due to compatibility concerns, this is temporarily disabled. | |||||
* | Add minetest.register_on_punchplayer | Brandon | 2015-05-15 | 3 | -0/+30 | |
| | ||||||
* | Clean up and tweak build system | ShadowNinja | 2015-03-27 | 1 | -3/+2 | |
| | | | | | | | | | | | | | | | | * 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. | |||||
* | For usages of assert() that are meant to persist in Release builds (when ↵ | Craig Robbins | 2015-03-07 | 2 | -3/+3 | |
| | | | | NDEBUG is defined), replace those usages with persistent alternatives | |||||
* | Performance fixes. | onkrot | 2015-01-13 | 1 | -1/+1 | |
| | ||||||
* | Expose mapgen parameters on scripting init | kwolekr | 2014-12-29 | 2 | -33/+0 | |
| | | | | | Add minetest.get_mapgen_params() Deprecate minetest.register_on_mapgen_init() | |||||
* | Expose mapgen chunksize in on_mapgen_init callbacks | kwolekr | 2014-12-14 | 1 | -7/+10 | |
| | ||||||
* | Simplify loading of Android version of menu | ShadowNinja | 2014-11-20 | 1 | -0/+4 | |
| | ||||||
* | Add meshnode drawtype. | RealBadAngel | 2014-10-18 | 1 | -0/+1 | |
| | ||||||
* | Fix object reference pushing functions when called from coroutines | ShadowNinja | 2014-10-07 | 9 | -42/+39 | |
| | ||||||
* | Add optional framed glasslike drawtype | BlockMen | 2014-10-02 | 1 | -0/+1 | |
| | ||||||
* | Add firelike drawtype | TriBlade9 | 2014-09-21 | 1 | -0/+1 | |
| | ||||||
* | Don't call a player event without having player to do a event for | sapier | 2014-08-21 | 1 | -0/+3 | |
| | ||||||
* | Fix over-poping and only push the core once | ShadowNinja | 2014-05-30 | 1 | -8/+11 | |
| | ||||||
* | Use "core" namespace internally | ShadowNinja | 2014-05-08 | 9 | -78/+81 | |
| | ||||||
* | Organize builtin into subdirectories | ShadowNinja | 2014-05-07 | 2 | -22/+12 | |
| | ||||||
* | Fix heart + bubble bar size on different texture packs | sapier | 2014-05-07 | 2 | -0/+21 | |
| | | | | | | | 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 | |||||
* | Fix code style of async API | ShadowNinja | 2014-04-27 | 2 | -91/+109 | |
| | ||||||
* | Remove dependency on marshal and many other async changes | ShadowNinja | 2014-04-27 | 3 | -0/+473 | |
| | | | | | | | | | | | | 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 | |||||
* | Only push the Lua error handler once | ShadowNinja | 2014-04-27 | 9 | -279/+154 | |
| | ||||||
* | Fix all warnings reported by clang | Sfan5 | 2014-04-15 | 1 | -1/+1 | |
| | ||||||
* | Add more informative error messages for inventory and item method errors | ShadowNinja | 2014-03-15 | 2 | -13/+38 | |
| | ||||||
* | Remove lua_State parameter from LuaError::LuaError | ShadowNinja | 2014-03-15 | 4 | -14/+15 | |
| | ||||||
* | Revert "Make sure we get a stacktrace for as many lua errors as possible" | ShadowNinja | 2014-03-15 | 3 | -12/+12 | |
| | | | | | | | | 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. | |||||
* | Make sure we get a stacktrace for as many lua errors as possible | Sfan5 | 2014-03-15 | 3 | -12/+12 | |
| | ||||||
* | Pass arguments by reference | Selat | 2014-03-12 | 1 | -1/+1 | |
| | ||||||
* | Correct misleading detached inventory error message | Ciaran Gultnieks | 2014-03-09 | 1 | -1/+1 | |
| | | | | Looks like a bit of hasty copying and pasting from s_item.cpp. | |||||
* | Make flag strings clear specified flag with 'no' prefix | kwolekr | 2014-02-08 | 1 | -1/+2 | |
| | | | | | Remove flagmask field from set_mapgen_params table Add small bits of needed documentation | |||||
* | Fix crash when a error occurs in a globalstep callback | ShadowNinja | 2014-02-03 | 1 | -1/+6 | |
| | ||||||
* | Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks | ShadowNinja | 2014-01-23 | 3 | -4/+5 | |
| | ||||||
* | Log guilty node name when allow_metadata_inventory_move/put/take fails | Kahrl | 2013-12-18 | 1 | -15/+18 | |
| | ||||||
* | Handle LuaErrors in Lua -> C++ calls on LuaJIT | ShadowNinja | 2013-12-18 | 4 | -12/+23 | |
| | ||||||
* | Add 'on_prejoinplayer' callback | kaeza | 2013-12-12 | 2 | -0/+19 | |
| | ||||||
* | Cleanup jthread and fix win32 build | sapier | 2013-12-01 | 1 | -2/+0 | |
| | ||||||
* | Pass a errfunc to lua_pcall to get a traceback | ShadowNinja | 2013-11-15 | 9 | -281/+345 | |
| | ||||||
* | Add a callback: minetest.register_on_craft(itemstack, player, | Novatux | 2013-11-01 | 2 | -0/+57 | |
| | | | | | | old_craft_grid, craft_inv) and minetest.register_craft_predict(itemstack, player, old_craft_grid, craft_inv) |