Skip to content

Fix dressnpcs_master build after upstream master merge#179

Merged
Rochet2 merged 1737 commits into
dressnpcs_masterfrom
fix/dressnpcs_master-upstream-merge
May 26, 2026
Merged

Fix dressnpcs_master build after upstream master merge#179
Rochet2 merged 1737 commits into
dressnpcs_masterfrom
fix/dressnpcs_master-upstream-merge

Conversation

@Rochet2

@Rochet2 Rochet2 commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

The scheduled merge workflow merges TrinityCore/TrinityCore master into dressnpcs_master and builds with -DWITH_WARNINGS_AS_ERRORS=1. The branch was failing at the merge step (multiple conflicts) and would not compile cleanly once upstream changes were applied.

This PR merges the latest upstream master into dressnpcs_master, resolves the conflicts, and keeps DressNPCs behavior working with current TrinityCore APIs.

What was wrong

Merge conflicts

  1. cmake/options.cmake — DressNPCs adds the DISABLE_DRESSNPCS_CORESOUNDS CMake option; upstream reformatted the nearby BUILD_TESTING option line.

  2. DB2Stores.h / DB2Stores.cpp — DressNPCs wraps CreatureDisplayInfo lookups to remap fake outfit display IDs via ObjectMgr::GetRealDisplayId(). Upstream added CraftingQuality.db2 and switched back to a plain DB2Storage<CreatureDisplayInfoEntry>.

  3. Creature.cpp — DressNPCs needs CreatureOutfit.h; upstream reordered includes around DB2Stores.h / DatabaseEnv.h.

  4. ObjectMgr.cpp — DressNPCs outfit SQL parsing uses <sstream>; upstream added <limits> / <numeric> includes in the same block.

  5. QuestHandler.cpp — DressNPCs added #include "Map.h" for mirror-sound hooks; upstream added #include "Memory.h".

  6. MiscHandler.cpp::HandleCloseInteraction — DressNPCs plays a mirror sound when closing interaction with a dressed NPC. Upstream added IsLaunchedByQuest handling before resetting interaction data.

Already-clean areas

Opcode handlers that DressNPCs hooks (ItemHandler, NPCHandler, MiscHandler::HandleSetSelectionOpcode, etc.) had already auto-merged to upstream's typed packet handlers (packet.Unit, packet.Selection, …).

What was fixed

File Fix
cmake/options.cmake Keep DISABLE_DRESSNPCS_CORESOUNDS and upstream BUILD_TESTING option.
src/server/game/DataStores/DB2Stores.h Keep DressNPCs sCreatureDisplayInfoStoreRaw wrapper and upstream sCraftingQualityStore.
src/server/game/DataStores/DB2Stores.cpp Keep fake-display remapping store implementation; load CraftingQuality + raw CreatureDisplayInfo.
src/server/game/Entities/Creature/Creature.cpp Keep CreatureOutfit.h with upstream include order.
src/server/game/Globals/ObjectMgr.cpp Keep <sstream> for outfit customization parsing; dedupe <numeric>.
src/server/game/Handlers/QuestHandler.cpp Include both Map.h and Memory.h.
src/server/game/Handlers/MiscHandler.cpp Keep mirror-sound on close and upstream quest-launched interaction reset logic.

Local verification

  • Conflicts resolved on top of a proper 2-parent merge commit (same topology as automerge CI pushes).

Test plan

  • Merge this PR into dressnpcs_master.
  • Confirm the merge workflow _master (dressnpcs_master, …) jobs pass.
  • In-game: target a creature with a CreatureOutfit; list inventory, gossip hello, and close interaction — verify mirror sounds where enabled.
  • Mirror-image: verify dressed-NPC mirror image still renders for nearby players.

aquadeus and others added 30 commits February 26, 2026 22:55
… result of incorrect merge conflict resolution
… while still being teleported to a different map
Shauren and others added 26 commits May 11, 2026 11:02
…tly always printed before battleground starts and replaced its trinity_string entry with proper battleground status packet
by jildor, closes TrinityCore#28854

(cherry picked from commit fe81161)
@Rochet2 Rochet2 force-pushed the fix/dressnpcs_master-upstream-merge branch from c4247a5 to 92f7076 Compare May 25, 2026 22:34
…hanges

Replace removed DB2Manager::GetItemDisplayId with TransmogMgr lookup and
update dressed-NPC mirror image packet to use ChrModelID.
@Rochet2 Rochet2 merged commit 2edef01 into dressnpcs_master May 26, 2026
10 checks passed
@Rochet2 Rochet2 deleted the fix/dressnpcs_master-upstream-merge branch May 26, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.