aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix curl_timeout being ignored for Lua HTTP fetchessfan52021-05-171-5/+3
|
* fix: extractZipFile is not part of Client but more generic.Loic Blot2021-05-061-1/+2
| | | | This solve a crash from mainmenu while extracting the zip
* refacto: remove get_gui_env & draw_load_screen from RenderingEngine singletonLoic Blot2021-05-031-2/+3
|
* refacto: RenderingEngine is now better hiddenLoic Blot2021-05-031-1/+1
| | | | | | | | | | * No more access to the singleton instance from everywhere (RenderingEngine::get_instance dropped) * RenderingEngine::get_timer_time is now non static * RenderingEngine::draw_menu_scene is now non static * RenderingEngine::draw_scene is now non static * RenderingEngine::{initialize,finalize} are now non static * RenderingEngine::run is now non static * RenderingEngine::getWindowSize now have a static helper. It was mandatory to hide the global get_instance access
* refacto: rendering engine singleton removal step 1 (filesystem)Loic Blot2021-05-031-71/+2
| | | | | | | | Make the RenderingEngine filesystem member non accessible from everywhere This permits also to determine that some lua code has directly a logic to extract zip file. Move this logic inside client, it's not the lua stack role to perform a such complex operation Found also another irrlicht <1.8 compat code to remove
* Add `minetest.colorspec_to_colorstring` (#10425)Vincent Robinson2021-04-232-2/+25
|
* Fix server favorites not saving when client/serverlist/ doesn't exist ↵sfan52021-04-092-9/+12
| | | | already (#11152)
* Consistent title bar + render information in mainmenu (#10764)SmallJoker2021-03-301-8/+4
|
* Fix broken `BiomeGen` abstraction (#11107)sfan52021-03-231-89/+27
|
* Schematic: Properly deal with before/after node resolving and document (#11011)SmallJoker2021-03-201-3/+2
| | | | This fixes an out-of-bounds index access when the node resolver was already applied to the schematic (i.e. biome decoration). Also improves the handling of the two cases: prior node resolving (m_nodenames), and after node resolving (manual lookup)
* Protect mg_name and mg_flags from being set by Lua (#11010)sfan52021-03-041-10/+35
|
* Settings: Push groups in to_table as wellSmallJoker2021-03-011-8/+25
|
* Add nametag background setting and object property (#10937)rubenwardy2021-02-171-3/+26
|
* Use consistent temp folder path (#10892)rubenwardy2021-02-072-0/+13
|
* Reduce ore noise_parms error to deprecation warning (#10921)rubenwardy2021-02-061-4/+2
| | | | Fixes #10914
* Drop wide/narrow conversion functionssfan52021-02-021-1/+1
| | | | | | | | | The only valid usecase for these is interfacing with OS APIs that want a locale/OS-specific multibyte encoding. But they weren't used for that anywhere, instead UTF-8 is pretty much assumed when it comes to that. Since these are only a potential source of bugs and do not fulfil their purpose at all, drop them entirely.
* Revise dynamic_add_media API to better accomodate future changessfan52021-02-012-6/+17
|
* Preserve immortal group for players when damage is disabledsfan52021-01-311-0/+9
|
* Cache client IP in RemoteClient so it can always be retrieved (#10887)sfan52021-01-311-61/+40
| | | specifically: after the peer has already disappeared
* Settings: Proper priority hierarchySmallJoker2021-01-292-2/+2
| | | | | | | | | | | Remove old defaults system Introduce priority-based fallback list Use new functions for map_meta special functions Change groups to use end tags Unittest changes: * Adapt unittest to the new code * Compare Settings objects
* Use JSON for favorites, move server list code to Lua (#10085)rubenwardy2021-01-224-208/+18
| | | Co-authored-by: sfan5 <sfan5@live.de>
* MgOre: Fix invalid field polymorphism (#10846)rubenwardy2021-01-211-1/+1
|
* Removed some obsolete code (#10562)Zughy2021-01-211-3/+0
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* ObjectRef: fix some v3f checks (#10602)Zughy2021-01-211-20/+17
|
* ContentDB: Add overwrite dialog when content is already installed (#10768)rubenwardy2021-01-042-0/+13
|
* Add on_deactivate callback for luaentities (#10723)hecks2021-01-021-1/+1
|