aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
AgeCommit message (Collapse)Author
2021-10-05Add get_server_max_lag() (#11671)Wuzzy
2021-10-01Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy
2021-09-19Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-09-19Add ClientObjectRef:remove and return true in on_object_add callback to ↵Elias Fleckenstein
remove newly added object
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2021-09-09Dynamic_Add_Media v2 (#11550)sfan5
2021-08-28Async-related script cleanupssfan5
2021-08-28Remove redundant on_dieplayer callssavilli
2021-08-27Joystick sensitivity for player movement (#11262)NeroBurner
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>
2021-08-21HUD: Reject and warn on invalid stat types (#11548)SmallJoker
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
2021-08-19Validate staticdata and object property length limits (#11511)sfan5
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.
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-07-11Refactor video driver name retrieval (#11413)hecks
Co-authored-by: hecktest <>
2021-06-30Auth API: Error when accessed prior to ServerEnv init (#11398)SmallJoker
2021-06-20Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)sfence
This check can be used by ABM to reduce CPU usage.
2021-06-16Drop --videomodes, fullscreen_bpp and high_precision_fpu settingssfan5
These have been pointless for a while.
2021-05-30Add core.compare_block_status function (#11247)SmallJoker
Makes it possible to check the status of the mapblock in a future-extensible way.
2021-05-30script: Replace calls to depreated luaL_openlibsfan5
2021-05-17Fix curl_timeout being ignored for Lua HTTP fetchessfan5
2021-05-13Make set_pitch and set_yaw more accurate by not rounding it to integersElias Fleckenstein
2021-05-13Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-05-13Fix formatElias Fleckenstein
2021-05-11Include tile definitions in get_node_def; Client-side minetest.object_refs tableElias Fleckenstein
2021-05-10Add on_object_hp_change callback and nametag imagesElias Fleckenstein
2021-05-10Add ClientObjectRef:set_propertiesElias Fleckenstein
2021-05-10Add ClientObjectRef.get_propertiesElias Fleckenstein
2021-05-06fix: extractZipFile is not part of Client but more generic.Loic Blot
This solve a crash from mainmenu while extracting the zip
2021-05-03refacto: remove get_gui_env & draw_load_screen from RenderingEngine singletonLoic Blot
2021-05-03refacto: RenderingEngine is now better hiddenLoic Blot
* 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
2021-05-03refacto: rendering engine singleton removal step 1 (filesystem)Loic Blot
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
2021-04-23Add `minetest.colorspec_to_colorstring` (#10425)Vincent Robinson
2021-04-09Fix server favorites not saving when client/serverlist/ doesn't exist ↵sfan5
already (#11152)
2021-03-30Consistent title bar + render information in mainmenu (#10764)SmallJoker
2021-03-26Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-03-26Add ClientObjectRef:removeElias Fleckenstein
2021-03-23Fix broken `BiomeGen` abstraction (#11107)sfan5
2021-03-20Schematic: Properly deal with before/after node resolving and document (#11011)SmallJoker
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)
2021-03-10Merge branch 'master' of https://github.com/EliasFleckenstein03/dragonfireclientElias Fleckenstein
2021-03-10Update .wielded command to output the entire itemstring; add ↵Elias Fleckenstein
LocalPlayer:get_hotbar_size
2021-03-10Merge branch 'master' of https://github.com/EliasFleckenstein03/dragonfireclientElias Fleckenstein
2021-03-10CSM: Use server-like (and safe) HTTP API instead of Mainmenu-likeElias Fleckenstein
2021-03-04Protect mg_name and mg_flags from being set by Lua (#11010)sfan5
2021-03-01Settings: Push groups in to_table as wellSmallJoker
2021-02-18Port formspec API from waspsalivaElias Fleckenstein
This API is inofficial and undocumented; invalid usage causes the game to crash. Use at own risk!
2021-02-18Forcefully place items when minetest.place_node is usedElias Fleckenstein
2021-02-17Add nametag background setting and object property (#10937)rubenwardy
2021-02-10Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-02-07Use consistent temp folder path (#10892)rubenwardy
2021-02-06Reduce ore noise_parms error to deprecation warning (#10921)rubenwardy
Fixes #10914
2021-02-02Drop wide/narrow conversion functionssfan5
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.