aboutsummaryrefslogtreecommitdiff
path: root/src/serverenvironment.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Hax's version of Minetest Server 5.6.0Test_User2024-06-281-0/+3
|
* Fix crash in commit a69b7abe00fb818fd88f3cd04e7f9997ffd21072sfan52022-06-051-1/+2
|
* Improve LBMManager::applyLBMs() codesfan52022-06-051-6/+5
| | | | Fixes a possible bug for lbms on content ID zero and removes unsafe casts.
* Minor code improvements around active block keepingsfan52022-05-291-9/+11
|
* Immediately activate blocks when a player joinssfan52022-05-291-1/+7
| | | | | | issue: #10884 This makes it possible for objects to immediately be activated, but doesn't guarantee it since blocks may still need be emerged.
* Add more Prometheus metrics (#12274)sfan52022-05-091-2/+23
|
* Async environment for mods to do concurrent tasks (#11131)sfan52022-05-021-0/+2
|
* Clean up some auth packet handling related codesfan52022-04-281-4/+2
|
* Spacing fixesShadowNinja2022-04-081-1/+1
|
* Add min_y and max_y checks for Active Block Modifiers (ABM) (#11333)sfence2021-06-201-0/+8
| | | This check can be used by ABM to reduce CPU usage.
* Add core.compare_block_status function (#11247)SmallJoker2021-05-301-0/+15
| | | Makes it possible to check the status of the mapblock in a future-extensible way.
* Settings: Proper priority hierarchySmallJoker2021-01-291-4/+3
| | | | | | | | | | | 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
* Add on_deactivate callback for luaentities (#10723)hecks2021-01-021-4/+8
|
* Implement unloading of static_save=false objects according to existing docs ↵sfan52020-10-191-3/+6
| | | | (#10485)
* Add minetest.get_artificial_light and minetest.get_natural_light (#5680)HybridDog2020-10-061-0/+85
| | | | | Add more detailed light detection functions, a function to get the artificial light (torches) and a function to get the sunlight as seen by the player (you can specify timeofday). Co-authored-by: rubenwardy <rw@rubenwardy.com>
* Allow the ABM time budget to be configurable.Lars2020-08-181-2/+2
|
* Revert "Verify database connection on interval (#9665)"rubenwardy2020-07-071-5/+0
| | | | | | Fixes #10113 This reverts commit 5c588f89e79e02cba392abe3d00688772321f88b.
* Add LevelDB player database (#9982)luk3yx2020-06-121-1/+8
|
* Value copy / allocation optimizations mostly in server, SAO and serialize codesfan52020-05-271-4/+4
|
* Add missing sao->isGone() checkssfan52020-05-181-0/+2
| | | | fixes #9883
* Fix Server triggering wrong errors if environment init failssfan52020-05-071-0/+6
|
* Add PostgreSQL authentication backend (#9756)Loïc Blot2020-04-271-0/+8
| | | | * Add PostgreSQL authentication backend
* Add LevelDB auth database. (#9476)luk3yx2020-04-231-0/+8
| | | | * Add leveldb auth database.
* Optimize get_objects_inside_radius calls (#9671)Loïc Blot2020-04-161-7/+5
| | | | | | | | | * 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
* Verify database connection on interval (#9665)Loïc Blot2020-04-151-0/+5
|
* Drop content_sao.{cpp,h}Loic Blot2020-04-111-3/+16
| | | | | | | 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
* Move PlayerSAO to dedicated filesLoic Blot2020-04-111-2/+2
|
* scriptapi: Sort out ServerEnvironment / Environment distinction properlysfan52020-04-111-18/+0
| | | | | | The API implementation is shared between CSM and SSM. Functions should retrieve a plain env when they do not need any server-specific functions.
* Drop genericobject.{cpp,h} (#9629)Loïc Blot2020-04-101-4/+1
| | | | | | | | | | * Drop genericobject.{cpp,h} This file is not for generic object but for ActiveObject message passing. Put ownership of the various commands to the right objects and cleanup the related code. * Protect ServerActiveObject::m_messages_out * typo fix
* Send cumulated inventory changes only each step (#8856)SmallJoker2019-09-091-0/+13
| | | | Applies to player and detached inventories
* Better F6 profiler (#8750)SmallJoker2019-08-131-9/+11
| | | | | | | 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)
* Merge pull request #8776 from osjc/FixGetNodeJozef Behran2019-08-101-4/+4
| | | Finish getNode cleanup
* Improve ABM time budget handling. #8645Lars Hofhansl2019-07-071-37/+50
|
* Force player save before kicking on player shutdown (#8157)Loïc Blot2019-02-031-2/+2
|
* Fix some misspellings (#8104)Paul Ouellette2019-01-161-2/+2
|
* Make sqlite3 default auth & player backends for new worlds (#8043)Loïc Blot2019-01-041-23/+49
| | | | | | * Make sqlite3 default auth & player backends for new worlds Also notify about auth backend depreciation
* Player file directory must be only created when using file backend.Loïc Blot2019-01-041-3/+0
| | | | Also ensure on each player save that the directory exists
* Add an activeobject manager to hold active objects (#7939)Loïc Blot2018-12-131-214/+58
| | | | * Add an activeobject manager to hold active objects * Add unittests
* Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)CoderForTheBetter2018-11-281-2/+2
| | | | * Adds Lua methods 'set_rotation()' and 'get_rotation'. Also changed some method names to be more clear. Instead of an f32 being sent over network for yaw, now a v3f is sent for rotation on xyz axes. Perserved Lua method set_yaw/setyaw so that old mods still work, other wise to set yaw they would need to switch to set_rotation(0, yaw, 0).
* Replace auth.txt with SQLite auth database (#7279)Ben Deutsch2018-08-051-0/+101
| | | | * Replace auth.txt with SQLite auth database
* Add a MSVC / Windows compatible snprintf function (#7353)nOOb31672018-07-221-2/+3
| | | Use sizeof where applicable for mt_snprintf
* Optimize ABM checks.Lars Hofhansl2018-07-211-2/+40
| | | | | | | See #7555 Cache (up to 64) node types for each active block. Check this cache first to see whether any ABM needs to be triggered for a block.
* Revert 6587 - Optimize entity-entity collision (#7539)lhofhansl2018-07-081-26/+62
|
* Add player:get_meta(), deprecate player attributes (#7202)rubenwardy2018-04-061-1/+1
| | | | * Add player:get_meta(), deprecate player attributes
* Huge LBM lookup performance improvement on mapblock loading (#7195)Loïc Blot2018-04-041-11/+20
| | | | * Huge LBM lookup performance improvement on mapblock loading
* Optimize entity-entity collision (#6587)Vitaliy2018-04-031-62/+26
| | | | | | * Add IrrLicht type aliases * Add hash for IrrLicht vector * Add object map
* ServerEnvironment::loadDefaultMeta: Loading default meta is only possible ↵Loic Blot2018-03-161-0/+13
| | | | for ServerEnv itself
* VoxelArea: add_{x,y,z,p} must be staticLoic Blot2018-03-091-2/+2
| | | | | Fix some documentations issues Use getNodeNoCheck(v3s16, ...) in some cases instead of getNodeNoCheck(x, y, z, ...)
* ServerEnvironment & StaticObject cleanupsLoic Blot2018-03-091-23/+24
| | | | | | * isFreeServerActiveObjectId is now part of ServerEnvironment * getFreeServerActiveObjectId is now part of ServerEnvironment * StaticObject constructor now take ServerActiveObject instead of type + string. This permits to remove a big string copy in some code parts
* SAO limits: Allow SAOs to exist outside the set 'mapgen limit'paramat2018-02-261-2/+1
|