fix: the character data packet carries the world keys live sent

Every live character data packet (451 of 451) had legoclub=1, freetrial=0,
requiresrename=0, levelid and position.x/y/z + rotation.x/y/z/w next to
the keys already sent. LWOCharacterComponent::LoadConfigData (0x00c70f00)
reads requiresrename, legoclub and freetrial.

requiresrename is the character's refused-name state, levelid the zone id
(map, instance << 16, clone << 32) and the position and rotation are where
the player is put in the world.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 14:48:11 -06:00
parent e786d2b1c5
commit 55a6d0babc
5 changed files with 91 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
#include "MessageType/Client.h"
#include "MessageType/Game.h"
#include "NiPoint3.h"
#include "NiQuaternion.h"
#include "Stamps.h"
enum class eCharacterCreationResponse : uint8_t;
@@ -189,6 +190,15 @@ namespace ClientPackets {
// packet, and with it false the client shows inventory-full tips on every world load. Not written when false
// (the client's default).
bool txfring = true;
// The keys below were in every live character data packet. LWOCharacterComponent::LoadConfigData (0x00c70f00)
// reads requiresrename, legoclub and freetrial. Not written when sendWorldKeys is false.
bool sendWorldKeys = true;
bool legoClub = true;
bool freeTrial = false;
bool requiresRename = false; // The name was refused and a new one is asked for
uint64_t levelID{}; // map id, instance id << 16, clone id << 32
NiPoint3 position{};
NiQuaternion rotation = QuatUtils::IDENTITY;
CreateCharacter() : LUBitStream(ServiceType::CLIENT, MessageType::Client::CREATE_CHARACTER) {}
void Serialize(RakNet::BitStream& bitStream) const override;