aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
AgeCommit message (Collapse)Author
2023-02-27Add minetest.get_player_window_information() (#12367)rubenwardy
2023-02-26Sky: transmit body_orbit_tilt to client. (#13193)sofar
This obsoletes the current client-side setting entirely. The server can transmit the tilt to the client directly and will send 0.0f as default value. Co-authored-by: x2048 <codeforsmile@gmail.com> Co-authored-by: sfan5 <sfan5@live.de>
2023-01-14Disable Prometheus in singleplayer modesfan5
2023-01-06Add dynamic exposure correction (#12959)x2048
* Add uniform for frame delta time * Adjust exposure in logarithmic (EV) space * Add network support and LUA API * Add testing mod
2022-12-25Allow saturation to be controlled by the server. (#13075)lhofhansl
2022-12-24Store `MapEditEvent` blocks in a vector (#13071)Jude Melton-Houghton
2022-12-24Make MapEditEvent more completeJude Melton-Houghton
SetBlocksNotSent is no longer used.
2022-11-24Rename "mod metadata" to "mod storage" everywhereJude Melton-Houghton
2022-11-10Add mod storage PostgreSQL backendJude Melton-Houghton
2022-11-09Fix typos and en_US/en_GB inconsistency in various files (#12902)Abdou-31
2022-11-03Reduce exposure of various internals (#12885)Loïc Blot
* refactoring(StaticObjectList): don't expose m_active and m_stored anymore This prevents our old crap code where anyone can access to StaticObjectList. use proper modifiers. It also permits to do a short cleanup on MapBlock using a helper * refactoring(MapBlock): reduce a bit exposed m_active_blocks variable * refactoring: MapBlock::m_node_timers is now private We already had various helpers to perform this privatization, just use it. Also factorize the MapBlock stepping code for timers using already existing code and importing them from ServerEnvironment to MapBlock. It's currently done pretty straight forward without any inheritance as MapBlock is just used everywhere, maybe in a future we'll have ServerMapBlock over MapBlock. Currently for a simple function let's just use proper objects and add a comment warning * refactoring(Server): fix duplicated function for add/remove node * refactoring(guiFormSpecMenu): add removeAll function to prevent duplicated code * refactoring(ShadowRenderer) + perf: code quality + increase performance * All callers are already using the point and we should never test a function with nullptr node, it's a bug. Removed workaround which was hacky and fix the bug * Drop clientmap lookup from shadowrendered, just use directly its pointer and forbid to push it in the generic list * Reduce memory pressure on the renderShadowObject by preventing deallocating and reallocating multiple vectors on each node * refactoring(MapBlock): reduce exposure of MapBlock::m_static_objects It's not complete as some parts of the code are pretty nested, but it's better than before :) * fix: better working on new functions & drop unwanted 2 lines Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com> Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-10-18Implement vector and node conversion in Lua (#12609)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-27Add unittests for item movement code (#11885)savilli
2022-09-26Avoid duplication of mod metadata in memory (#12562)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-06Code optimizations / refactor (#12704)Herman Semenov
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
2022-08-19Prevent loading a world with unresolved dependencies (#12542)rubenwardy
2022-07-17Deprecate loading a world with unresolved dependencies (#12541)rubenwardy
Co-authored-by: sfan5 <sfan5@live.de>
2022-07-13Animated particlespawners and more (#11545)Lexi Hale
Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com>
2022-07-09Sounds: Various little improvements (#12486)SmallJoker
Use SimpleSoundSpec where reasonable (OpenAL) Ensure the sound IDs do not underflow or get overwritten -> loop in u16 Proper use of an enum.
2022-07-09Enforce limits of settings that could cause buggy behaviour (#12450)SmallJoker
Enforces the setting value bounds that are currently only limited by the GUI (settingtypes.txt).
2022-07-02Allow to set maximum star opacity at daytime (#11663)Wuzzy
2022-06-20Re-order sound-related code (#12382)SmallJoker
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-11No damage effects on hp_max change (#11846)Lars Müller
2022-05-29Optimize Server::sendMetadataChanged a bitsfan5
The distance check also never worked as intended, now fixed.
2022-05-29Add API function to invoke player respawnsfan5
closes #12272
2022-05-21Deprecate game.conf name, use title instead (#12030)rubenwardy
2022-05-10Use native packer to transfer globals into async env(s)sfan5
2022-05-09Add more Prometheus metrics (#12274)sfan5
2022-05-08Cache serialized mapblocks during sendingsfan5
This reduces the (absolute) time spent in Server::SendBlocks() from 700ms to 300ms (relative) share of MapBlock::serialize() from 80% to 60% in a test setup with 10 players and many block changes
2022-05-04Make logging cost free when there is no output target (#12247)paradust7
The logging streams now do almost no work when there is no output target for them. For example, if LL_VERBOSE has no output targets, then `verbosestream << x` will return a StreamProxy with a null target. Any further `<<` operations applied to it will do nothing.
2022-05-02Async environment for mods to do concurrent tasks (#11131)sfan5
2022-05-02Refactor some Lua API functions in preparation for async envsfan5
2022-04-28Clean up some auth packet handling related codesfan5
2022-04-07Disentangle map implementations (#12148)Jude Melton-Houghton
Fixes violation of Liskov substitution principle Fixes #12144
2022-03-26Add API to control shadow intensity from the game/mod (#11944)x2048
* Also Disable shadows when sun/moon is hidden. Fixes #11972.
2022-02-26Move the codebase to C++14sfan5
2022-02-17Clean up ClientReady packet handlingsfan5
fixes #12073
2022-02-08Send HUD flags only if changedLars Müller
2022-02-03Clean up ClientInterface lockingJude Melton-Houghton
2022-01-28Add game name to server status stringsfan5
2022-01-15Give the ASCII console splash a faceliftAlex
2022-01-15Improve situation around race condition with dynamic_add_media during client ↵sfan5
join
2022-01-15Don't call on_dieplayer callback two times (#11874)savilli
2022-01-07Use a database for mod storage (#11763)Jude Melton-Houghton
2021-12-29Socket-related cleanupssfan5
Improve error handling on Windows and reduce the size of the `Address` class
2021-12-05Fix various code & correctness issues (#11815)sfan5
2021-10-15Make /status message easier to readWuzzy
2021-09-15Readd TGA to the list of valid texture formats. (#11598)ROllerozxa
2021-09-10Clean up/improve some scriptapi error handling codesfan5
2021-09-10Send to clients node metadata that changed to become empty (#11597)Jude Melton-Houghton