Skip to content

Enable MoP 5.4.8 loot-roll SMSG packets for group/LFG loot. - #1240

Open
DigiD702 wants to merge 3 commits into
ProjectSkyfire:mainfrom
DigiD702:fix/mop-loot-roll-opcodes
Open

Enable MoP 5.4.8 loot-roll SMSG packets for group/LFG loot.#1240
DigiD702 wants to merge 3 commits into
ProjectSkyfire:mainfrom
DigiD702:fix/mop-loot-roll-opcodes

Conversation

@DigiD702

Copy link
Copy Markdown
Member

Port bitpacked SMSG_LOOT_START_ROLL / ROLL / ROLL_WON / ALL_PASSED builders and SMSG_LOOT_ROLLS_COMPLETE so Need Before Greed rolls reach the client instead of being dropped as STATUS_UNHANDLED.

DigiD702 added 2 commits July 22, 2026 21:15
Port bitpacked SMSG_LOOT_START_ROLL / ROLL / ROLL_WON / ALL_PASSED builders and SMSG_LOOT_ROLLS_COMPLETE so Need Before Greed rolls reach the client instead of being dropped as STATUS_UNHANDLED.
Move START_ROLL and ROLLS_COMPLETE bitpacking into the Send* helpers so packet strings sit inline like the other loot-roll writers.
Comment thread src/server/game/Groups/Group.cpp Outdated
data.WriteBit(lootedGuid[0]);
data.WriteBit(!unk56);
data.WriteBits(3, 2);
data.WriteByteSeq(lootedGuid[7]);

@AriDEV3 AriDEV3 Jul 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data.FlushBits(); missing before this append.

data.WriteBit(byte0x38 != 0);
data.WriteBit(lootedGuid[6]);
data.WriteBit(lootedGuid[5]);
data << uint32(0);

@AriDEV3 AriDEV3 Jul 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data.FlushBits(); missing before this append.

data.WriteBit(lootedGuid[5]);
data.WriteBit(lootedGuid[7]);
data.WriteBit(lootedGuid[0]);
data.WriteByteSeq(lootedGuid[6]);

@AriDEV3 AriDEV3 Jul 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data.FlushBits(); missing before this append.

@AriDEV3 AriDEV3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing some bits to be flushed, before appending data.

data.WriteBit(targetGuid[4]);
data.WriteBit(targetGuid[2]);
data.WriteBit(lootedGuid[1]);
data.WriteByteSeq(lootedGuid[7]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data.FlushBits(); missing before this append.

WriteByteSeq skips zero bytes and would not flush; explicit FlushBits
keeps the following appends aligned with the MoP bitpacked layout.
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
25.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

2 participants