Commit Graph

46 Commits

Author SHA1 Message Date
Kitzunu
bbadc32bea Revert Visibility Notifier changes (#17682)
* Revert "fix(Core/Grid): Implement missing GridUnload setting (#17569)"

This reverts commit 79b39f9655.

* Revert "fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation (#17480)"

This reverts commit 60e27511c5.

* Revert "fix(Core): GridCleanUpDelay Log (#17436)"

This reverts commit 90b16ca065.

* Revert "feat(Core/Grids): Implement visibility notifier (#15919)"

This reverts commit 2779833768.
2023-11-12 00:48:49 +01:00
AG
79b39f9655 fix(Core/Grid): Implement missing GridUnload setting (#17569)
* Implement GridUnload setting

* Minor fixes

- Use GetOption instead of deprecated GetBoolDefault.
- Added a missing check for instances in LoadMap
- Replaced some numbers with global defines

* Possible crashfix + minor improvements

- Initialized initialOrientation which I had forgotten (likely cause of crash)
- Readded a previous check in UpdateSplineMovement
- Made i_objectsToRemove and i_worldObjects tos sets as they were previously, instead of unordered_set.

* Update worldserver.conf.dist

* Fix high CPU usage with preload grid enabled.

This should be it.
2023-10-26 19:32:15 -03:00
Kitzunu
ec724cda89 chore(Core/Conf): Remove unused config (#17544) 2023-10-20 15:26:07 +02:00
Kitzunu
5357a31a01 chore(Core/Misc): warhead -> acore (#17447) 2023-10-08 09:06:57 +02:00
AG
2779833768 feat(Core/Grids): Implement visibility notifier (#15919)
* Cherry-picked from TrinityCore (unable to find author)
2023-09-28 22:28:28 +02:00
Stefano Borzì
168192b731 fix(CI): cppcheck failure step (#17240)
* feat: add cppcheck for scripts

* fix: cppcheck step failure

* trigger cppcheck build, it should fail

* fix: cppcheck should succeed

* fix: cppcheck
2023-09-21 12:43: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
c709e2e7d3 chore(Worldserver/Config): Clean up and reorganize config file (#17272)
* chore(Worldserver/Config): Clean up and reorganize config file

* Update worldserver.conf.dist

* \n\n\n
2023-09-17 10:25:32 -03: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
280822cb83 chore(Deps/Misc): Print an EOL Deprecation warning for MySQL 5.7 and … (#17101)
chore(Deps/Misc): Print an EOL Deprecation warning for MySQL 5.7 and OpenSSL 1.1
2023-08-29 00:24:41 +02:00
Francesco Borzì
5d01b700fd refactor(Core): remove unused imports (#17094) 2023-08-28 13:39:43 +02:00
Kitzunu
12456b5496 refactor(Misc/Conf): DBErrors is now Errors (#17053)
* refactor(Misc/Conf): DBErrors is now StartupErrors

* pt2

* Update ci-error-check.sh

* Update ci-error-check.sh
2023-08-22 12:08:53 +02: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
Axel Cocat
5ba2c18ce6 feat(Core/Conf): add CONFIG_ARENA_QUEUE_ANNOUNCER_DETAIL (#16850)
* feat(Core/Conf): add CONFIG_ARENA_QUEUE_ANNOUNCER_DETAIL

* fix: bad copy paste

* add sql

* fix bad copy paste above again

* fix: move lang values

* Update rev_1690640715748711400.sql

* Update rev_1690640715748711400.sql

* Rename rev_1690640715748711400.sql to fix.sql

* reaching, maybe fix (?) c:

* love me god damn it

* update sql file

---------

Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-08-09 05:42:50 -03:00
Maria-sequel
1cd181f923 feat(Core/Config): Add Legacy Arena Points config option (#16940)
* feat:(Core/Config): Add legacy Arena points option

* Update IWorld.h

* Update World.cpp

* Update World.cpp

* typo

* Update worldserver.conf.dist

* Update worldserver.conf.dist

* Update World.cpp

* Update World.cpp

* defaults to true

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

* config text

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

* Update src/server/apps/worldserver/worldserver.conf.dist

* Update src/server/apps/worldserver/worldserver.conf.dist

* Update src/server/game/World/World.cpp

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2023-08-09 00:44:44 -03:00
Kitzunu
c866e17406 refactor(Core/Motd): Move motd to MotdMgr (#16933) 2023-08-06 23:02:54 +02:00
Axel Cocat
642bd1936b fix(Core/Arena): allow crossfaction arena teams (#16823) 2023-07-27 08:37:20 -03:00
Angelo Venturini
8830bd499e fix(Core/Worldserver): correct macros platform (#16640) 2023-06-28 16:50:32 +07:00
Mickaël Mauger
6edcf05cc2 fix(Core/AuctionHouse): Fix AH searches with high number of auctions (#13467)
Fix AH searches with high number of auctions
2023-06-27 20:11:21 +02:00
Kitzunu
3b44d07f18 chore(Core/Conf): Move DungeonFinder.OptionsMask to rest of lfg stuff (#16398)
* chore(Core/Conf): Move DungeonFinder.OptionsMask to rest of lfg stuff

* fix(Script/Spells): Move some DK and Druid to spellscripts

Co-Authored-By: joschiwald <736792+joschiwald@users.noreply.github.com>

* move

Co-Authored-By: joschiwald <736792+joschiwald@users.noreply.github.com>

* more

* Revert "fix(Script/Spells): Move some DK and Druid to spellscripts"

This reverts commit fbb1cbdf4f5f9349f150612176925a218ebb2b06.

* Revert "Revert "fix(Script/Spells): Move some DK and Druid to spellscripts""

This reverts commit 626bde3369a7d556c3a056f47054c63725524ce8.

* Update spell_dk.cpp

* Revert "Update spell_dk.cpp"

This reverts commit d8eefa6b878006fefd28159c1dbeedc03b34fd32.

* Revert "Revert "Revert "fix(Script/Spells): Move some DK and Druid to spellscripts"""

This reverts commit 8ad785710499c61ab8aa06028b91fcb583896e67.

* Revert "Revert "fix(Script/Spells): Move some DK and Druid to spellscripts""

This reverts commit 626bde3369a7d556c3a056f47054c63725524ce8.

* Revert "more"

This reverts commit b1b2f56ac72e3ac8cd160da3b59df776d6a7a469.

* Revert "move"

This reverts commit 7a4b45b007a257c267e7c3f11e15b80081d9359f.

* Revert "fix(Script/Spells): Move some DK and Druid to spellscripts"

This reverts commit fbb1cbdf4f5f9349f150612176925a218ebb2b06.

---------

Co-authored-by: joschiwald <736792+joschiwald@users.noreply.github.com>
2023-06-08 22:34:02 -03:00
Keller (KJack)
7fcb57e5ab feat(Core/Loot): Add Rate.Drop.Item.GroupAmount to increase loot generated from loot groups (#16220)
* Adds the `Rate.Drop.Item.GroupAmount` setting to the world config. Causes top-level loot groups to drop multiple items. Does not affect references.

* Don't multiply a group if a quest item gets selected. Avoids strange situations like Arcanist Doan having three hearts.

* Resolve syntax error.

* Fix whitespace

* Fix code style issue
2023-05-14 12:26:12 +02:00
M'Dic
ab2c062f03 feat(core\dbc): item.dbc, sItemStore, item_dbc, item enforcement conf, subclass fix (#14675)
feat (core\log\db): item.dbc and enforcement

dbc enforcement partial pick from tc: 0c44bd33ee

Custom Item for testing by menevia16a (SPP DEV VEIL)

feat (core\log\db): item.dbc and enforcement

Update Item.sql

Update DBCStores.cpp

Update World.cpp

Update ObjectMgr.cpp

further replacement from template to dbc lookup

further logging and implementation

cherry pick tc fd26c3c87c

replace with db lookup

update (sql): Murder all the backticks

line break fixit

fix (item_template): fix incorrect subclass

fix incorrect subclass matching with dbc enforcement

update: log correction for sub class

update log correction for sub class

add subclass to dbc enforcement

add subclass dbc enforcement since it is part of the item.dbc item_dbc

update (log): additional log

Co-authored-by: blub <trinity.michael_vincent@gmx.eu>
Co-authored-by: Shocker <511388+shocker@users.noreply.github.com>
Co-authored-by: Veil <1913466+menevia16a@users.noreply.github.com>
Co-authored-by: Shocker <43253032+shockerqt@users.noreply.github.com>
2023-04-28 01:26:44 +02:00
Kitzunu
f80fb9b482 fix(Core/World): Remove artificially high minimal update intervals an… (#15422)
fix(Core/World): Remove artificially high minimal update intervals and Allow specifying minimum world updates diff in config

* Allow specifying minimum world updates diff in config
* Remove artificially high minimal update intervals

* cherry-pick commit (29a4153f00)
* cherry-pick commit (de4920de81)
* cherry-pick commit (32cef906b0)

Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2023-04-02 15:31:50 -03:00
Kitzunu
40cce659e9 chore(Conf/Misc): Make it easier to find FreezeDetector (#15451) 2023-04-02 15:31:19 -03:00
Kitzunu
9b858e4653 chore(Core/Misc): For Azeroth! (#15155) 2023-02-21 21:12:13 +01:00
Kitzunu
99f5fa79aa refactor(Core/Autobroadcast): Move autobroadcast to it's own file (#15147) 2023-02-21 20:18:25 +01:00
Kitzunu
0c4feb6744 refactor(Core/Motd): Move motd from conf to db (#15111) 2023-02-20 22:07:26 +01:00
Kitzunu
5a9aeada12 feat(Core/DBC): Implement NamesProfanity and NamesReserved DBC (#14956) 2023-02-12 10:51:42 +01:00
UltraNix
da70db415b fix(Core/Config): Added new config to make pet's health be modified b… (#14051) 2023-02-11 00:08:28 -03:00
Revision
1c523bd611 feat(Core/Config): Allow disable points of interest for quests (#14501) 2023-01-04 20:30:57 -03:00
Gultask
f65d229823 Revert "fix(Core/Config): Set default corpse decay for normal creatures to 5 …" (#14474) 2023-01-02 22:27:22 +01:00
UltraNix
a101f16124 fix(Core/Config): Set default corpse decay for normal creatures to 5 … (#14039) 2022-12-29 12:09:30 +01:00
ZhengPeiRu21
06c458e748 feat(Core): EnableLowLevelRegenBoost config option (#13035)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2022-12-11 04:53:10 +01:00
Winfidonarleyan
a1a1528cb4 feat(Core/Crypto): add support OpenSSL 3.0 (#13354) 2022-11-24 01:12:20 +07:00
ZhengPeiRu21
5a7822282f feat(Core): Config to disable all Wintergrasp processing (#13086)
* feat(Core): Config to disable all Wintergrasp processing

* Use 2 instead of -1 - configs are parsed as uint

* Fix build warnings
2022-11-01 06:22:09 -03:00
Yehonal
77a52b8001 fix(CORE): another attempt to fix the dbimport command line warning (#13449) 2022-10-22 00:21:16 +02:00
Kargatum
8a334e8210 feat(Core/DB): add support range loop for mysql result (#13355) 2022-10-10 02:46:48 +07:00
M'Dic
967f8ce6d6 update (core): Startup console capitalizations (#13195) 2022-10-01 13:09:34 -04:00
ZhengPeiRu21
dfa49e9433 feat(Core): Hide Game Object Quest Markers Config Option (#13013) 2022-09-21 08:29:54 -04:00
Benjamin Jackson
6a357da28c fix(Core/Player): Give Death Knight's twenty silver on character creation (#12974)
* Make sacrifices to workflow god
Best note ever ^^
2022-09-21 07:32:33 -04:00
ZhengPeiRu21
f01459553f feat(Core): Hide Quest Sparkle Config Option (#13005) 2022-09-13 21:40:27 -03:00
M'Dic
8b9541873a feat(Core/ChatHandler/Conf): Flood Control Addon Messages (#12603)
* feat(Core/ChatHandler): Flood Control Addon Messages

Original Closed PR by @Kitzunu
https://github.com/azerothcore/azerothcore-wotlk/pull/11675

Cherrypicked TC:
cherry-pick commit (TrinityCore/TrinityCore@5384fc1)
cherry-pick commit (stoneharry/TrinityCore@a0629fc)

Co-Authored-By: stoneharry 3818405+stoneharry@users.noreply.github.com
Co-Authored-By: Shauren shauren.trinity@gmail.com
Co-Authored-By: stoneharry <3818405+stoneharry@users.noreply.github.com>
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* update: (pr): Review Response

* update: (core): Chathandler

No reason why this case should even exist. Previous or current.  This cast is under two sided interations which will always lead to you being in a group of some sorts. there is literally zero sense having a above or equal to level 80 if statement here.

* update (cleanup): Code Style

suggestion per @Nefertumm

Co-Authored-By: Angelo Venturini <nefertum.dev@protonmail.com>

Co-authored-by: stoneharry <3818405+stoneharry@users.noreply.github.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Angelo Venturini <nefertum.dev@protonmail.com>
2022-08-17 10:37:34 -04:00
ZhengPeiRu21
a6e8f060a5 feat(Core/Config): Configurable Water Breath Timer (#11945)
* feat(Core/Config): Configurable Water Breath Timer

* Config Formatting

Add missing linebreaks

* Use int instead of float for water breath timer

* Correctly get CONFIG_WATER_BREATH as Int instead of Float value

* Move CONFIG_WATER_BREATH_TIMER to WorldInt configs

* More logical WaterBreath configuration
2022-07-10 14:14:27 -04:00
Kitzunu
73bd2b446c fix(Core/Groups): Level restriction on allowing raid groups (#12110) 2022-06-21 13:18:03 -03:00
Kargatum
94528cd44d feat(Tools/DbImport): implement separated app for importing DB (#11614) 2022-06-09 08:23:38 -03:00
Kargatum
4fbec972a8 refactor(Cmake): add support build selected applications and tools (#11836) 2022-05-31 17:05:39 +07:00