aboutsummaryrefslogtreecommitdiff
path: root/src/server
AgeCommit message (Collapse)Author
2021-12-12Rename new_gravity to new new_accelerationElias Fleckenstein
2021-12-12Add correct gravity calculationElias Fleckenstein
2021-12-06Fix get_bone_position() on unset bones modifying their positionsfan5
closes #11840
2021-10-31Fix number of tool uses being off by 1..32767 (#11110)Wuzzy
2021-10-20Add no_texture.png as fallback for unspecified texturesWuzzy
2021-10-12Fix player HP desync between client and serversavilli
2021-08-28Remove redundant on_dieplayer callssavilli
2021-07-31Mods: Combine mod loading checks and deprection logging (#11503)SmallJoker
This limits the logged deprecation messages to the mods that are loaded Unifies the mod naming convention check for CSM & SSM
2021-07-10Script API: Fix segfault in remove_detached_inventorySmallJoker
when minetest.remove_detached_inventory is called on script init, the environment is yet not set up, hence m_env is still nullptr until all scripts are loaded
2021-05-29UnitSAO: Prevent circular attachmentsSmallJoker
2021-04-13Attachments: Avoid data loss caused by set_attach() in callbacks (#11181)SmallJoker
2021-03-07Protect per-player detached inventory actionsSmallJoker
2021-02-23Allow overwriting media files of dependencies (#10752)DS
2021-02-15Server-side authority for attached players (#10952)SmallJoker
The server must have authority about attachments. This commit ignores any player movement packets as long they're attached.
2021-02-12Send attachments instantly before set_pos (#10235)SmallJoker
2021-01-22Remove dead code (#10845)rubenwardy
2021-01-21Removed some obsolete code (#10562)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-11Implement on_rightclickplayer callback (#10775)JDiaz
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-02Add on_deactivate callback for luaentities (#10723)hecks
2020-12-29Add minetest.get_objects_in_area (#10668)Elias Fleckenstein
2020-11-12PlayerSAO: Run on_player_hpchange raw change values (#10478)SmallJoker
The callback is only run when a change in HP is to be expected. Following cases will not trigger the callback: * Dead player damaged further * Healing full-health player * Change of 0 HP
2020-10-19Implement unloading of static_save=false objects according to existing docs ↵sfan5
(#10485)
2020-10-19Decouple entity minimap markers from nametags replacing with show_on_minimap ↵sfan5
property (#10443)
2020-10-04Add First Person Attachments (#10360)Jordan Snelling
Fixes some other third person camera specific attachments. Implements a single new flag for entities to be forced visible in first person mode. Old mods do not need to be updated to use the new flag and are fully backwards compatible.
2020-10-01(se)SerializeString: Include max length in the nameSmallJoker
This commit clarifies the maximal length of the serialized strings. It will avoid accidental use of serializeString() when a larger string can be expected. Removes unused Wide String serialization functions
2020-09-26Patch fast/teleport vulnerability when attached to an entity (#10340)Elias Fleckenstein
2020-08-20Load media from subfolders (#9065)DS
2020-06-04Move shared parameters sending to UnitSAO (#9968)SmallJoker
Better header sorting by topic Make UnitSAO-specific parameters private Skip redundant recursive entity sending code (since ~5.2.0)
2020-05-29Clean up CAO nametag handling and remove deprecated AO_CMDsfan5
AO_CMD_UPDATE_NAMETAG_ATTRIBUTES was deprecated in 9eee3c3f465c071bb9908749cf48be3c131a1bdf (0.4.14)
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
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-05Server: Improve some log messages (#9820)sfan5
2020-04-29Add MetricsBackend with prometheus counter supportLoic Blot
2020-04-27Expose collision information to LuaEntity on_stepsfan5
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-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-11pass clang-formatLoic Blot
2020-04-11Move serveractiveobject & unitsaoLoic Blot
Move serverobject.{cpp,h} to server/serveractiveobject.{cpp,h} Move UnitSAO class to dedicated files
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.
2019-08-13Better F6 profiler (#8750)SmallJoker
Update the profiler names to make more sense of what they actually represent Move the profiler code from header to its source file Use monospace font to align lines Format the statistics line to align better with surrounding values Refresh the profiler each 3 seconds (roughly)
2019-07-16Optimize getting active objects a bit. #8674Lars Hofhansl
2018-12-13Add an activeobject manager to hold active objects (#7939)Loïc Blot
* Add an activeobject manager to hold active objects * Add unittests
2018-07-08Revert 6587 - Optimize entity-entity collision (#7539)lhofhansl
2018-06-06CSM/SSM: Add on_mods_loaded callback (#7411)Loïc Blot
* CSM/SSM: Add on_mods_loaded callback
2018-04-19Add online content repositoryrubenwardy
Replaces mods and texture pack tabs with a single content tab
2018-04-06Fix SAOM (#7200)Vitaliy
* Bugfix
2018-04-03Fix various clang-tidy reported performance-type-promotion-in-math-fnLoïc Blot
2018-04-03Optimize entity-entity collision (#6587)Vitaliy
* Add IrrLicht type aliases * Add hash for IrrLicht vector * Add object map
2018-03-24Print the mod loading time (#7137)you
* Print the mod loading time