Commit Graph

29757 Commits

Author SHA1 Message Date
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
3313ea1fe6 Core/Entities: Skip calling toupper on number to string conversion result if not neccessary (only hex conversions need it) 2024-07-14 13:13:27 +02:00
Shauren
054dd3596f Core/Utils: Transform char toUpper/toLower functions into callable function objects to better integrate with std algorithms (not calling through a function pointer allows inlining) 2024-07-14 13:12:10 +02:00
Shauren
ceffc2cb20 Core/Spells: Added missing SummonPropertiesFlags::UseDemonTimeout handling to some summon cases 2024-07-13 00:37:14 +02:00
Shauren
6ca4681ab4 Scripts/Azure Vault: Converted Leymor intro to use new OnCreatureGroupDepleted hook 2024-07-12 12:30:52 +02:00
Shauren
ec2631eca3 Core/Instances: New ZoneScript hook - OnCreatureGroupDepleted
* Triggers when the CreatureGroup no longer has any alive members (either last alive member dies or is removed from the group)
2024-07-12 12:29:22 +02:00
Shauren
9a7a83ef30 Core/Creatures: Create a CreatureGroup for every SummonCreatureGroup 2024-07-12 12:28:00 +02:00
Shauren
b103de805a Core/PacketIO: Fixed SMSG_ATTACKER_STATE_UPDATE structure
Closes #30036
2024-07-11 17:40:11 +02:00
Shauren
16bfbe1a3a Core/Creatures: Allow adding summons to CreatureGroup (only adding, no formation movement of linked aggro yet) 2024-07-11 15:24:02 +02:00
ModoX
c5c31c7c1e Scripts/WanderingIsle: Added missing spell_summon_amberleaf_troublemaker script
* adf49c6f13 followup
2024-07-11 10:11:51 +02:00
Aqua Deus
adf49c6f13 Scripts/WanderingIsle: Implement The Way of the Tushui (#29846) 2024-07-10 22:33:07 +02:00
Jeremy
7c361c7f96 Scripts/Battlegrounds: Implement Seething Shore (#29996) 2024-07-10 19:44:23 +02:00
Shauren
1cd7898c01 Core/Logging: Removed one layer of allocations from log message writes (async doesn't wrap in shared_ptr anymore and sync creates LogMessage on the stack) 2024-07-10 14:51:29 +02:00
Shauren
0d8e3dd798 Core/Logging: Fixed a bunch of invalid format strings 2024-07-09 11:30:01 +02:00
Shauren
67dd9a920f Core/Creatures: Only remove formation movement on formation remove instead of fully resetting MotionMaster 2024-07-08 12:43:58 +02:00
Shauren
2e3920081f Core/Creatures: Fixed memory leaks in creature formations 2024-07-08 11:23:41 +02:00
Shauren
cdf0d62e48 Revert "Core/Creature: Formation reset (#27040)"
This reverts commit 01da436206.
2024-07-08 11:13:17 +02:00
Shauren
7fdcae81d8 Core/Units: Interrupt only spell in CURRENT_GENERIC_SPELL slot with damage taken InterruptFlags instead of all currently cast spells 2024-07-07 15:54:48 +02:00
Shauren
d05dbaaecb Core/Vmaps: Fixed use after free and deadlocks when loading a model file fails 2024-07-06 22:52:11 +02:00
Shauren
518fe1fd1e Tools/vmap_assembler: Organize vmap files into directory-per-map 2024-07-06 14:29:54 +02:00
Shauren
51d1ff11bc Tools/vmap_assembler: Use boost::filesystem::path for creating filenames 2024-07-06 14:06:20 +02:00
Shauren
11a252e601 Tools/vmap_assembler: Multithread building vmaps 2024-07-06 12:56:59 +02:00
Shauren
a0f13391a0 Tools/vmap_extractor: Split temporary dir_bin into multiple files (one per map) to significantly reduce peak memory usage by vmap_assembler 2024-07-06 01:24:26 +02:00
Shauren
35a2d49971 Core/Vmaps: Optimize loading vmaps
* Changed spawn id to BIH tree index mapping from generated on load to baked in tile files
* Remove map holding model load counts and moved that to ModelInstance instead
2024-07-05 21:20:25 +02:00
Shauren
5dbb6b043f Core/Vmaps: Minor cleanup in MapTree - use unique_ptr to manage file handles 2024-07-05 17:48:08 +02:00
Shauren
c3dd80a96e remove double empty line 2024-07-05 15:08:03 +02:00
Shauren
f895d04b7d Core/Database: Fixed WITH_COREDEBUG + WITH_DYNAMIC_LINKING incompatibility on windows 2024-07-05 13:28:09 +02:00
Shauren
c8a55f4a18 Core/Vmaps: Minor cleanup in vmap4assembler - use unique_ptr to manage file handles 2024-07-05 13:09:00 +02:00
Shauren
76a3611317 Core/Vmaps: Replace floatToRawIntBits/intBitsToFloat with standard bit_cast utilities 2024-07-05 12:43:02 +02:00
Shauren
ff4fc1ad4e Core/Vmaps: Replace manual reference counting with shared_ptr and slightly reduce memory use by deduplicating model name strings 2024-07-04 22:56:00 +02:00
Shauren
fd329ee848 Core/Spells: Implemented SPELL_ATTR9_CHANNEL_PERSISTS_ON_PET_FOLLOW 2024-07-03 21:10:23 +02:00
Shauren
f19e1a2716 Core/Spells: Remove spell range increase when caster or target move backwards 2024-07-03 16:18:06 +02:00
Shauren
321f3cc4a7 Core/Spells: Implemented caster-is-moving aoe radius bonus and SPELL_ATTR9_NO_MOVEMENT_RADIUS_BONUS 2024-07-03 16:07:30 +02:00
Shauren
af081ea5f0 Core/Spells: Rename more SpellAttr9 to official names 2024-07-03 15:22:27 +02:00
Shauren
b3bdb4efef Core/Spells: Implemented SPELL_ATTR9_CANNOT_KILL_TARGET 2024-07-03 14:35:01 +02:00
Shauren
af39104798 Core/Spells: Implemented SPELL_ATTR9_FORCE_CORPSE_TARGET 2024-07-03 00:08:40 +02:00
Shauren
321161230f Core/Spells: Implemented SPELL_ATTR9_ITEM_PASSIVE_ON_CLIENT 2024-07-02 11:12:16 +02:00
Shauren
70cff79ca6 Core/Spells: Rename more SpellAttr9 to official names 2024-07-01 15:25:23 +02:00
Shauren
96bfc5f39b Core/Spells: Implemented SPELL_ATTR9_IGNORE_CASTER_HEALING_MODIFIERS and SPELL_ATTR13_ALWAYS_ALLOW_NEGATIVE_HEALING_PERCENT_MODIFIERS 2024-07-01 00:05:09 +02:00
Shauren
08778dc1c8 Tools/mmaps_generator: Fixed executable name and default values in --help 2024-06-30 22:48:51 +02:00
Aqua Deus
02f4a7a343 Scripts/WaycrestManor: Implement Heartsbane Triad encounter (#30059)
Co-Authored-By: ModoX <moardox@gmail.com>
2024-06-30 04:36:02 +02:00
ModoX
f077b8608c Core/Maps: Implemented BoundaryIntersectionBoundary 2024-06-30 02:01:58 +02:00
Shauren
486641063e Core/Spells: Implemented SPELL_ATTR9_JUMPCHARGE__NO_FACING_CONTROL 2024-06-30 00:03:55 +02:00
Naddley
09325ef105 Scripts/KingsRest: Implement Serpent pre boss event (#30066) 2024-06-29 22:05:55 +02:00
Shauren
bd9fb4a563 Core/Movement: Defined and implemented new spline flag - JumpOrientationFixed 2024-06-29 18:15:43 +02:00
Shauren
8ce710fa6f Core/Spells: Rename more SpellAttr9 to official names 2024-06-29 15:02:01 +02:00
Shauren
3365e6a4b8 Core/Spells: Implemented SPELL_ATTR9_ALLOW_CAST_WHILE_CHANNELING 2024-06-28 16:19:14 +02:00
Shauren
270b53b26a Core/Misc: Sync Language.h between branches 2024-06-27 21:20:42 +02:00