aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_util.h
AgeCommit message (Collapse)Author
2022-05-02Async environment for mods to do concurrent tasks (#11131)sfan5
2021-11-10Lua API: Add `rmdir`, `cpdir` and `mvdir` (#9638)Elijah Duffy
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-10-31Fix number of tool uses being off by 1..32767 (#11110)Wuzzy
2021-08-28Async-related script cleanupssfan5
2021-07-29Add a simple PNG image encoder with Lua API (#11485)hecks
* Add a simple PNG image encoder with Lua API Add ColorSpec to RGBA converter Make a safety wrapper for the encoder Create devtest examples Co-authored-by: hecktest <> Co-authored-by: sfan5 <sfan5@live.de>
2021-04-23Add `minetest.colorspec_to_colorstring` (#10425)Vincent Robinson
2021-01-22Use JSON for favorites, move server list code to Lua (#10085)rubenwardy
Co-authored-by: sfan5 <sfan5@live.de>
2020-12-24Fix minetest.is_nanLars Mueller
2020-04-22Fix configuration caching in log_deprecated (#9697)HybridDog
* Fix configuration caching in log_deprecated The configured variable was never set to true. I've set the variables to thread_local because the configuration should be reloaded after reentering the world from mainmenu.
2018-05-31Fix isNan on setYaw Lua call (#7380)Loïc Blot
* Fix isNan on setYaw Lua call
2017-11-08Add minetest.safe_write_file() to script APIsfan5
2017-10-30Add sha1 to lua utils. (#6563)Rob Blanckaert
2017-08-17C++ modernize: Pragma once (#6264)Loïc Blot
* Migrate cpp headers to pragma once
2017-05-07LINT fix since d0678948165768472fc940c03e78cba787f49ea5Loic Blot
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2017-04-07Clang-format: fix some header files and remove them from whitelistLoic Blot
2017-03-13[CSM] Add method that display chat to client-sided lua. (#5089) (#5091)red-001
* squashed: [Client-sided scripting] Don't register functions that don't work. (#5091)
2016-10-31Add version APIShadowNinja
2016-05-30Add minetest.check_password_entry callbackest31
Gives a convenient way to check a player's password. This entirely bypasses the SRP protocol, so should be used with great care. This function is not intended to be used in-game, but solely by external protocols, where no authentication of the minetest engine is provided, and also only for protocols, in which the user already gives the server the plaintext password. Examples for good use are the classical http form, or irc, an example for a bad use is a password change dialog inside formspec. Users should be aware that they lose the advantages of the SRP protocol if they enter their passwords for servers outside the normal entry box, like in in-game formspec menus, or through irc /msg s, This patch also fixes an auth.h mistake which has mixed up the order of params inside the decode_srp_verifier_and_salt function. Zeno-: Added errorstream message for invalid format when I committed
2016-05-27Add base64 encoding and decoding to the lua api. (#3919)red-001
2015-11-06Add server side ncurses terminalest31
This adds a chat console the server owner can use for administration or to talk with players. It runs in its own thread, which makes the user interface immune to the server's lag, behaving just like a client, except timeout. As it uses the same console code as the f10 console, things like nick completion or a scroll buffer basically come for free. The terminal itself is written in a general way so that adding a client version later on is just about implementing an interface. Fatal errors are printed after the console exists and the ncurses terminal buffer gets cleaned up with endwin(), so that the error still remains visible. The server owner can chose their username their entered text will have in chat and where players can send PMs to. Once the username is secured with a password to prevent anybody to take over the server, the owner can execute admin tasks over the console. This change includes a contribution by @kahrl who has improved ncurses library detection.
2015-10-26SAPI: Move core.get_us_time() to Util modulekwolekr
2015-10-14Refactor loggingShadowNinja
- Add warning log level - Change debug_log_level setting to enumeration string - Map Irrlicht log events to MT log events - Encapsulate log_* functions and global variables into a class, Logger - Unify dstream with standard logging mechanism - Unify core.debug() with standard core.log() script API
2015-05-16Add core.get_dir_listShadowNinja
2015-05-16Add core.request_insecure_environment()ShadowNinja
2015-05-16Add core.mkdirShadowNinja
2014-09-20Add compression APIShadowNinja
2014-05-08Use "core" namespace internallyShadowNinja
2014-05-07Organize builtin into subdirectoriesShadowNinja
2013-12-18Add 'minetest.write_json'ShadowNinja
2013-11-29Fix modstore/favourites hang by adding asynchronous lua job supportsapier
2013-09-10Allow non-string arguments for minetest.is_yes()PilzAdam
2013-09-10Add Settings interface for LuaPilzAdam
2013-09-02Add minetest.parse_json, engine.parse_jsonKahrl
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl