aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
AgeCommit message (Collapse)Author
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
2021-09-09Dynamic_Add_Media v2 (#11550)sfan5
2021-08-28Remove redundant on_dieplayer callssavilli
2021-07-29Remove unsupported formats from the media enumeratorhecks
2021-07-27Add bold, italic and monospace font styling for HUD text elements (#11478)sfan5
Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
2021-06-22Server: Ignore whitespace-only chat messagesSmallJoker
2021-03-05Translate builtin (#10693)Wuzzy
This PR is the second attempt to translate builtin. Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
2021-02-12Send attachments instantly before set_pos (#10235)SmallJoker
2021-02-05Server: properly delete ServerMap on interrupted startupsSmallJoker
A static mod error (e.g. typo) would abort the initialization but never free ServerMap
2021-02-02Encode high codepoints as surrogates to safely transport wchar_t over networksfan5
fixes #7643
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.
2021-02-01Revise dynamic_add_media API to better accomodate future changessfan5
2021-01-31Preserve immortal group for players when damage is disabledsfan5
2021-01-31Cache client IP in RemoteClient so it can always be retrieved (#10887)sfan5
specifically: after the peer has already disappeared
2021-01-29Settings: Proper priority hierarchySmallJoker
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
2020-12-15Allow configuring block disk and net compression. Change default disk level.Lars
2020-10-04Minimap as HUD element with API controlPierre-Yves Rollo
Features: * Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes() * New HUD elements for displaying minimap with custom size and placing * New minimap mode for displaying a texture instead of the map
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-26Remove null bytes from TOCLIENT_BLOCKDATA (#10433)luk3yx
2020-09-25Correct erroneous reported max lag with prometheus (#10427)Buckaroo Banzai
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2020-09-16Clean up server-side translations, remove global variable (#10075)rubenwardy
2020-08-24Properly handle mod-errors in on_shutdownDesour
2020-08-20Load media from subfolders (#9065)DS
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-06-13Server pushing media at runtime (#9961)sfan5
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
2020-05-23Optimize particlespawner sending by not sending to distant playerssfan5
2020-05-23Implement spawning particles with node texture appearancesfan5
2020-05-22Cleanup of particle & particlespawner structures and code (#9893)sfan5
2020-05-20Cache liquid alternative IDs (#8053)Vitaliy
2020-05-11Add support for statbar “off state” icons (#9462)Wuzzy
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles. Add "off state" textures to the builtin statbars. Co-authored-by: SmallJoker <mk939@ymail.com>
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-05Sky API: Rename *_tint to fog_*_tint for consistencySmallJoker
2020-05-02set_fov: Add support for time-based transitions (#9705)ANAND
2020-04-29Add MetricsBackend with prometheus counter supportLoic Blot
2020-04-25Add server side translations capability (#9733)EvidenceB Kidscode
* Add server side translations capability
2020-04-17Android: fix handling non-latin characters on older Android devices (#9309)Maksim
2020-04-14Refactor texture overrides and add new features (#9600)Hugues Ross
* Refactor texture overrides, and add new features: - Texture overrides can support multiple targets in one line - Texture override files can have comment lines - Item images/wield images can be overridden * Formatting changes * Address soime feedback - Pass vectors by const reference - Log syntax errors as warnings - Remove 'C' prefix from TextureOverrideSource * Simplify override target checks with an inline helper function * make linter happy * Apply feedback suggestions Co-Authored-By: rubenwardy <rw@rubenwardy.com> * Remove remaining != 0 checks * Update copyright notice Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: rubenwardy <rw@rubenwardy.com>
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-10Drop genericobject.{cpp,h} (#9629)Loïc Blot
* 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
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-08Fix 2 log messages when player joined to game (#9477)Maksim
2020-03-05set_sky improvements, set_sun, set_moon and set_starsJordach
2020-02-11Script API: Check that SAOs are still usable before attempting to use themsfan5
2020-02-01Improve core.sound_play with ephemeral sounds and player exclusionsfan5