59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
115 lines
6.8 KiB
Markdown
115 lines
6.8 KiB
Markdown
# Native guild membership and chat
|
|
|
|
The actual Forever70334 client displays genuine local Tortoise guild membership
|
|
and exchanges messages with a separately authenticated ordinary local character.
|
|
Both directions and a clean client relog have actual UI and packet evidence.
|
|
Guild roster, Communities and social services remain incomplete.
|
|
|
|
Source contracts:
|
|
|
|
- Tortoise `Objects/UpdateFields.h`: PLAYER_GUILDID191 and PLAYER_GUILDRANK192.
|
|
`Guild/Guild.cpp::AddMember` sets actual guild/rank; local GM guild creation
|
|
uses `Commands/Commands.cpp::HandleGuildCreateCommand` and `Guild::Create`.
|
|
- Forever `Entities/Object/ObjectGuid.cpp::ObjectGuidFactory::CreateGuild`:
|
|
HighGuid Guild28, real guildID in low64, realm in high bits42..54. Zero is
|
|
empty. `UpdateFields.h`: UnitData.GuildGUID bit126/group96;
|
|
PlayerData.GuildRankID bit16/group0. Existing mask remappers/writers retained.
|
|
- Tortoise `Handlers/GuildHandler.cpp::HandleGuildQueryOpcode` accepts guildID32;
|
|
`Guild::Query` sends ID32/name, exactly ten rank CStrings and five emblem ints.
|
|
`Server/Packets/GuildPackets.cpp::QueryGuildInfoResponse::Write` supplies the
|
|
original native optional, rank and length layout, including Classic's sixth
|
|
emblem int32. Mode33 compares the independent adapter to this pinned writer.
|
|
- `ClassicClientOpcodes.inc`: original guild2D000D and officer2D000E requests;
|
|
`ChatPackets.cpp::ChatMessage::Read`: language32, MSB11 length, text; no SAY
|
|
security bit. Query guild4400B6 uses two packed GUIDs. Source normalization
|
|
yields actual guild response53002C; a uniform group shift would be wrong.
|
|
- Tortoise `Chat/Chat.cpp::BuildChatPacket`: guild3/officer4 have one senderGUID64;
|
|
SAY has two. `Handlers/ChatHandler.cpp` delegates real membership/rank/ignore
|
|
restrictions and universal language policy to `Guild::BroadcastToGuild`.
|
|
Native Chat types4/5, real sender name/playerGUID, absent Battle.net identity.
|
|
|
|
`NativeWorldTranslation` obtains guild state exclusively from authenticated
|
|
self object updates. It queues real metadata requests on membership changes,
|
|
validates outgoing guild identity and drops stale responses. The original
|
|
engine owns object/UI updates. No invented club identity, guild levels, database
|
|
provider, Lua replacement or engine function call is introduced.
|
|
|
|
The first real test showed correct IsInGuild but rejected chat because the new
|
|
authorization check incorrectly used the item-only cache. World-owned social
|
|
state fixed that failure. Tests now ingest actual legacy object-update framing;
|
|
manual cache setters cannot conceal this regression. Initial failed attempt is
|
|
preserved in runtime/native-guild-self-echo.json. The corrected actual745936
|
|
original UI shows HybridLocalTest, Guild Master/rank0 and one exact unique green
|
|
guild line. See evidence/gameplay/native-guild-chat/self-echo.json and screenshot.
|
|
|
|
Run against an existing authenticated native world with real guild membership:
|
|
|
|
```sh
|
|
python3 ops/native_guild_chat_test.py --character 4509 --output runtime/NEW-guild.json
|
|
```
|
|
|
|
The tool sends once, correlates the real server reply, checks unchanged source
|
|
baseline and captures the original UI. Manually review exact visible sender/text;
|
|
opcode metadata alone is not proof of text correctness or UI consumption.
|
|
|
|
The local fixture was journaled before actual GM creation: guild21,
|
|
HybridLocalTest, initially sole member4509. It is reusable. To roll back, first
|
|
verify ID/name and sole member; then use the server GM guild-delete command.
|
|
Never disband the fixture after other characters join without reviewing them.
|
|
No previous membership, progression, gold, item or account privilege was changed.
|
|
Fresh login reconstructs GM/social flags through actual server configuration.
|
|
|
|
Foreign guild sender resolution, guild roster/events, permissions beyond the
|
|
server's own checks, two-party receipt, reconnect duplicates and non-human
|
|
languages remain unverified. No public Octo protocol compatibility is asserted.
|
|
|
|
## Authenticated foreign sender and relog validation
|
|
|
|
`QueryHandler.cpp::SendNameQueryOpcode`/`SendNameQueryOpcodeFromDB` supplies
|
|
real sender64, name CString, empty realm CString, race32/gender32/class32.
|
|
The native session requests50 only for a real received unknown player sender,
|
|
retains up to32 validated messages, and emits original Chat after source51.
|
|
The cache accepts only solicited names, caps256 pending queries/4096 names,
|
|
and is discarded with the session. Guild changes discard pending messages.
|
|
No provisional name reaches the engine. A name query establishes identity,
|
|
not guild membership; unknown foreign SenderGuildGUID stays absent. Names do
|
|
not add object-manager entities or authorize targeting/movement.
|
|
|
|
Actual754943 and fresh760335 exchanged messages with Chatpeer4513, a real local
|
|
level1 character created through Tortoise on a separate ordinary rank0 account.
|
|
`local-guild-peer` is a bounded loopback-only protocol reference, not a substitute
|
|
for the actual Forever client. It reuses proof-verified LegacySession, reads
|
|
private credential files, validates the owned roster, never bypasses integrity
|
|
challenges, sends genuine guild requests and performs normal logout. Its logs
|
|
export only generated public test tokens, never authentication payloads. The
|
|
original Forever UI shows exact outgoing and incoming tokens with correct names.
|
|
The peer receives each token once. After clean logout and relaunch, real realm/
|
|
character/world entry and guild membership persisted; both directions worked
|
|
again with a freshly authenticated peer, now saved offline.
|
|
|
|
```sh
|
|
python3 ops/native_guild_peer_test.py \
|
|
--fixture runtime/native-guild-peer-fixture.json \
|
|
--output runtime/NEW-peer.json
|
|
```
|
|
|
|
Reuse the journaled peer; do not create arbitrary accounts during each test.
|
|
Guild21 now has4509(rank0) and4513(rank4). Review both before any fixture rollback.
|
|
The source-backed test baseline is saved through the actual GM `.save` handler
|
|
before comparison. Source `Player::LoadFromDB` calls SQL-writing GM invisibility
|
|
before restoring configured chat/whisper flags in memory: saved19 can naturally
|
|
become55 on autosave. Initial failure/review retained as peer-live.json; the
|
|
corrected fresh-relog run passes the strict unchanged-state check. No flag,
|
|
permission or progression changes were used to make chat work.
|
|
|
|
Full64/64 passed42.78s before deployment; final focused4 tests passed and strict
|
|
peer compilation succeeded. Evidence peer-live/peer-relog JSON and screenshots
|
|
is reviewed actual-client output, beyond recognition or queued packets.
|
|
|
|
The modern Guild & Communities window still shows a generic join page: its
|
|
roster/club backend is not initialized. Original IsInGuild/GetGuildInfo/nameplate
|
|
and chat work, but do not imply that window, officer permissions, guild events,
|
|
player renames, whisper/party/raid or failure reconnections are implemented.
|
|
The second graphical/native Turtle client has not been compared here. No live
|
|
Octo access, protocol or launcher compatibility is claimed.
|