Commit Graph

40 Commits (6202a9867461c505e6c90484e5fd8afea47b279d)

Author SHA1 Message Date
luk3yx 6202a98674
Add ChaCha library (#228) 2022-01-08 17:42:49 +02:00
Maksim 39228e3bff Add Lua UTF-8 lib (#201)
Co-Authored-By: Vitaliy <numzer0@yandex.ru>
2021-01-26 15:29:42 +01:00
MoNTE48 2d38db77ac Minor fix, drops improvement 2019-07-06 14:18:40 +02:00
MoNTE48 e98d421aff Merge remote-tracking branch 'upstream/stable-0.4' into sync 2019-04-01 20:18:54 +02:00
red-001 c0eeec2b1a Move `setlocale` from Lua to C++. 2018-06-03 17:32:00 +02:00
sfan5 8e3a110314 ServerEnv: Clean up object lifecycle handling (#6414)
* ServerEnv: Clean up object lifecycle handling
2018-06-03 17:31:59 +02:00
Maksim Gamarnik 35770f4abb Merge Minetest 0.4.16 2017-06-06 23:03:34 +03:00
Loic Blot 2ffea9f1e8 Fix a warning pointed by GCC 7.1
lua_tonumber overflow in snprintf (12 bytes and only 10 can be written)
2017-05-18 20:55:27 +02:00
Vincent Glize aa2fb725a0 [CSM] Add event on_place_node API lua (#5548)
* [CSM] Add event on_place_node API lua
2017-04-29 12:08:16 +02:00
Loic Blot 045cc40d91 [CSM] Client side modding
* rename GameScripting to ServerScripting
* Make getBuiltinLuaPath static serverside
* Add on_shutdown callback
* Add on_receiving_chat_message & on_sending_chat_message callbacks
* ScriptApiBase: use IGameDef instead of Server
  This permits to share common attribute between client & server
* Enable mod security in client side modding without conditions
2017-03-13 23:56:05 +01:00
Rogier 7bf89e4b5b Make minetest abort on lua panic
Currently, lua does a regular exit() after a lua panic, which can make
a problem hard to debug. Invoking FATAL_ERROR() instead will print
some useful information, and abort() minetest, so that a debugger can
be used to analyze the situation.
2016-12-24 00:18:45 +00:00
Maksim Gamarnik 2520ca3ed1 Merge branch 'master' of https://github.com/minetest/minetest 2016-01-31 20:57:03 +02:00
est31 665bb9def4 Fix C++11 compilability
Previous commits broke it... :(
2016-01-23 05:45:29 +01:00
Maksim Gamarnik bcf249297c Merge last Minetest commits 2015-11-10 20:29:00 +02:00
Maksim Gamarnik 919be490f9 Update
Sync all Minetest commits
2015-11-10 13:49:24 +02:00
kwolekr 41621bf8f5 Fix Lua scripting synchronization
For several years now, the lua script lock has been completely broken.
This commit fixes the main issue (creation of a temporary rather than
scoped object), and fixes a subsequent deadlock issue caused by
nested script API calls by adding support for recursive mutexes.
2015-11-01 11:32:05 -05:00
ShadowNinja 5b1f0e8a26 Fix server crashing on Lua errors
Previously, the server called FATAL_ERROR when a Lua error occured.
This caused a (mostly useless) core dump.
The server now simply throws an exception, which is caught and printed before
exiting with a non-zero return value.
This also fixes a number of instances where errors were logged multiple times.
2015-10-31 13:28:58 -04:00
Kahrl 799adf20e9 Push error handler afresh each time lua_pcall is used
Fixes "double fault" / "error in error handling" messages
(issue #1423) and instead shows a complete backtrace.
2015-08-27 01:56:06 +02:00
Kahrl 236844f409 Use numeric indices and raw table access with LUA_REGISTRYINDEX 2015-08-27 01:56:06 +02:00
Maksim Gamarnik 9247f32e0e LGPL 2.1 to 3.0 on all files 2015-08-14 01:26:28 +03:00
kwolekr 2fb4917d8e SAPI: Track last executed mod and include in error messages 2015-08-12 23:56:12 -04:00
kwolekr be00c2f46a Improve Script CPP API diagnostics 2015-08-05 21:13:03 -04:00
kwolekr f7071ad42f Fix code style from recent commits and add misc. optimizations 2015-07-02 23:14:30 -04:00
rubenwardy 380c359fd6 Add Lua errors to error dialog 2015-06-29 04:47:35 +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
ShadowNinja 3a97d94aa9 Add mod security
Due to compatibility concerns, this is temporarily disabled.
2015-05-31 23:17:44 +10:00
ShadowNinja 1008aefa8c Add mod security
Due to compatibility concerns, this is temporarily disabled.
2015-05-16 18:32:31 -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
ShadowNinja 05ef9bdc68 Simplify loading of Android version of menu 2014-11-20 15:37:20 -05:00
ShadowNinja 531d960b6a Fix object reference pushing functions when called from coroutines 2014-10-07 16:37:45 -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
ShadowNinja a9cdd75a5b Only push the Lua error handler once 2014-04-27 16:15:53 -04:00
ShadowNinja ce942de6ed Remove lua_State parameter from LuaError::LuaError 2014-03-15 16:28:59 -04:00
Selat a83693c5c3 Pass arguments by reference 2014-03-12 17:34:48 -04:00
ShadowNinja 4a8e393a79 Handle LuaErrors in Lua -> C++ calls on LuaJIT 2013-12-18 16:35:55 -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
Kahrl ee90d438b8 Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
sapier 2dceda8890 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