aboutsummaryrefslogtreecommitdiff
path: root/builtin/client (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix Minetest blaming the wrong mod for errors (#12241)Lars Müller2022-05-091-1/+0
| | | Covers the case where mods insert their callbacks manually into "minetest.registered_<callbacks>" (often to achieve a particular order of execution).
* Remove hardcoded "You died." message in chat (#11443)Wuzzy2021-07-121-1/+0
|
* Add metatables to lua vectors (#11039)DS2021-06-041-1/+0
| | | Add backwards-compatible metatable functions for vectors.
* Translate builtin (#10693)Wuzzy2021-03-052-6/+5
| | | | | This PR is the second attempt to translate builtin. Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
* Add documentation to builtin core.run_callbacks (#10494)DS2020-10-211-0/+7
|
* Lua API: Add register_on_chatcommand to SSM and CSM (#7862)Elijah Duffy2020-10-032-0/+6
| | | | | | | Allows catching a chatcommand call just after the command and the parameters are parsed but before its existence is checked and before the corresponding function is run. Returning `true` from a callback function will prevent default handling of the command leaving mods to handle the command manually.
* Add luacheck to check builtin (#7895)rubenwardy2019-08-061-4/+4
|
* CSM: add requested CSM_RF_READ_PLAYERINFO (#8007)Loïc Blot2018-12-241-2/+7
| | | | | | | | * CSM: add requested CSM_RF_READ_PLAYERINFO This new CSM limit permit to limit PLAYERINFO read from server. It affects get_player_names call
* CSM: Don't create the client script environment if CSM is disabled (#7874)Paramat2018-11-242-13/+17
| | | | Use the CSM death formspec when CSM is enabled and use the engine death formspec when CSM is disabled. Move the CSM death formspec code to a dedicated file.
* CSM/SSM: Add on_mods_loaded callback (#7411)Loïc Blot2018-06-061-0/+1
| | | | | * CSM/SSM: Add on_mods_loaded callback
* [CSM] Remove `on_connect` callback (#6941)red-0012018-01-211-1/+0
| | | Fixes #6939
* [CSM] Add callback on open inventory (#5793)Vincent Glize2017-10-021-0/+1
|
* Implement mod communication channels (#6351)Loïc Blot2017-09-261-0/+2
| | | | | | | | | | Implement network communication for channels * Implement ModChannel manager server side to route incoming messages from clients to other clients * Add signal handler switch on client & ModChannelMgr on client to handle channels * Add Lua API bindings + client packet sending + unittests * Implement server message sending * Add callback from received message handler to Lua API using registration method
* Revert "CSM: Revert "[CSM] Add send_chat_message and run_server_chatcommand""Loic Blot2017-07-151-0/+12
| | | | This reverts commit bdac12761cd92960c3df83c932aa610f2322215f.
* CSM: Revert "[CSM] Add send_chat_message and run_server_chatcommand"rubenwardy2017-07-151-12/+0
| | | | | Original PR: #5747. This reverts commit 39f4a2f607d44738d60db84eba4b30e3d7450204.
* Create a filesystem abstraction layer for CSM and only allow accessing files ↵red-0012017-06-301-1/+1
| | | | | | | | | | | | | | | | | | that are scanned into it. (#5965) * Load client-side mods into memory before executing them. This removes the remaining filesystem access that client-sided mods had and it will hopefully make then more secure. * Lua Virtual filesystem: don't load the files into memory just scan the filenames into memory. * Fix the issues with backtrace * fix most of the issues * fix code style. * add a comment
* CSM: Fix documentation error for register_on_*_chat_messages (#5917)DS2017-06-092-3/+3
|
* [CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)Pierre-Adrien Langrognet2017-05-211-0/+12
| | | | | | | | | | | | * [CSM] Add send_chat_message and run_server_chatcommand API functions * Add client-side chat message rate limiting * Limit out chat queue size * [CSM] Add minetest.clear_out_chat_queue API function and .clear_chat_queue chatcommand * Last fixes/cleanups before merge
* [CSM] add `on_item_use` (#5544)red-0012017-05-061-0/+1
|
* [CSM] Add event on_place_node API lua (#5548)Vincent Glize2017-04-291-0/+1
| | | | * [CSM] Add event on_place_node API lua
* [CSM] Allow escaping chatcommands and add missing calls to gettext. (#5565)red-0012017-04-111-6/+8
|
* [CSM] Use more gettext (#5553)red-0012017-04-101-3/+3
|
* [CSM] Move `.list_players` and `.disconnect` to builtin. (#5550)red-0012017-04-101-0/+15
|
* [CSM] Add event on_connect player API lua (#5540)Vincent Glize2017-04-081-0/+1
| | | | * Add event on_connect player API lua
* Expose vector helpers to CSMLoic Blot2017-04-061-0/+1
|
* Change command prefix to "." and add "help" command.red-0012017-03-261-7/+15
|
* [CSM] Add `on_punchnode` callbackred-0012017-03-131-2/+1
|
* [CSM] Add `on_dignode` callback (#5140)red-0012017-03-131-0/+1
|
* [CSM] Improve security for client-sided mods (#5100)red-0012017-03-131-1/+4
|
* [CSM] implement client side mod loading (#5123)Loïc Blot2017-03-133-50/+7
| | | | | | | | | * client side mods are located in clientmods/ * move builtin/preview.lua to clientmods/preview/init.lua as a preview mod * refactor ModConfiguration class to work properly with client and server using child objects * move some Server constructor mod load code to ModConfiguration to reduce code duplication between client and server * remove mods.{cpp,h} unused functions * use UNORDERED_SET instead of std::set in some modspec storages
* [CSM] Add local formspecs. (#5094)red-0012017-03-133-1/+12
|
* [CSM] sound_play & sound_stop support + client_lua_api doc (#5096)Loïc Blot2017-03-133-3/+16
| | | | | | | | | | * squashed: CSM: Implement register_globalstep * Re-use fatal error mechanism from server to disconnect client on CSM error * Little client functions cleanups * squashed: CSM: add core.after function * core.after is shared code between client & server * ModApiUtil get_us_time feature enabled for client
* [CSM] Add client-sided chat commands (#5092)red-0012017-03-133-0/+36
|
* [CSM] Add on_death, on_hp_modification & oh_damage_taken callbacks (#5093)Loïc Blot2017-03-133-14/+30
| | | | | | * Add on_death callback * Add on_hp_modification & on_damage_taken callbacks * move preview code to preview.lua
* [CSM] Client side moddingLoic Blot2017-03-132-0/+84
* 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