aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
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
2020-08-27Common/Utilities: Properly read std::from_chars documentation and check for ↵Treeston
out_of_range errors.
2020-08-26cd30e0b follow-up (I could've sworn I pushed that to the PR branch. Sorry, ↵Treeston
Shauren.)
2020-08-26Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR ↵Treeston
#25335)
2020-08-24Revert "[3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + ↵Treeston
std::string_view)" This reverts commit 11c4a60fbe9d471618e0579f588706746ff3e439.
2020-08-24[3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + std::string_view)Treeston
2020-08-23Common/Utilities: Move EnumUtils' implementation struct from Trinity::Impl ↵Treeston
to Trinity::Impl::EnumUtilsImpl. This avoids confusing name clashes for other implementations in sub-namespaces of Trinity::Impl.
2020-08-23Core/Misc: std::string -> std::string_view in a bunch of places, notably ↵Treeston
chat commands and Util.h
2020-08-20Core/Networking: Initialize MPSCQueueIntrusive dummy node without undefined ↵Shauren
behavior
2020-08-20Core/Util: Added another template utility - find_type_ifShauren
* Trinity::find_type_if - Find a type matching predicate in a given template parameter pack
2020-08-20Core/Util: Added new utilitiesShauren
* Trinity::new_from_tuple - same as std::make_from_tuple except allocates object using "new" * Trinity::is_tuple - detects whether given type is a tuple specialization * advstd::type_identity - C++20 std::type_identity
2020-08-20Common/Misc: Clean-up a GCC sign comparison warningTreeston
2020-08-20Core/ChatCommands: Check whether a passed numeric enum value is valid (#25285)Peter Keresztes Schmidt
2020-08-16Core/ChatCommands: Add support for enum type arguments (PR #25242)Peter Keresztes Schmidt
2020-08-11Core/Warden: Warden refactors (PR #25235)Treeston
2020-08-07Core/CrashHandler: Skip logging stack trace of the thread writing the crash ↵Shauren
log, it was launched by windows with same context as crashing thread
2020-08-07Core/CrashHandler: Remove logging function variation depending on crash ↵Shauren
reason and print directly to file, not to temporary buffer
2020-08-07Core/CrashHandler: NULL -> nullptrShauren
2020-08-07Core/CrashHandler: #ifdef cleanup to make VS not choke when parsing, fixed ↵Shauren
file being all red in editor
2020-08-07Core/CrashHandler: Attempt to extract C++ exception object in uncaught ↵Shauren
exception hander
2020-08-04Core/Common: Move old-style pointer+size HexStr methods to Trinity::Impl ↵Treeston
where they can't hurt anyone