Commit Graph

503 Commits

Author SHA1 Message Date
Shauren 1a41281e37 Core/Misc: Replace std::ostringstream based formatting with Trinity::StringFormat where possible in common and database projects 2024-10-16 18:58:45 +02:00
Traesh adbe74a1a4 Core/DataStores: Load FlightCapability.db2 2024-10-06 14:36:32 +02:00
Shauren 49ab2bbe38 Core/Players: Prevent creation of characters with duplicate names
Closes #30299
2024-10-03 12:22:22 +02:00
Shauren 726412d983 Core/Database: Fix database connections failing to open over named pipes for users using caching_sha2_password authentication plugin if this is the first time this user attempts to log in since starting MySQL server 2024-09-25 10:46:46 +02:00
Shauren fff12eafdf Core/Common: Catch and log child process creation errors 2024-09-23 14:17:33 +02:00
Shauren 7ac0c685dd Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings into compile errors 2024-09-20 13:19:42 +02:00
Shauren 11a832fa8b Core/Database: Change database async thread shutdown to fix some corner cases leading to servers being stuck on shutdown (for example with exit() call) 2024-09-19 13:38:49 +02:00
Shauren f270686201 Core/Common: Output stdout/stderr from child process without waiting for it to finish 2024-09-14 14:45:40 +02:00
Shauren 3e28ee080a Core/Loot: Implemented currency loot 2024-08-26 15:02:22 +02:00
Shauren b257b244cb Core/DBUpdater: Use utf8mb4 in dbupdater --default-character-set 2024-08-24 21:42:08 +02:00
Shauren c4b710446d Core/Realms: Realmlist refactors
* Removed global realm variable from World and use RealmList everywhere
* Match auth build key with client version
* Restored allowedSecurityLevel checks for realmlist packet building
* Restored updating population field, mysteriously removed 15 years ago in f20b25d1c9
2024-08-18 18:59:58 +02:00
Shauren df1ec76d54 Core: Updated to 11.0.2 2024-08-16 00:03:22 +02:00
Shauren d1ffe61727 Core/Players: Implemented hero talents 2024-08-10 12:01:47 +02:00
Shauren a7c8ac3505 Core/Players: Fixed trait configs getting into invalid state after talent tree changes between client patches
Closes #29398
2024-08-04 18:24:10 +02:00
Shauren df51150381 Core/DataStores: Updated to 11.0.0 2024-08-02 14:40:12 +02:00
Shauren e59eef5432 Core/PacketIO: Updated to 11.0.0 2024-08-02 13:25:41 +02:00
Shauren ab5fab5ee9 Build: Fixed CMake 3.30 FindBoost deprecation warning 2024-07-18 12:42:31 +02:00
Shauren 81bec6954f Core/Logging: Minor internal refactor
* Avoid formatting to output with fprintf
* Use vector instead of unordered_map to store appenders in Logger
2024-07-16 16:31:40 +02:00
Shauren 77fe2745fe Build: CMake cleanup
* Migrate all add_definitions to target_compile_definitions
* Remove -D from preprocessor definitions added by target_compile_definitions (unneccessary, cmake strips it anyway)
* Fixed NO_BUFFERPOOL not being set on g3d if jemalloc is used
* Moved library/compiler specific compile flag settings spread all over various CMakeLists to their related library/compiler file
* Remove ancient manual link flag settings for worldserver
2024-07-15 15:24:35 +02:00
Shauren d4998bd04a Core/DBLayer: Add field metadata getters to query result classes 2024-07-14 14:54:51 +02:00
Shauren f895d04b7d Core/Database: Fixed WITH_COREDEBUG + WITH_DYNAMIC_LINKING incompatibility on windows 2024-07-05 13:28:09 +02:00
Meji d51d6b0abe Core/AreaTriggers: Check actionset flags for client areatriggers to allow some areatriggers to trigger while dead (#30042) 2024-06-23 20:41:18 +02:00
Shauren 2b4c7dec29 Core/Database: Rewrite QueryCallback with std::variant 2024-06-12 23:39:27 +02:00
Shauren 7fcb126fcb Core/Database: Remove future/promise typedefs from a public header (these are internal to database project) 2024-06-12 21:41:29 +02:00
Antonio Martín Berti 15e995b3b3 Core/Misc: Remove separate storage for custom messages in exception types and store it directly in base class from <stdexcept> (#30012) 2024-05-29 19:03:37 +02:00
Shauren 1c3268155d Core/AreaTriggers: Implement height check for polygon db2 areatriggers 2024-05-27 18:53:47 +02:00
Meji b070e63fa8 Core/AreaTriggers: Fix triggering of client areatriggers for some shapes 2024-05-27 18:53:47 +02:00
Shauren 468a06baf0 Core: Update to 10.2.7 2024-05-08 20:55:51 +02:00
Shauren 78aef0bd75 Core/Updater: Fix gcc build (this time for older gcc versions that didn't trigger the warning fixed in previous commit) 2024-05-06 00:43:06 +02:00
Shauren b288fceb79 Core/Updater: Fix gcc warning 2024-05-06 00:38:05 +02:00
Shauren a39d0db9ec Core/Spells: Implemented evoker empower spell mechanic 2024-05-01 22:26:53 +02:00
Shauren cc92417844 Core/Items: Implemented packets setting up inventory cleanup parameters 2024-04-29 00:06:02 +02:00
Shauren cfa838df5d Core/Misc: Support boost 1.85 2024-04-22 11:52:58 +02:00
Shauren 69da702b93 Core/Items: Implemented CreateTime item field and changed refund/soulbound trade timers to also count time offline 2024-04-12 00:18:20 +02:00
Gosha 8c274a8e8d Core/Items: Fix loading secondaryItemModifiedAppearanceSpec5 (#29917) 2024-04-11 22:45:02 +02:00
Meji 2ce4068459 Core/SAI: Added support for StringIds to creature and gameobject targets (#29910)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2024-04-11 10:15:46 +02:00
Shauren 404bb5b3c2 Core/DBLayer: Support retrieving DATE/DATETIME/TIMESTAMP column values directly without casting in sql 2024-04-10 13:59:19 +02:00
Meji def601b4ff Core/Creatures: Changed the spawn health field in creature table to a percentage (#29801) 2024-03-30 20:21:28 +01:00
Shauren c2ac37125b Core/Players: Use CharBaseInfo.db2 data to determine appropriate race for mercenary mode transforms 2024-03-28 21:11:59 +01:00
Shauren ac5aee6a98 Core: Updated to 10.2.6.53840 2024-03-21 21:07:23 +01:00
Shauren fccf6fb72b Core/Objects: Implemented vignettes 2024-03-09 00:54:27 +01:00
Shauren 5c44ac1787 Core/Database: Silence deprecation warning on mysql_stmt_bind_param 2024-03-01 11:29:09 +01:00
Ovahlord c541eda54d Core/Creatures: implemented most movement related static flags and migrated existing movement data into static flags (#29541)
* implemented CREATURE_STATIC_FLAG_AQUATIC - creatures cannot leave liquids
* implemented CREATURE_STATIC_FLAG_AMPHIBIOUS - creatures can enter and leave liquids but remain on the ocean floor when swimming is not enabled until engaged
* implemented CREATURE_STATIC_FLAG_FLOATING - creatures have their gravity on spawn / reset disabled
* implemented CREATURE_STATIC_FLAG_SESSILE - creatures are rooted in place
* implemented CREATURE_STATIC_FLAG_CAN_SWIM - creature can swim in liquids
* implemented CREATURE_STATIC_FLAG_3_CANNOT_SWIM - Amphibious creatures cannot toggle on swimming
* implemented CREATURE_STATIC_FLAG_3_CANNOT_TURN - Creatures cannot turn at all
* implemented CREATURE_STATIC_FLAG_4_PREVENT_SWIM - Amphibious creatures won't toggle on swimming until their victim starts leaving the ocean floor
* partially implemented CREATURE_STATIC_FLAG_3_CANNOT_PENETRATE_WATER
* deprecated CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE as this flag was a hackfix to a wrong implementation that is now gone
2024-02-29 14:43:37 +01:00
Shauren f70a5817e1 Core/Creatures: Move immunities to separate table and implemented setting immunties to dispel, spell effects, aura types, aoe and chain targeting 2024-01-30 21:29:55 +01:00
Shauren 25dc8de3eb Core/Bnet: Prevent crashes cauised be invalid values in salt column in battlenet_accounts 2024-01-16 14:16:31 +01:00
ModoX 12186ef857 Core/Waypoints: Refactor to split data into path and node related info in db (#29506) 2024-01-05 17:56:19 +01:00
Shauren a2be97414b Core/Database: Fixed a shutdown crash happening if worldserver did not fully start up (for example applying a db update failed) 2023-12-29 00:31:55 +01:00
Shauren 88a7886e0d Fix bfbda8dcce 2023-12-28 19:40:48 +01:00
Shauren 3a9cbd217a Core/Database: Replace union with std::variant in Transaction 2023-12-27 00:14:12 +01:00
Shauren 623202d68e Core/Bnet: Implemented new SRP6 variants, and migrate old sha_pass_hash in battlenet_accounts to separate salt and verifier columns
* passwords can now be case sensitive and up to 128 characters long
2023-12-26 14:55:15 +01:00