Rebecca Weiss
SIASapphire - Imagine a framework
•Created by Rebecca Weiss on 3/3/2023 in #sapphire-support
speakerName translation in FFXIVIpcChat
Hello everyone,
I'm using ffxiv-pcap to read chat messages using the Sapphire Struct for chat messages.
/**
* Structural representation of the packet sent by the server
* carrying chat messages
*/
struct FFXIVIpcChat : FFXIVIpcBasePacket< ChatToChannel >
{
uint16_t type;
uint8_t padding1;
uint8_t padding2;
uint32_t entityId;
uint64_t characterId;
uint32_t __unknown3;
char speakerName[32];
char message[1024];
};
And I can't seem to be able to figure out how to use the speakerName string as it's encoded and incorrectly cut.
How should I proceed ?
Kind regards
9 replies