aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2021-11-21Core/Utils: Handle UTF-8 conversion errorsjackpoz
Replace the output string when a UTF-8 conversion error happen with an error message instead of using an empty string, swallowing any message that the caller wanted to log. (cherry picked from commit bdb7e6e5e81e0d9376c9c803bae9da470b02d8cd)
2021-11-16Core/Utils: some code style adjustments, 6d6077e follow-upTreeston
(cherry picked from commit 4c3af3b636d5e9279fb694c9d9a5a4422ad773d0)
2021-11-16Core/Utils: Fix Unicode handlingTreeston
(cherry picked from commit 6d6077e36fe9c5cb8ea8e4f981d637e72ee87037)
2021-11-16Core/Misc: Fix vsnprintf usage in ASSERT()jackpoz
Fix vsnprintf to follow standard definition and not some old VC++ behavior, not requiring to include the '\0' character in the count parameter (cherry picked from commit eee1f2cadf8174caca4849c22ba1fb8f12fc9e08)
2021-11-16Core/Misc: Log more information in asserts (#22783)Giacomo Pozzoni
* Core/Misc: Log more information in asserts Add a new function GetDebugInfos() to types that could trigger an ASSERT() to easily include more useful information in crashlogs. This is an initial commit that requires many more commits to implement the new GetDebugInfos() function in all required types. If the type doesn't have the function, the global default one is picked which doesn't log anything. * Core/Misc: Fix dynamic build Add missing attribute for dynamic build * Core/Misc: Fix gcc/clang build * Core/Misc: Rename GetDebugInfos() to GetDebugInfo() * Core/Misc: Fix FormatAssertionMessage() adding an extra '\0' * Core/Misc: Add GetDebugInfo support to Unit * Core/Misc: Add GetDebugInfo support to Creature * Core/Misc: Add more info to GetDebugInfo for Creature * Core/Misc: Add GetDebugInfo support to GameObject * Core/Misc: Add GetDebugInfo support to Player * Core/Misc: Add more GetDebugInfo info * Core/Misc: Add GetDebugInfo support to Item * Core/Misc: Add GetDebugInfo support to Bag * Core/Misc: Add GetDebugInfo support to Transport * Core/Misc: Add GetDebugInfo support to TempSummon, Minion, Guardian, Pet * Core/Misc: Add GetDebugInfo support to Map, InstanceMap * Core/Misc: Add GetDebugInfo support to Spell * Core/Misc: Fix build warning * Core/Misc: Add GetDebugInfo support to Aura * Core/Misc: Add GetDebugInfo support to UnitAI (cherry picked from commit 9a924fb9d557434c5a2e4020c80db6e6bfe466ad)
2021-11-15Fix invalid arguments to string format in Trinity::FatalWarpten
Isn't whatever is used nowadays to make this stuff safe supposed to prevent this sort of stuff? (cherry picked from commit 9bf69b3849a9d78f3e8d174ed6367a259aaf876f)
2021-11-15Core/Misc: Partial merge of 3.3.5-dbedit:Treeston
- Added SmartEnum.h for enum iteration, stringification, and more, courtesy of krabicezpapundeklu/smart_enum - Moved a bunch of enums in SharedDefines.h to the new system - Miscellaneous utility methods ported Core/Util: Redesign SmartEnum to properly work for large enums (>64 entries) and play nice with IDEs (PR #22768) (cherry picked from commit 338e8ba0fea8b4b15120c96fff15a6c4b1a52593) (cherry picked from commit f7ca0877a3736000a6e3b4ed09ac5f08b4d8e3f0) (cherry picked from commit 207093475a177e9fd29696e80fdd06a11324782d) (cherry picked from commit ee68cf33921944fd3f8c188044906998cf10ff2a) (cherry picked from commit c16d461e16f0704bb11040faff30953d33ba2188) (cherry picked from commit f6b0d99e2c0bc22b44d6f3cfdae50cbba7d51de8) (cherry picked from commit bc1f456125c1b6c90617a514152d69c40ce64886)
2021-11-12Core/Misc: Add a missing include of Windows.h to Errors.cppTreeston
(that last one wasn't me!) (cherry picked from commit 1dc675f0a17d9c7d1b6e9a07d5c25cdd79bb8788)
2021-11-04Core/DataStores: Add a bit more info to db2 file loader sign check assertionsShauren
2021-10-31Core/Misc: FIx a GCC warningShauren
2021-10-31Core/Chat: Unify chat hyperlink parsing (PR #22417)Treeston
- Validate most link properties all the time - If enabled, also validate link text (needs locale) - Instead of blocking the entire message, sanitize it - Apply filtering to DND/AFK messages. Closes #22399 (cherry picked from commit f27284594b18000a1c098262728fb19fdc63fc6c)
2021-10-26Core/Conversations: Dropped time fields and calculate them using db2 data ↵ModoX
(#27151)
2021-10-25Scripts/Commands: New argument parsing methodology (PR #22363)Treeston
- Detect the arguments accepted by the command handler - Tokenize out those arguments automatically and feed them to the handler - Unmatched rest of the string can be accepted by trailing char const* or CommandArgs* (cherry picked from commit 66a87c4642d25f27ca24254cfeb0a0c4b21036b1)
2021-10-24Core/DataStores: Hackfix broken db2 files that have invalid id tablesShauren
2021-10-23Core/CrashHandler: Include assertion messages in crash reportsShauren
(cherry picked from commit 62db1fb683c13b8dde0cc359564e090e0594658f)
2021-10-23Utilities/EventProcessor: Added a overload to AddEventAtOffset accept rand timeKeader
(cherry picked from commit 4d9c36c8c3bc59afb74ffe336ff121c06812d645)
2021-10-15Common/Containers: Eliminate a edge case that could potentially lead to ↵Treeston
object invalidation. (cherry picked from commit 64a61e03ab0799b5437ddb9fe702c4912f3f9dd9)
2021-10-14Misc: Pass std::chrono types by value everywhere.Treeston
(cherry picked from commit 2ef9d301f0869b443122e2ba543af054c5b0e53c)
2021-10-06Core/Misc: Fix another gcc warningShauren
2021-10-06Common/Misc: Clean-up a GCC sign comparison warningTreeston
(cherry picked from commit 643b9209f8f1bc90fa4e26fc06e95f89b2b04899)
2021-09-26Core/Misc: movement header cleanupccrs
(cherry picked from commit f9914caefc59f36ab7583432442a26b29124b7f1)
2021-09-25Core/Maps: Adjusted logic in GetFullTerrainStatusForPosition to closer match ↵Shauren
what the client does regarding being inside WMOs Closes #21625 Closes #21624 Closes #21516 (cherry picked from commit b9c6bbb51df0ed10f74617482740fedb91ff5366)
2021-09-24Core/Movement: Replace old TargetedMovementGenerator into ↵Treeston
ChaseMovementGenerator and FollowMovementGenerator, full rewrite for both. - Chase to angle is now functional. Pets use this to chase behind the target. Closes #19925. - Chase to arbitrary range interval works. Not used anywhere, but you can technically make hunter-like mobs. - Pets now follow the hunter cleanly and without stutter stepping. Also fix some other things. Closes #8924. (cherry picked from commit 2a84562dc85516f432bb1e5de9add23c28b26ce4)
2021-08-31Core/Misc: Fix windows nopch buildShauren
Closes #25363 (cherry picked from commit 6ad58d604a63bacc13ee92c525189931d41d1e91)
2021-08-08Core/Misc: Add PERFORMANCE_PROFILING CMake optionjackpoz
Add a new CMake option called PERFORMANCE_PROFILING that should be used only when profiling the performance. This option is unsupported, do not report any issue happening when enabling this option. (cherry picked from commit db5c9867e2ffde3657f53bc155b474c5d46884dd)
2021-06-19Core/Movement: Creatures' idle movement generator can no longer override ↵Treeston
player mover control. Tagging #20310, partial fix. (cherry picked from commit d02f481d9ac8e1d1a7716368f609d53a5add0960)
2021-06-13Core/Misc: Add container utility function ↵Shauren
Trinity::Containers::EnsureWritableVectorIndex to replace if (i >= vec.size()) vec.resize(i + 1) copypaste everywhere
2021-05-29Fix buildShauren
2021-05-29Core/Maps & Extractors: Move copypasted map file headers into a single ↵Shauren
shared file and replace #defines with enums
2021-05-29Core/Misc: Rename MapDefines.h to MMapDefines.h as it contains mmap defines ↵Shauren
exclusively
2021-05-27Core/Logging: Add functions that allow creating loggers and appenders from ↵Shauren
other sources than config files
2021-05-24Core/Misc: Add another boost hack. Fixes bnetserver/worldserver -c command ↵Shauren
line parameter when path contains spaces
2021-05-21Core/Vmaps: Fixed crash in unloading vmapsShauren
Closes #26536
2021-05-03Core/Chat: Chat translation improvementsShauren
* Remove hyperlinks from translated chat messages * Implement case preservation rules depending on receiver client locale
2021-04-25Core/Vmaps: Extract more doodad setsShauren
2021-04-25Core/Vmaps: Reduce memory used by vmaps, part 2Shauren
2021-04-25Core/Vmaps: Reduce memory used by vmaps (and their size, slightly)Shauren
2021-04-16Core/Crash reporting: Add support to char* arraysjackpoz
Add support to char* array showing the string value instead of the pointer address (cherry picked from commit 4c0c4ab271ddc2d200cd9ccda98e16553dcaf391)
2021-04-15Core/Entities: Fix some weird movement due to los issues (#21125)Jeremy
* Core/Entities: Fix some weird movement due to los issues - Made LoS check use collisionHeight instead of midsection. Value was too low. - Gnomes will now have a breath bar more quickly than for example a tauren. - Changes have been made to checking for ground z as well, some tweeking might be needed but removed most of the scattered +2.0f/+0.5f/we * Add 0.05f to isInAir check in Creature::UpdateMovementFlags (cherry picked from commit e42903ec16f4849b71bc8736e3151a1e11d3cd25)
2021-03-15Shared/Metric: Fix crash on shutdownjackpoz
Fix crash on shutdown with metrics enabled but InfluxDB stopping before worldserver (cherry picked from commit 45b2bcfaf266cac74806ed71f32b8dc02cd2321e)
2021-03-05Core/Spells Handle auras 328 & 396 (SPELL_AURA_TRIGGER_SPELL_ON_POWER_*)Traesh
2021-03-02Core/PacketIO: Increase max allowed incoming packet size for CMSG_HOTFIX_REQUESTShauren
2021-02-25Shared/Metric: Stop metrics on shutdownjackpoz
Properly stop metric information gathering and sending on shutdown. Issue reported by AddressSanitizer. (cherry picked from commit e9c475d45f7fbe78d68e8d0cafe66b829acb6ce6)
2021-02-25Core/Crash reporting: Fix buffer overflowjackpoz
(cherry picked from commit c7043b25f659eddd75fecd916235e524223c7f05)
2021-02-25Some misc streamlining/cleanup:Treeston
- std::chrono overloads for SummonCreature - Removed misleading const qualifier from SummonCreature (it wasn't being honored) - Rename parameters of SummonCreature to follow convention - EventProcessor has a new method (AddEventAtOffset) that adds an event...at an offset. Genius. PS: Hi there Keader. (cherry picked from commit 76a4c7d9748fdbfa925e81a3257acdee53d4f86e)
2021-02-15Dep/Recast: Update recastnavigation to ↵jackpoz
https://github.com/recastnavigation/recastnavigation/commit/2c85309280dbc9c82029e7ab16dfb01b9235c74e (cherry picked from commit 7ef22e43057080926685eb45f0fce3f2f3d58c61)
2021-02-06Core/Misc: Fix static analysis issuesjackpoz
(cherry picked from commit 97f33dc77945d8f284d14e0eaa994ae1405a3f20)
2020-12-12Dep/Boost: Support for boost 1.74 - heapShauren
Closes #25470 (cherry picked from commit 868c82aa6c7036fef8db6ecef4d66046d14608d7)
2020-12-12Dep/Boost: Partial support for boost 1.74 - asioShauren
Ref #25470 (cherry picked from commit 155e37831e9c581c6a8ebba34fe70d3459301d0a)
2020-12-08Core/Collision: Fixed false positive errors in console about vmap loadingShauren