Commit Graph

294 Commits

Author SHA1 Message Date
Kitzunu
6031ae2eb9 chore(Core/Conf): Show better logging when fatal config options are m… (#19236)
chore(Core/Conf): Show better logging when fatal config options are missing

* Show better log when the server halts due to missing fatal config option

* Change error to warning for missing config options. As they are not errors

* Update output when autoupdater is disabled for all databases
2024-07-04 14:25:28 -03:00
Vitaly Kogogin
02b58ff02e fix(core/character-creation): get main part of cyrillic name (#18971)
fix(character/creation): get main part of cyrillic name
2024-06-29 10:56:06 -03:00
Emmanuel Ferdman
4884e33f07 fix(LICENSE): update license file paths (#18972)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-05-29 20:10:39 +02:00
Winfidonarleyan
1768e4a633 chore(Common/Debugging): change report codestyle (#18383) 2024-02-25 12:07:40 -03:00
Kitzunu
ef1b3c2ea0 chore(Core/Misc): Clean up workarounds (#17870)
* Clean advstd to use std c++20 features
* Use ABORT instead of std::abort

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-11-27 00:07:39 +01:00
Winfidonarleyan
9ecb85acb5 chore(Cleanup): added new lines to the end of files where they are not present (#17774) 2023-11-19 11:57:37 +07:00
Winfidonarleyan
e90d7a2f92 chore(Core/Misc): sort includes (#17776)
* chore(Cleanup): sort includes

* fix build

* fix build again
2023-11-18 17:51:26 +01:00
Winfidonarleyan
130d7ce148 chore(Core/Misc): delete double include (#17775) 2023-11-18 15:39:02 +01:00
Tristan 'Natrist' Cormier
c827a0c1c1 fix(Core/Misc): Mac build (#17714) 2023-11-15 13:37:14 +01:00
AG
61fd3eebf9 fix(Metric/Misc): Change default updatetime to 1s (#17627)
* Update default metric interval

* codestyle

* ready for merge

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-11-12 16:37:16 +01:00
Winfidonarleyan
c5564e1363 feat(Deps/Fmt): update fmt lib to 10.1.1 (#17643) 2023-11-05 13:15:45 +07:00
Ovahlord
52d37a927d fix(Build): nopch build (#17617) 2023-10-30 00:24:18 +01:00
Kitzunu
5357a31a01 chore(Core/Misc): warhead -> acore (#17447) 2023-10-08 09:06:57 +02:00
Mike Delago
b1c92f498a refactor(Core): Source config more aggressively from env, rephrase a few of the messages (#17114)
* refactor(Core): Let modules source config from env

* create a cache of configs from env

* Update src/common/Configuration/Config.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Update src/common/Configuration/Config.cpp

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* enforce new function name

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-09-20 22:55:46 +02:00
Kitzunu
1621da00da chore(misc): Mordenize maths (#17273) 2023-09-17 17:00:53 +02:00
Kitzunu
f1111be152 chore(misc): cleanup (#17274) 2023-09-17 10:19:09 -03:00
Kitzunu
4b21f01b91 fix(Core/TaskScheduler): warning (#17275) 2023-09-17 10:14:28 -03:00
Kitzunu
fbf7ba2191 chore(Core/enumutils): regenerate enumutils (#17087)
* chore(misc/enumutils): update enumutils

* fix build

* latest update
2023-09-16 14:26:08 +02:00
Kitzunu
66066f508b fix(Scripts/Chat): Fix chat logger (#17102)
* fix(Scripts/Chat): Fix chat logger

* Update chat_log.cpp

* Update worldserver.conf.dist

* Update chat_log.cpp

* fix build

* oopsie

* fix clang
2023-09-16 08:17:42 +02:00
Kitzunu
ecf85a2f3e chore(Core/Misc): Silence compile warning in boost::process with vers… (#17251)
chore(Core/Misc): Silence compile warning in boost::process with version 1.83

* Cherry-pick commit d8c98579d4

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-09-15 02:32:36 +02:00
Christian Lohr
c43f62f6a9 fix(Core/Conf): log error in case configuration not found for DBImport (#17066)
* fix: log error in case configuration not found

* fix: register dbimport configuration file
2023-09-10 01:15:20 +02:00
Kitzunu
5c0a051fd5 fix(Core/Crypto): fix crash (#17100) 2023-08-28 19:15:22 +02:00
Francesco Borzì
5d01b700fd refactor(Core): remove unused imports (#17094) 2023-08-28 13:39:43 +02:00
Francesco Borzì
eaa6487fc2 refactor(Scripts): remove unused imports (#17097) 2023-08-27 22:25:22 -03:00
Kitzunu
3eb2463c69 chore(Core/Misc): Correct some fmt outputs (#17091) 2023-08-27 06:23:26 +02:00
Synful-Syn
6b583089f3 fix(Core/Spell): Stop Blink from the falling player to move upward by 1y and stop moving backward when facing a wall (#16657)
* blink-bad-warps

* Change formatting of an if
2023-08-25 09:14:27 -03:00
Anton Popovichenko
d69ee90ed3 feat(Core/Config): Implement config override with env vars (#16817)
* 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
$ AC_WORLD_SERVER_PORT=8080 ./worldserver

* Add tests for env vars config
2023-08-14 22:07:43 +02:00
天鹿
df77b5f4f7 chore(core): cleanup code p3 (#16073)
* Update MMapMgr.cpp

* Update UpdateFetcher.cpp

* Update AuctionHouseMgr.cpp

* Update AuctionHouseMgr.h

* Update BattlegroundAV.cpp

* Update ChannelMgr.cpp

* Update ThreatMgr.h

* Update Player.h

* Update PlayerSettings.cpp

* Update ObjectMgr.cpp

* Update Guild.cpp

* Update Guild.h

* Update Map.cpp

* Update World.cpp

* Update boss_nefarian.cpp

* Update boss_prince_malchezaar.cpp

* Update boss_venoxis.cpp

* Update zone_elwynn_forest.cpp

* Update zulfarrak.cpp

* Update boss_novos.cpp
2023-04-24 08:13:07 -03:00
Skjalf
5dcea531b5 fix(Scripts/ShadowLabyrinth): Update Murmur script (#15970)
Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>
2023-04-17 00:19:12 -03:00
Skjalf
c07bf079f6 fix(Core/Events): fix infinite loop (#15887)
fix(Core/Events): fix inifnite loop
2023-04-08 22:48:02 -03:00
Skjalf
f887e000b7 refactor(Scripts/Mechanar): Modernize Mechano Lord Capacitus script (#15491) 2023-03-19 19:52:08 -03:00
Kitzunu
b32d3506de fix(Core/Debugging): Improve SymInitialize fail message (#15424)
* 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

* Cherry-pick commit (6e37438e5d)

Co-authored-by: ihm-tswow <76849026+ihm-tswow@users.noreply.github.com>
2023-03-17 07:19:03 +01:00
Skjalf
3fa4117195 feat(Core/BasicEvents): Add the possibility to group BasicEvents (#15369) 2023-03-12 21:26:52 -03:00
Stefano Borzì
034b521501 feat(CI): add cppcheck (#15211)
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2023-03-05 18:47:18 +01:00
Skjalf
a5b4aecd52 fix(Scripts/TheBotanica): Rework Laj (#15279) 2023-03-05 11:14:46 -03:00
Kitzunu
f039836a2f chore(Core/Misc): Change all TODO to doxygen comment (#14966) 2023-02-12 10:05:34 -03:00
M'Dic
437d93926f fix (core): macos12 depreciation workflow error / security CWE-120 (#14746)
* fix (core): macos12 depreciation workflow error

Fix workflow error message:
azerothcore-wotlk/src/common/Utilities/Util.cpp:558:9: fatal error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(buffer, "%02X", bytes[i]);

* Update BattlegroundAV.cpp

* more macos12 fixit

* Update spell_generic.cpp
2023-01-23 06:13:27 -05:00
Foereaper
5fa027a222 refactor(Core/Conf): Removal of unnecessary .dist file loading (#14707)
* Remove .dist file requirement

* Remove unnecessary string cast

* Add required variables for CI build configs

* More required variables

* Add some more default variables to reduce log output

* One last default value to cut down log spam

* Rewrite conf file bash script

This should use the standard .dest file as a template

* Change dir we copy the dest files from

* actually use the correct file name

* need to use double quotes for variables

* add missing username

* set the correct datadir

* Attempt to fix dbimport

Co-authored-by: Foereaper <foereaper@elunatech.com>
2023-01-21 14:48:22 +01:00
Mickaël Mauger
24fa3ba828 fix(MMAP/core/PathGenerator): Try to fix more water creatures (#13705)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
2023-01-02 22:26:12 +01:00
Kitzunu
4870b14b1f refactor(Core/Object): getLevel() -> GetLevel() (#14122)
* refactor(Core/Object): getLevel() -> GetLevel()

* fix build and sneak some doxygen in

* codeSTLE

* codestyle
2022-12-31 17:39:23 +01:00
Winfidonarleyan
a1a1528cb4 feat(Core/Crypto): add support OpenSSL 3.0 (#13354) 2022-11-24 01:12:20 +07:00
Dominik Nussbaumer
d87ff61f96 fix(Core/Build): correct build for GCC 12 (#13583)
* add `_` to header guard to `OPENSSL_CRYPTO_H` because openssl uses the same header guard
* remove `<T>` from constructor
2022-11-19 20:13:21 +03:00
Yehonal
77a52b8001 fix(CORE): another attempt to fix the dbimport command line warning (#13449) 2022-10-22 00:21:16 +02:00
M'Dic
e836f08cc4 Revert feat(core): Start Process and DBUpdater (#13465)
Revert "feat(CORE): for Start Process and  DBUpdater

This a selective reverts for commits:
c855e8d227 and  636df19514. To re-enable the windows build to function again while applying updates.

Update DBUpdater.cpp
2022-10-20 07:43:34 +02:00
Yehonal
c855e8d227 fix(CORE/dbupdate)): allow to pass MySQL password via env (#13404)
* fix(CORE/dbupdate)): allow to pass MySQL password via env

+ fixed devContainer override file issue
+ added authserver dry-run in our CI
2022-10-17 10:53:42 +02:00
M'Dic
491aef9eea fix (core): Header consistency (#13303) 2022-10-15 11:03:59 -04:00
UltraNix
29ea8a2e59 fix(Scripts/Temple of AhnQiraj): Adjusted Sartura's event timers. (#13187) 2022-10-05 22:36:08 -03:00
Angelo Venturini
00eea376f1 fix(Core/TempleOfAhnQiraj): Huhuran timers + EventMap::Repeat (#13182)
fix(Core/TempleOfAhnQiraj): Huhuran timers + EventMap::Repeat using std::chrono
2022-10-05 01:42:25 +02:00
M'Dic
967f8ce6d6 update (core): Startup console capitalizations (#13195) 2022-10-01 13:09:34 -04:00
Axel Cocat
9aed486eeb feat(Core/Utilities): add event emitter class (#12632) 2022-08-05 09:09:26 -04:00