aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Async environment for mods to do concurrent tasks (#11131)sfan52022-05-0213-4/+236
|
* Refactor some Lua API functions in preparation for async envsfan52022-05-023-31/+27
|
* Remove some unused variable from Lua class wrapperssfan52022-05-024-23/+20
|
* Clean up some auth packet handling related codesfan52022-04-281-3/+6
|
* Remove unneeded ObjectRef setter return values (#12179)Lars Müller2022-04-101-30/+17
|
* Spacing fixesShadowNinja2022-04-082-3/+3
|
* Disentangle map implementations (#12148)Jude Melton-Houghton2022-04-072-2/+2
| | | | Fixes violation of Liskov substitution principle Fixes #12144
* Fix the documentation of InvRef:get_lists() and clean up code (#12150)DS2022-03-292-21/+14
|
* Add API to control shadow intensity from the game/mod (#11944)x20482022-03-262-0/+49
| | | * Also Disable shadows when sun/moon is hidden. Fixes #11972.
* Readd basic_debug as a HUD flag (#12020)Lars Müller2022-03-051-14/+5
|
* Allow get_sky to return a table (#11963)Zughy2022-03-052-28/+62
|
* Lua API documentation: Various fixes (#12059)SmallJoker2022-02-231-24/+25
| | | | | Change 1: Clarify when on_step collision information is provided Change 2: Document PostgreSQL and Redis settings Change 3: Overall AreaStore documentation improvements including consistent parameter naming based on community suggestions
* Fix broken server startup if curl is disabled (#12046)sfan52022-02-042-17/+25
|
* Use virtual paths to specify exact mod to enable (#11784)rubenwardy2022-01-301-6/+6
|
* Define control(bits) as "unset" for entities (#11995)Lars Müller2022-01-271-5/+8
|
* Allow resetting celestial vault elements by leaving its arguments empty (#11922)Zughy2022-01-221-69/+71
|
* Mainmenu game-related changes (#11887)sfan52022-01-091-11/+39
| | | | | | | fixes: * Switching between games does not immediately hide creative mode / damage buttons if so specified * World creation menu has a game selection list even though the menu already provides a gamebar * Showing gameid in world list is unnecessary * Choice of mapgen parameters in menu persists between games (and was half-broken)
* Restore pass-through of direction keys (#11924)sfan52022-01-092-19/+31
| | | This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
* Use a database for mod storage (#11763)Jude Melton-Houghton2022-01-071-7/+11
|
* Refactor trusted mod checking codesfan52021-12-182-67/+4
|
* Don't let HTTP API pass through untrusted functionsfan52021-12-182-4/+22
| | | | This has been a problem since the first day, oops.
* Restructure devtest's unittests and run them in CI (#11859)sfan52021-12-181-1/+1
|
* Implemented disconnect_player (#10492)Corey Powell2021-11-262-8/+8
| | | Co-authored-by: rubenwardy <rw@rubenwardy.com>
* Fix find_nodes_in_area misbehaving with out-of-map coordinates (#11770)sfan52021-11-261-14/+17
| | | This ensures that no overflows (side-effects) happen within the find_nodes_in_area function by limiting coordinates like done in the map generation code.
* Lua API: Add `rmdir`, `cpdir` and `mvdir` (#9638)Elijah Duffy2021-11-102-0/+58
| | | | Co-authored-by: rubenwardy <rw@rubenwardy.com>
* Fix number of tool uses being off by 1..32767 (#11110)Wuzzy2021-10-313-10/+15
|
* Fix item duplication if player dies during interact callback (alternative) ↵sfan52021-10-251-1/+1
| | | | (#11662)
* Remove a few unused functions reported by callcatcher (#11658)SmallJoker2021-10-123-16/+4
|
* Move instead of copy during content install if possiblesfan52021-10-071-16/+14
|
* Move archive extraction in content store to async jobsfan52021-10-071-4/+8
|
* Make fs::extractZipFile thread-safesfan52021-10-071-4/+4
|
* Add "MINETEST_MOD_PATH" environment variable (#11515)emixa-d2021-10-072-0/+19
| | | | This adds an environment variable MINETEST_MOD_PATH. When it exists, Minetest will look there for mods in addition to ~/.minetest/mods/.
* Fix crash when calling remove/kick/ban_player on start (#11672)Wuzzy2021-10-051-2/+9
|
* Make MetaDataRef:get return nil instead of nothing (#11666)Jude Melton-Houghton2021-10-051-2/+3
|
* Add get_server_max_lag() (#11671)Wuzzy2021-10-052-0/+15
|
* Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy2021-10-012-4/+6
|
* Make sure relevant std::stringstreams are set to binarysfan52021-09-112-9/+7
|
* Dynamic_Add_Media v2 (#11550)sfan52021-09-092-16/+24
|
* Async-related script cleanupssfan52021-08-285-39/+43
|
* Remove redundant on_dieplayer callssavilli2021-08-281-18/+0
|
* Joystick sensitivity for player movement (#11262)NeroBurner2021-08-272-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit deprecates the forward, backward, left, and right binary inputs currently used for player movement in the PlayerControl struct. In their place, it adds the movement_speed and movement_direction values, which represents the player movement is a polar coordinate system. movement_speed is a scalar from 0.0 to 1.0. movement_direction is an angle from 0 to +-Pi: FWD 0 _ LFT / \ RGT -Pi/2 | | +Pi/2 \_/ +-Pi BCK Boolean movement bits will still be set for server telegrams and Lua script invocations to provide full backward compatibility. When generating these values from an analog input, a direction is considered active when it is 22.5 degrees away from either orthogonal axis. Co-authored-by: Markus Koch <markus@notsyncing.net> Co-authored-by: sfan5 <sfan5@live.de>
* HUD: Reject and warn on invalid stat types (#11548)SmallJoker2021-08-212-5/+8
| | | | This comes into play on older servers which do not know the "stat" type. Warnings are only logged once to avoid spam within globalstep callbacks
* Validate staticdata and object property length limits (#11511)sfan52021-08-191-0/+2
| | | | | | Some games provide users with enough freedom to create items with metadata longer than 64KB, preventing this from causing issues is on them but we'll still do the minimum not to abort the server if this happens.
* Add a simple PNG image encoder with Lua API (#11485)hecks2021-07-292-0/+49
| | | | | | | | | * 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>
* Refactor video driver name retrieval (#11413)hecks2021-07-111-4/+3
| | | Co-authored-by: hecktest <>
* Auth API: Error when accessed prior to ServerEnv init (#11398)SmallJoker2021-06-301-1/+4
|
* Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)sfence2021-06-201-2/+14
| | | This check can be used by ABM to reduce CPU usage.
* Drop --videomodes, fullscreen_bpp and high_precision_fpu settingssfan52021-06-162-25/+0
| | | | These have been pointless for a while.
* Add core.compare_block_status function (#11247)SmallJoker2021-05-302-2/+34
| | | Makes it possible to check the status of the mapblock in a future-extensible way.
* script: Replace calls to depreated luaL_openlibsfan52021-05-3017-22/+22
|