59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
16 KiB
Gameplay integration work (Forever70334 / local Turtle1.18.1)
The first gameplay checkpoint preserves the real-client world/population/patrol milestones. All gameplay data continues to come from the separately authenticated Turtle session. Modern authentication uses the existing local Forever provider. No original executable, reference source, permission rank, talent or reputation record was changed for this checkpoint. Normal walking was used to reach vendor interaction range; no position SQL or teleport was used.
Verified in actual WowB
- Initial C character panel now opens without the previous division-by-zero Lua
error at PaperDollFrame.lua:955 (melee speed was zero). It displays Gatewaytest,
level1 Warrior, an equipped model, health60, attributes23/20/22/20/21, melee
damage4–7 and attack power29. These match Turtle's self-create fields; damage
is4.935714–6.935714 before the client's display rounding. Equipment appearance
is visible; moving/equipping items and subsequent derived statistics remain
unverified. Evidence:
evidence/gameplay/character-initial-stats.pngandcharacter-initial-fields.json. - Brother Danil's real Turtle gossip option, "I want to browse your goods",
appears with the NPC portrait/name and a talk cursor in Forever. No NPC or GUID
was hardcoded. A modern gossip capability must accompany translated service
capabilities for this client's interaction path. Initial vendor-only0x80 gave
a hand cursor and no request. Adding generic service gossip capability produces
actual CMSG_TALK_TO_GOSSIP3F0029 → Turtle17B → Turtle17D → Forever670018.
Evidence:
evidence/gameplay/turtle-vendor-gossip.png.
Merchant inventory display is not yet verified at this checkpoint. A real-client trace exposed repeated Hello requests when an NPCInteractionOpenResult was sent before each gossip menu. Native InteractionData::StartInteraction only sets server state; it does not send that result. The relay now sends gossip directly, retains the session's menu selection binding, and emits a vendor-open result once when changing from a gossip service selection into inventory browsing. The corrected flow still requires the next real-client test. Talk cursor is verified; a vendor bag cursor, trainer and questgiver cursors remain unverified.
Shared translation and source audit
src/gameplay.cpp::forever_npc_flagsmaps Turtlesrc/game/Objects/UnitDefines.h::NPCFlagsto Foreversrc/server/game/Entities/Unit/UnitDefines.h::NPCFlags. Legacy vendor4 is modern128; repair16384 is modern4096. Unsupported custom outdoor-PvP/item restore bits are not interpreted as different modern services. Service NPCs receive the gossip capability needed by the observed client. See ForeverEntities/Player/Player.cpp::PrepareGossipMenu(automatic service options) andOnGossipSelect(interaction-open result after service selection).- Unit flags use audited shared semantics only; legacy aura visibility0x08000000 must not become modern mounted state. PvP and stand state have separate fields.
src/forever_create.cpp::unit_combat_fieldsuses generated, pinned TurtleObjects/UpdateFields.hindices, writes native UF::UnitData fields for attack round times, five attributes, seven resistances, base HP/mana, melee/ranged attack power and damage, plus native ActivePlayer avoidance/critical values.- Selection3F00CD→13D, gossip3F0029→17B, list inventory3F0038→19E, gossip selection3F002B→17C and attack3E011E/011F→141/142 bind modern GUIDs only to objects actually sent in this authenticated Turtle session. Unknown, truncated and stale gossip selections are rejected. A nil selection clears the target; a nil NPC interaction is rejected.
- Turtle
Handlers/NPCHandler.cpp::HandleGossipHelloOpcodeandGossipDef.cpp::PlayerMenu::SendGossipMenudefine legacy menu/options/quests. ForeverServer/Packets/NPCPackets.cpp::GossipMessage::Write,GossipSelectOption::Read,VendorInventory::WriteandVendorItemdefine actual source-derived layouts; retail packet assumptions are not used. Legacy icons are not treated as proof of server-side service actions; options remain Turtle-authored selections. Greeting npc_text/broadcast-text translation is not implemented. Quest list presentation alone does not implement quests. - Turtle
Handlers/ItemHandler.cpp::SendListInventorysupplies stock, discounted price, stack count and slots. Modern inventory uses ItemInstance and price64; unlimited quantity remains signed-1. Buy/sell are not implemented yet. - Ongoing unit values use the pinned native
UF::UnitData::WriteUpdate(Mask...), its Classic70009/70291 mask remapping, andBaseEntity.cpp::BuildValuesUpdateBlockForPlayerfragment/type-mask envelope. This first subset covers HP/max HP, power/max power, faction, level, unit/NPC flags, stand/sheathe, display and shared dynamic flags. It never recreates an actor for a field change. Unsupported fields are omitted. Ongoing equipment, player flags and derived-stat changes still need translation and validation. - Attack start/stop and melee events are implemented from Turtle
Objects/Unit.cpp::SendMeleeAttackStart/Stop,SendAttackStateUpdateand ForeverCombatPackets.cpp::AttackStart/SAttackStop::Write,CombatLogPackets.cpp::AttackerStateUpdate::Write. Hit flags, critical, mitigation and block bits differ and are explicitly mapped. Actual combat, damage animation, death and loot remain unverified at this checkpoint.
Combat / talents / reputation findings
Actual Turtle self-create faction35 and PLAYER_FLAGS8 confirm active runtime GM
mode. Local GM.LoginState1 forces that mode on login; the account's permission
rank is a different setting. Player.cpp::SetGameMaster sets neutral faction35,
GM player flag and offline threat, and reverses them when disabled. This explains
friendly Wolf relationships in the client. No mode/permission change has yet
been made for the recorded checkpoint. A reversible gameplay-mode test must
record/restore the runtime mode and leave account rank unchanged.
All four bound Turtle test characters are level1. Learned/spent-talent behavior
was not tested in the earlier checkpoint. The user's expanded authorization now
permits progression, talent and reputation experiments on the designated
disposable Gatewaytest character. Account credentials and unrelated characters
remain outside that scope. A local database/config recovery point was taken at
recovery/20261014T200712Z before gameplay state experiments.
Reputation initialization is currently missing. Native Forever expects faction
IDs, flags16, standing32 and separate bonus entries; Turtle sends reputation-list
indices implicitly with flags8 and standing32. Turtle
ReputationMgr::SendInitialReputations currently declares64 but pads to69 rows,
so the real payload length and declared count must be audited explicitly. Faction
ID mapping must use the actual local Faction tables. No reputation values should
be changed to compensate for a missing translator.
Validation and recovery
Debug CTest3/3 passed before the latest gameplay additions; the loopback test requires local socket access outside the filesystem sandbox. The expanded protocol executable had889 checks. Native byte comparisons:5 vendor,4 gossip, 9 melee,8 captured/golden spline cases. Unit values have an independent golden health/fragment/mask check, exhaustive truncation checks and unsupported-field isolation. The existing self/NPC/static-object serializer fixtures pass. These checks validate layout, not actual gameplay.
ops/restart_gateway.py verifies the recorded exact executable, backs up its
running binary and feature flags under ignored recovery/gateway-<UTC>/, and
restarts only the gateway with existing private bindings. RESTORE.txt records
recovery. It does not restart game services or edit client/database credentials.
Screenshots/logs remain private until manually reviewed and selected as evidence.
The UI tool now supports right-click/hover and screenshot pointers; private OCR
excludes the pointer. OCR failures discard requested screenshots. Guarded login
continues to stop before entering a password if account-field validation fails.
Merchant window verified after the first checkpoint
The corrected real chain is Forever3F0029 → Turtle17B/17D → translated gossip, Forever3F002B → Turtle17C → Turtle19F → Forever47005C. Actual merchant context must be type5. Read-only executable inspection of70334 GetMerchantNumItems (RVA2DBB770 calling2DBB4A0) found an explicit interaction-type5 check at 2DBB4D3. Using the source's retail-style Vendor12 left GetMerchantNumItems0 and MerchantFrame hidden. The relay now opens Merchant5 once per gossip interaction, then answers refresh3F0038 → Turtle19E without another open-result loop.
The actual client shows all seven Brother Danil items: Unlit Poor Torch10c,
Tough Hunk of Bread25c/stack5, Refreshing Spring Water25c/stack5, Rough Arrow
10c/stack200, Light Shot10c/stack200, Crude Throwing Axe15c, Small Throwing Knife
15c. The numbers match the actual backend reply. Evidence is
evidence/gameplay/turtle-merchant-window.png and turtle-merchant-inventory.json.
No purchase/sale was made. A talk bubble cursor is verified; a shop-bag cursor
and native Turtle graphical comparison remain outstanding.
Ongoing health values verified in the actual client
The values-update envelope used type bit3, which is an Azerite item type in this
client profile. Native Entities/Object/ObjectGuid.h::TypeID defines UNIT5.
Use its named type constants for both object and unit sections. A correct native
unit mask inside an incorrectly typed envelope did not update client health.
The source header is now pinned with the rest of the serializer profile.
With the corrected serializer, native Turtle .modify hp 50 and .modify hp 49
on disposable Gatewaytest generated fields22/28 changes. Actual WowB
UnitHealth/UnitHealthMax displayed50/50 then49/49, including the selected self.
The screenshot evidence/gameplay/unit-health-markers.png and backend events in
unit-health-markers.json prove ongoing values, separately from offline layout
tests. GM mode was disabled for combat diagnosis and restored afterward; account
permission rank and credentials were not changed. GM visibility was enabled for
local testing. These reversible character changes are covered by the recovery
point above. The health markers are test values, not character stat fixes.
Debug and ASan/UBSan CTest each passed3/3. The protocol executable passed1248 checks including the pending reputation codec. Native byte comparisons passed 9 melee,5 vendor,4 gossip and8 spline cases. The updated unit-values golden and its truncation/unsupported-field checks passed. Combat start/damage packets were observed with the real client, but a complete melee/death/loot regression and ongoing rage, equipment and derived-stat updates still need verification.
Combat/resource protocol checkpoint after console discovery
Turtle Player::SendAttackSwingNotInRange/BadFacingAttack/DeadTarget/CantAttack
emit empty145/146/148/149 packets. Their native Forever AttackSwingErr reasons
are0/1/3/2, written in3 bits by CombatPackets.cpp::AttackSwingError::Write.
The gateway now sends4D0026, derived through the pinned
ClassicOpcodes::TranslateServerOpcode from core4B0026. Turtle NotStanding147
has no matching enum reason and remains untranslated rather than being renamed.
Four native error payload comparisons passed; actual on-screen errors remain
unverified at this checkpoint.
The actual70334 ChrClassesXPowerTypes table contains15 rows. Native
DB2Manager sorts by class then power type, and Player::GetPowerIndex uses
that derived index. Warrior rage is slot0; Druid rage is slot1, after mana.
Rogue energy is slot0. The serializer now derives these indices from the pinned
table export for both initial and ongoing values, with authenticated roster
class context. Creature::GetPowerIndex places its displayed resource at0;
the relay retains actual Turtle UNIT_FIELD_BYTES_0 context across delta updates
and removes it on actor removal. Unknown/nonprimary resources are omitted.
Legacy happiness4 is not modern combo points4 (modern happiness is27), and
hunter-pet translation is outside this profile. No NPC/GUID exception was added.
Resource fixtures verify primary and maximum-resource slots, Druid distinction,
unknown resources and happiness isolation. All prior self/NPC/static-object
fixtures and query, melee and reputation byte comparisons pass. Debug and
sanitizer CTest pass3/3 with1251 protocol checks. Real rage/combat regression is
the next test; these new resource/error changes are not yet a client milestone.
Reputation translation and its present data limitations are in REPUTATION.md.
Live melee and health regression
The next actual-client test disabled GM mode, targeted a real nearby Young Wolf,
started attack, rotated once withLeft, then stopped and restored GM mode. Audit
population-1037612-302430710946622 recorded both directions of18 melee events,
including a10-point critical strike, misses/dodge and health updates. The actual
client showed attacking poses, damage10 andDodge, player54/60 and target28/50,
matching the authoritative update sequence. Reviewed evidence is
evidence/gameplay/melee-live-health-and-damage.png and melee-live-turtle-events.json.
The Wolf reached9/50 before the bounded test stopped. This verifies actual melee
and changing self/NPC health; it does not prove death, loot or weapon appearance.
An out-of-range error was translated on the wire but its fleeting UI message
was not captured. Account permissions and character position were unchanged.
The rage marker exposed a remaining issue: despite the audited class-slot change,
actual UnitPower stayed0 while Turtle sent250 and subsequent decay. Native
Unit::SetPower also sends Combat::PowerUpdate, separately from UF deltas.
That notification is now being added for the actual displayed resource. It uses
type8 before power32 and classic opcode47017E; live behavior is pending. Initial
self world weapons also lacked UnitData.VirtualItems even though inventory and
PlayerData.VisibleItems populated the paper doll. The initial serializer now
joins equipped slots15..17 to server item IDs for those fields and initializes
sheathe state. Actual equipped weapon rendering and later equipment changes
still require tests.
Displayed rage notification verified
With the added47017E notification, actual WowB UnitPower reported13/100 rage
while the authoritative Turtle stream contained raw130 after the25-point marker
decayed250→230→210→...→0. The red resource bar updated and a subsequent live
melee test generated visible rage. This separates resource prediction/notification
from the class-index UF mapping. Six native byte comparisons and debug/sanitizer
CTest3/3 passed. Evidence: power-notification-real-client.png and
rage-notification-turtle-events.json underevidence/gameplay. Only the displayed
resource types0..3 are covered; nonprimary resources, happiness and abilities
consuming power still need actual-client tests. Initial weapon fields have not
yet been visually confirmed and ongoing equipment translation remains missing.
The follow-up melee capture shows the equipped sword in the world during a
strike (evidence/gameplay/melee-equipped-sword.png), after initializing the
three native virtual weapon slots from actual equipped item IDs. Initial weapon
appearance is therefore verified for this test loadout; later equipment changes
and other weapon classes remain unverified. A later Wolf reachedhealth0 in the
backend trace and the client cleared its target; a corpse/loot interaction has
not yet been captured, so full death/loot is not claimed.
Private UI API diagnostics use only bounded read-only macros. The client custom script setting has a Config.wtf recovery copy under ignored recovery. Automatic approval initially rejected an unguarded consent click as a possible purchase. The retry uses an exact script-dialog OCR check. GUI sequences now stop on the first failed action; the rejected unguarded click was not executed. Login focus polling and screenshot cleanup preserve the existing credential guards.