aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
AgeCommit message (Collapse)Author
2020-10-04Deprecate get_player_velocity and add_player_velocity (#10173)rubenwardy
2020-09-16Clean up server-side translations, remove global variable (#10075)rubenwardy
2020-08-27Lua API: Register missing get_texture_mod function (#10338)karamel59
2020-08-15Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2020-07-29Add PUT and DELETE request + specific method value to HTTP API (#9909)Lejo
2020-07-28Sanitize world directory names on create. Keep original name separate (#9432)Hugues Ross
Blacklisted characters are replaced by '_' in the path. The display name is stored in world.mt, and duplicate file names are resolved by adding an incrementing suffix (_1, _2, _3, etc).
2020-07-16Revert "Auto delete MetaData when = 0 (#8770)" (#10183)Lars Müller
This reverts commit 808eb4c5714da5ac36f4a70653d6b3805060828c.
2020-07-14Implement grouped mode for find_nodes_in_area (#9888)sfan5
plus general improvements to find_node_* functions
2020-06-22Fix HTTP API not being available in async mainmenu (#10086)rubenwardy
2020-06-13Exposing the zoom key to Lua API (#9903)Lars Müller
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
2020-06-13Server pushing media at runtime (#9961)sfan5
2020-06-09LuaItemStack: Add __tostring metamethod (#8785)Paul Ouellette
* LuaItemStack: Add __tostring metamethod * Clean up LuaItemStack::checkobject
2020-06-06Add HTTP API to main menu (#9998)rubenwardy
2020-05-23Implement spawning particles with node texture appearancesfan5
2020-05-23Modernize include guards and add missing ones (#9898)Awkor
2020-05-22Check for valid base64 before decoding (#9904)Lejo1
2020-05-22Cleanup of particle & particlespawner structures and code (#9893)sfan5
2020-05-20Allow more than 255 biomes, document new maximum (#9855)Paramat
Change biomemap data type from u8 to u16. New technical (not practical) maximum is 65535 biomes.
2020-05-19Rework functionality of leveled nodes (#9852)Wuzzy
Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-05-17Add core.open_url() to main menu API (#8592)rubenwardy
2020-05-14CSM: Bugfixes to camera:get_pos() and camera:get_fov()sfan5
closes #9857
2020-05-07Server class code cleanups (#9769)Loïc Blot
* Server::overrideDayNightRatio doesn't require to return bool There is no sense to sending null player, the caller should send a valid object * Server::init: make private & cleanup This function is always called before start() and loads some variables which can be loaded in constructor directly. Make it private and call it directly in start * Split Server inventory responsibility to a dedicated object This splits permit to found various historical issues: * duplicate lookups on player connection * sending inventory to non related player when a player connects * non friendly lookups on detached inventories ownership This reduce the detached inventory complexity and also increased the lookup performance in a quite interesting way for servers with thousands of inventories.
2020-05-05Fix remaining issues with mapgen scriptapisfan5
2020-05-05Give the Mapgen on each EmergeThread its own Biome/Ore/Deco/SchemManager copysfan5
2020-05-05Sky API: Rename *_tint to fog_*_tint for consistencySmallJoker
2020-05-02Auto delete MetaData when = 0 (#8770)Lejo
* Auto delete MetaData when = 0
2020-05-02set_fov: Add support for time-based transitions (#9705)ANAND
2020-05-01Allow connection info to be missing from minetest.get_player_information() ↵sfan5
(#9739) fixes #9352 This reverts commit 23c907befea02005e2c0c87fca0131b60aace18a.
2020-05-01Give the online lua mainmenu also the client_list and mods (#8691)Lejo
2020-04-27Forbid object:attach(obj, ...) (#9762)Loïc Blot
Fixes #9761
2020-04-27Script: Enforce type checks if not nil (#9748)SmallJoker
* Script: Enforce type checks if not nil
2020-04-27script: Put getGuiEngine() inside a client-only #ifdefsfan5
2020-04-27script: Fix add_entity returning unusable ref if object deleted in on_activatesfan5
2020-04-25Add server side translations capability (#9733)EvidenceB Kidscode
* Add server side translations capability
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.
2020-04-19Fix alias handling of get_content_id (#9712)sfan5
fixes #9632
2020-04-18script: Move SAO usability check so that it covers all functions (#9698)sfan5
see also 91eef646a59575bd9ae792e257bb6ad12fafc0b1
2020-04-16Optimize get_objects_inside_radius calls (#9671)Loïc Blot
* Optimize getObjectsInsideRadius calls our previous implementation calls the ActiveObjectMgr to return ids and then lookup those ids in the same map and test each object Instead now we call the global map to return the pointers directly and we ask filtering when building the list using lamba. This drop double looping over ranges of active objects (and then filtered one) and drop x lookups on the map regarding the first call results
2020-04-14scriptapi: Some small optimizations to value pushing (#9669)sfan5
2020-04-11Formspecs: Add state-selection to style elements (#9378)Hugues Ross
2020-04-11Reduce ServerEnvironment propagation (#9642)Loïc Blot
ServerEnvironment is a huge class with many accessors. In various places it's not needed Remove it to reduce the ServerEnvironment view. Idea here is to reduce size of some of our objects to transport lightweight managers and permit easier testing Pathfinder is now tied to a generic map, not a ServerMap, it can be ported to client
2020-04-11Drop content_sao.{cpp,h}Loic Blot
Move LuaEntitySAO to a new dedicated file Drop TestSAO (useless object) Drop the old static startup initialized SAO factory, which was pretty useless. This factory was using a std::map for 2 elements, now just use a simple condition owned by ServerEnvironment, which will be lightweight, that will also drop a one time useful test on each LuaEntitySAO creation. This should reduce server load on massive SAO creation
2020-04-11Move PlayerSAO to dedicated filesLoic Blot
2020-04-11Move serveractiveobject & unitsaoLoic Blot
Move serverobject.{cpp,h} to server/serveractiveobject.{cpp,h} Move UnitSAO class to dedicated files
2020-04-11Various features and fixessfan5
2020-04-11Implement minetest.sound_fade()sfan5
2020-04-11scriptapi: Sort out ServerEnvironment / Environment distinction properlysfan5
The API implementation is shared between CSM and SSM. Functions should retrieve a plain env when they do not need any server-specific functions.
2020-04-08Work around LuaJIT issues on aarch64 (#9614)sfan5
- Move the text segment below the 47-bit limit, needed for script_exception_wrapper which must be lightuserdata - Replace CUSTOM_RIDX_SCRIPTAPI with full userdata
2020-04-08Overall improvements to log messages (#9598)sfan5
Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
2020-03-11minetest.get_content_id: error if the node does not exist (#9458)HybridDog
If a mod creator makes a typing mistake, this function now causes an error instead of returning the id of "ignore".