aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2022-10-08Core/Threading: Create ThreadPool classShauren
2022-10-01Core/Misc: Fix *BSD compile errors (#28287)Lloyd Dilley
2022-08-19Core/Debugging: Improve SymInitialize fail message (#28206)ihm-tswow
* clarify that this is not the crash error, but an error with the crash report itself * improve formatting and message boundaries * warn the reader that this means the call stack symbols may be inaccurate
2022-07-15Core/Crypto: Correct header guard in SessionKeyGenerator.h (#28116)Kargatum
2022-06-16Core/Crypto: Fixed build with openssl 1.1daMaex
2022-06-16Core/Crypto: Fixed loading legacy openssl provider for RC4 on windowsShauren
2022-06-16Core/Crypto: Updated ARC4 code with openssl 3.0 supportdaMaex
2022-06-16Core/Crypto: Fixed GenericHMAC::Finalize wth openssl 3.0daMaex
2022-06-16Core/Crypto: Fixed EVP_PKEY reference counting for copied objectsShauren
Closes #27943 (cherry picked from commit aa6a0f24312ce6132e55a9aed677362a3b1dc8a9)
2022-06-16Core/Crypto: Switch away from most deprecated openssl functions and removed ↵Shauren
upper version limit (cherry picked from commit bc87f7b337154e683369a3790ee8fd1a7d4cba98)
2022-06-16Core/Misc: Prefix include guard to avoid possible conflict with external libraryShauren
(cherry picked from commit aefce9a25cc1af82d91b07b819bf715fbce41b2f)
2022-04-18Core/Metric: Sync default Metric.Interval valuejackpoz
Sync default Metric.Interval value in C++ with the value in worldserver.conf
2022-04-10Core/Metric: Fixed double logging metric timersShauren
2022-04-08Core/Metric: Build fix for WITH_DETAILED_METRICSShauren
2022-04-08Core/Metric: Minor optimizations for metrics (reducing number of allocations)Shauren
2022-04-07Core/CrashHandler: Support retrieving windows version names for all future ↵Shauren
versions
2022-03-09Core/Utilities: Fixed child process console output being incorrectly cut off ↵Shauren
at first newline (cherry picked from commit a5f107dafc0788d4f1a05a70854f1b4ae27c0b7b)
2022-02-14Dep: Raise required boost versions to 1.73 on windows and 1.71 on linux and ↵Shauren
remove compatibility code for unsupported versions (cherry picked from commit f6e72494f185d096f2cce70e646f0761e67e1bc7)
2022-01-22Core/Misc: Fixed engrish in static_assert for EnumFlag and restrict ↵Shauren
DEFINE_ENUM_FLAG to enums only (with std::is_enum) (cherry picked from commit a0e5f9db7e3fdf70ec70533e64e5653f04eeac16)
2021-12-08Core/Misc: Exclude boost 1.78 and newer from ↵Shauren
boost_1_73_process_windows_nopch hack (cherry picked from commit a93776728987e3ffa220e8fe5be73a34c5e3f965)
2021-08-31Core/Misc: Fix windows nopch buildShauren
Closes #25363
2021-08-19Core/Config: Implement config override with env vars (#26811)Anton Popovichenko
* Core/Config: Implement config override with env vars Implement overriding of configuration from the .conf file with environment variables. Environment variables keys are autogenerated based on the keys defined in .conf file. Usage example: $ export TC_DATA_DIR=/usr $ TC_WORLD_SERVER_PORT=8080 ./worldserver * Core/Config Fix typo in logs Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> * Core/Config Fix code style in EnvVarForIniKey Co-authored-by: Shauren <shauren.trinity@gmail.com> * Update tests/common/Config.cpp * Apply suggestions from code review Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> * Apply suggestions from code review Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> Co-authored-by: Anton Popovichenko <anton.popovichenko@mendix.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
2021-07-24Core/DBLayer: Add QueueSize() method (#26733)Giacomo Pozzoni
* Core/DBLayer: Add QueueSize() method Add QueueSize() method to database objects (Login, Character and World) that returns how many tasks are queued. Include the queue size of the 3 databases in ".server debug" command * Make the code less threadsafe * Send data to InfluxDB * Update grafana dashboard
2021-06-20Common/Misc: Replace old macros with modern C++ attributes (#26613)Giacomo Pozzoni
2021-05-11Core/Console: Improve ReadWinConsole logic and cosmetic changes (#26402)Mikhail Redko
* Core/Console: Improve ReadWinConsole logic and cosmetic changes * Core/Console: Fixed possible appearance of weird characters in the console when printing the output of child processes * Fix codestyle * Removed auto * Core/Misc: Explicit casting Difficulty values to uint8 before outputting to console * Core/Misc: Cast Difficulty to uint32 for output to console Co-authored-by: jackpoz <giacomopoz@gmail.com>
2021-04-24Vmap: Introduce skipping of antiportals and unreachable mogp (#26331)killerwife
* Vmap: Introduce skipping of antiportals and unreachable mogp * Reduce differences with master branch * Update VMAP and MMAP versions * Update MMAPs version Co-authored-by: jackpoz <giacomopoz@gmail.com>
2021-04-13Core/Console: Fix uninitialized variableShauren
2021-04-11Core/Misc: Fixed utf8 encoding in console input/output. (#26352)Mikhail Redko
* Core/Misc: Fixed utf8 encoding in console input/output. * Fix gcc build * Fixed that weird 'a' with circle above it and other similar letters. Also fixed encoding in AppenderConsole which sometimes did not work as it should * Fix build on Linux * Probably better to do it like this
2021-04-05Core/Misc: Enum flag v3 - allow enabling flag operations directly after enum ↵Shauren
definition when inside namespaces (cherry picked from commit ec87d048b4ebbb326158bc05512d1cc5ecbe8271) # Conflicts: # src/server/game/AuctionHouse/AuctionHouseMgr.cpp # src/server/game/AuctionHouse/AuctionHouseMgr.h # src/server/game/Entities/Object/ObjectGuid.h # src/server/game/Entities/Object/Updates/UpdateField.h # src/server/game/Entities/Object/Updates/UpdateFields.cpp # src/server/game/Entities/Object/Updates/UpdateFields.h # src/server/game/Entities/Player/CollectionMgr.cpp # src/server/game/Entities/Player/CollectionMgr.h # src/server/game/Phasing/PhaseShift.cpp # src/server/game/Phasing/PhaseShift.h # src/server/game/Phasing/PhasingHandler.cpp
2021-04-05Core/Misc: Improve enum flags with type safe operatorsShauren
(cherry picked from commit 0763844fb604075580e1c84672cb2e4a4fe19cde) # Conflicts: # src/server/game/AuctionHouse/AuctionHouseMgr.cpp # src/server/game/AuctionHouse/AuctionHouseMgr.h # src/server/game/Entities/Object/ObjectGuid.h # src/server/game/Entities/Object/Updates/UpdateField.h # src/server/game/Entities/Object/Updates/UpdateFields.cpp # src/server/game/Entities/Object/Updates/UpdateFields.h # src/server/game/Entities/Player/CollectionMgr.cpp # src/server/game/Entities/Player/CollectionMgr.h # src/server/game/Entities/Player/Player.cpp # src/server/game/Entities/Unit/Unit.cpp # src/server/game/Globals/ObjectMgr.h # src/server/game/Phasing/PhaseShift.cpp # src/server/game/Phasing/PhaseShift.h # src/server/game/Phasing/PhasingHandler.cpp
2021-04-04MapExtraction: Fix water height redundancy algorithm ignoring "no water" ↵killerwife
(#26324) * MapExtraction: Fix water height redundancy algorithm ignoring "no water" * Update MMAP_VERSION * Change map version Co-authored-by: jackpoz <giacomopoz@gmail.com>
2021-01-16CI/CircleCI: Expose binaries built on Circle CI as docker images in the ↵Giacomo Pozzoni
Circle CI artifacts (#25832) Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-01-04Core/Misc: Remove unneeded null-terminator after switch from wchar_t to ↵Mikhail Redko
std::wstring in 309851e. Fixes creation characters with declined russian names (#25797) Closes #23775
2021-01-03Core: whitespace cleanup, reduce double blank line to single (#25795)Kargatum
* Core/Misc: fix double empty line * worldserver.conf
2020-12-31Core/Misc: Fix Windows 32 bits buildjackpoz
Close #25789
2020-10-10Core/MMAPs: Restore single slope angle of 55°jackpoz
Re-generating MMAPs IS required. Partially reverts 995a443da219ec773febd7dd29d18f3cefaa1f3b . Having 2 different slope angles of 55° and 85° created too many polygons to fit in the current mmtile structure. This caused some polygons to become disconnected from each other, creating the old "invisible walls" effect. Because of this and because of the performance hit when loading a mmtile caused by the increase of polygon numbers, this commit reverts the recent changes and sets by default the slope angle to 55°. Feel free to restore the previous behaviour by running .\mmaps_generator --maxAngle 85 --maxAngleNotSteep 55 , specifying the map id as number if a single map should have different slope values. This is the last commit that will change MMAPs version to force re-generating them. Any future change that will affect only the generation settings will be optional (but recommended).
2020-09-27Dep/Boost: Support for boost 1.74 - heapShauren
Closes #25470
2020-09-27Dep/Boost: Partial support for boost 1.74 - asioShauren
Ref #25470
2020-09-26Core/Misc: nopch fixesShauren
2020-09-19Common/Metric: Fix build with PERFORMANCE_PROFILING and/or WITHOUT_METRICSAokromes
2020-09-12[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)Treeston
2020-09-11Dep/fmt: update fmt library to 7.0.3Winfidonarleyan
2020-09-10Core/ChatCommands: make ExactSequence more readableTreeston
2020-09-06Core/Authserver: Removal of sha_pass_hash, compatibility fields, and ↵Treeston
everything that uses them (PR #25156)
2020-09-02Common/Util: Trinity::StringTo<double> support (PR #25364)Treeston
2020-09-02Core/Misc: Add support for custom link colors. Clean-up hyperlink ↵Treeston
validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs.
2020-08-29Core/Config: Restore ability to load additional config files for custom scriptsShauren
2020-08-29Core/Misc: Fix issues reported by static analysis (#25351)Giacomo Pozzoni
* Core/Misc: Fix issues reported by static analysis * Core/Vmaps: Code cleanup after e77716188861d4aa83b227a90e04a66b63baeb1f
2020-08-28Common/Utilities: Make StringTo<bool>'s signature match that of the other ↵Treeston
integral types, making for easier templating. Default behavior unchanged.
2020-08-28Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327)Treeston