Shauren
c13d26e1fa
Core/GameObjects: Use all axis rotations for gameobject model collision, not just orientation
2022-05-22 14:53:05 +02:00
Shauren
088db0103f
Core/Misc: Remove uses of std::aligned_storage (deprecated in future c++ standard)
2022-05-11 13:59:41 +02:00
Shauren
5ba1247587
Core/Logging: Remove string allocations for logs that are not going to be logged
2022-05-09 14:19:02 +02:00
Shauren
aa6a0f2431
Core/Crypto: Fixed EVP_PKEY reference counting for copied objects
...
Closes #27943
2022-05-06 12:21:59 +02:00
Shauren
849999c1b3
Codestyle fix - remove empty lines
2022-05-03 17:57:51 +02:00
Shauren
2345b33669
Core/Crypto: Fix nopch build
2022-05-03 17:51:47 +02:00
Shauren
bc87f7b337
Core/Crypto: Switch away from most deprecated openssl functions and removed upper version limit
2022-05-03 17:03:57 +02:00
Shauren
aefce9a25c
Core/Misc: Prefix include guard to avoid possible conflict with external library
2022-05-03 11:16:35 +02:00
Gosha
428d8dc3b7
Core/Vmaps: Use provided invDirection from G3D::Ray instead of calculating it ourselves ( #27883 )
...
Do not calculate inv direction, Ray has one
2022-04-18 21:41:31 +02:00
Anton Popovichenko
8447f627ba
Core/Config: Implement config override with env vars ( #26811 )
...
* 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 >
(cherry picked from commit 1ddd9dc19c )
2022-03-13 16:37:01 +01:00
Giacomo Pozzoni
51f0294c18
Core/DBLayer: Add QueueSize() method ( #26733 )
...
* 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
(cherry picked from commit 96dc110f4a )
2022-03-11 19:32:22 +01:00
Giacomo Pozzoni
2bc1bbd91d
Common/Misc: Replace old macros with modern C++ attributes ( #26613 )
...
(cherry picked from commit 5ae2a0f47d )
2022-03-11 11:48:31 +01:00
Shauren
a5f107dafc
Core/Utilities: Fixed child process console output being incorrectly cut off at first newline
2022-03-09 16:22:04 +01:00
Mikhail Redko
9e6def8ae2
Core/Console: Improve ReadWinConsole logic and cosmetic changes ( #26402 )
...
* 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 >
(cherry picked from commit 6c12f45f3b )
2022-03-09 14:55:18 +01:00
Shauren
b1f231452b
Core/Console: Fix uninitialized variable
...
(cherry picked from commit 677952fbc5 )
2022-03-08 21:58:16 +01:00
Mikhail Redko
f7441f0234
Core/Misc: Fixed utf8 encoding in console input/output. ( #26352 )
...
* 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
(cherry picked from commit 1539bed3db )
2022-03-08 15:57:30 +01:00
Giacomo Pozzoni
c2068bd423
CI/CircleCI: Expose binaries built on Circle CI as docker images in the Circle CI artifacts ( #25832 )
...
Co-authored-by: Shauren <shauren.trinity@gmail.com >
(cherry picked from commit 9af6bf15aa )
2022-03-06 00:24:04 +01:00
Mikhail Redko
81555a8ea4
Core/Misc: Remove unneeded null-terminator after switch from wchar_t to std::wstring in 309851e. Fixes creation characters with declined russian names ( #25797 )
...
Closes #23775
(cherry picked from commit eaa22b8a17 )
2022-03-05 21:46:57 +01:00
Kargatum
373ed8f46b
Core: whitespace cleanup, reduce double blank line to single ( #25795 )
...
* Core/Misc: fix double empty line
* worldserver.conf
(cherry picked from commit a32b6b8ac4 )
2022-03-05 20:07:57 +01:00
Aokromes
2f0ed35c26
Common/Metric: Fix build with PERFORMANCE_PROFILING and/or WITHOUT_METRICS
...
(cherry picked from commit 91cda8b1cd )
2022-02-27 20:08:41 +01:00
Shauren
0b846b2107
Build: Partial support for clang-cl
2022-02-16 20:22:15 +01:00
Shauren
f6e72494f1
Dep: Raise required boost versions to 1.73 on windows and 1.71 on linux and remove compatibility code for unsupported versions
2022-02-14 12:43:57 +01:00
Shauren
439b027d48
Core/Misc: Cleanup unused includes
2022-02-13 15:07:00 +01:00
Shauren
6c399c372e
Core/Misc: common PCH tuning
2022-02-11 23:24:54 +01:00
Shauren
0f40af64e6
Core/Utils: Corrected included files in Containers.h
2022-02-11 22:14:47 +01:00
Shauren
cbcd149ce5
Core/Misc: Explicitly include required headers instead of relying on them to be included by other headers
2022-02-11 14:33:35 +01:00
Shauren
f4cf0ecad6
Core/Utils: Made bool conversion operator of FlagsArray explicit
2022-02-10 12:24:47 +01:00
Shauren
5c417bec98
Core/Utils: Extract template base class out of flag128
2022-02-09 23:11:03 +01:00
Treeston
378691aaa2
[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443 )
...
(cherry picked from commit 75f9e7396e )
2022-02-05 23:42:15 +01:00
Winfidonarleyan
9fe5a7297d
Dep/fmt: update fmt library to 7.0.3
...
(cherry picked from commit 9d96e4852a )
2022-02-05 22:50:43 +01:00
Treeston
013c9b2cb7
Core/ChatCommands: make ExactSequence more readable
...
(cherry picked from commit feaaa595ca )
2022-02-05 21:29:53 +01:00
Treeston
e0e3bae82c
Core/Authserver: Removal of sha_pass_hash, compatibility fields, and everything that uses them (PR #25156 )
...
(cherry picked from commit bcdbdd6f23 )
2022-02-05 13:29:21 +01:00
Treeston
da8a66a05e
Common/Util: Trinity::StringTo<double> support (PR #25364 )
...
(cherry picked from commit f45aa5cac1 )
2022-02-04 23:50:25 +01:00
Treeston
0d54a5ecb4
Core/Misc: Add support for custom link colors. Clean-up hyperlink validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs.
...
(cherry picked from commit eaf8fa75a1 )
2022-02-04 23:49:59 +01:00
Treeston
c4b287c7bf
Core/Misc: DBC std::array refactors, and |Hachievement unit tests
...
(cherry picked from commit 3fbbe7cfbe )
2022-02-04 23:37:29 +01:00
Shauren
7cd98cd7d2
Core/Config: Restore ability to load additional config files for custom scripts
...
(cherry picked from commit c1e4cfd07e )
2022-02-04 13:05:06 +01:00
Giacomo Pozzoni
99ee958e0a
Core/Misc: Fix issues reported by static analysis ( #25351 )
...
* Core/Misc: Fix issues reported by static analysis
* Core/Vmaps: Code cleanup after e777161888
(cherry picked from commit cfc8f7b442 )
2022-02-04 12:18:15 +01:00
Treeston
1303ca0e7e
Common/Utilities: Make StringTo<bool>'s signature match that of the other integral types, making for easier templating. Default behavior unchanged.
...
(cherry picked from commit f54cec4db7 )
2022-02-04 12:06:26 +01:00
Treeston
9f97fdd31a
Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327 )
...
(cherry picked from commit 534a2388b7 )
2022-02-04 00:27:14 +01:00
Treeston
6e45c371c4
Common/Utilities: Properly read std::from_chars documentation and check for out_of_range errors.
...
(cherry picked from commit 7478c2c65a )
2022-02-04 00:27:14 +01:00
Treeston
be9dadc189
Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR #25335 )
...
(cherry picked from commit cd30e0b86c )
2022-02-04 00:27:13 +01:00
Treeston
03b5c17863
Common/Utilities: Move EnumUtils' implementation struct from Trinity::Impl to Trinity::Impl::EnumUtilsImpl. This avoids confusing name clashes for other implementations in sub-namespaces of Trinity::Impl.
...
(cherry picked from commit 91744de316 )
2022-02-04 00:27:12 +01:00
Treeston
0473beff2b
Core/Misc: std::string -> std::string_view in a bunch of places, notably chat commands and Util.h
...
(cherry picked from commit a41bbd9ad9 )
2022-02-04 00:27:12 +01:00
Shauren
015cee5f27
Core/Networking: Initialize MPSCQueueIntrusive dummy node without undefined behavior
...
(cherry picked from commit e1289805fc )
2022-02-04 00:27:11 +01:00
Shauren
4064b22dd7
Core/Util: Added another template utility - find_type_if
...
* Trinity::find_type_if - Find a type matching predicate in a given template parameter pack
(cherry picked from commit 84a87d87bf )
2022-02-03 00:24:33 +01:00
Shauren
c37984fc6a
Core/Util: Added new utilities
...
* 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
(cherry picked from commit 7c08fc863a )
2022-02-03 00:24:10 +01:00
Peter Keresztes Schmidt
3c82863c52
Core/ChatCommands: Check whether a passed numeric enum value is valid ( #25285 )
...
(cherry picked from commit 4286e7aa02 )
2022-02-03 00:18:48 +01:00
Peter Keresztes Schmidt
3923650aeb
Core/ChatCommands: Add support for enum type arguments (PR #25242 )
...
(cherry picked from commit 5e40eb20e2 )
2022-01-26 22:13:06 +01:00
Treeston
319ddd9bcd
Core/Warden: Warden refactors (PR #25235 )
...
(cherry picked from commit 6116e5b385 )
2022-01-26 19:42:11 +01:00
jackpoz
35755ba343
Core/Misc: Fix Windows 32 bits build
...
Close #25789
(cherry picked from commit 1cafd4ef74 )
2022-01-26 18:48:08 +01:00