XIV Dev Wiki
Search…
Chat Log (.log)
File structure for chat logs saved to FFXIV_CHR<content id>/log/*.log
1
struct LogBufferHdr
2
{
3
uint32_t contentSize;
4
uint32_t fileSize;
5
uint32_t* offsetEntries;
6
};
7
8
struct LogEntry
9
{
10
time_t timestamp;
11
uint16_t eventType; // chat message kind?
12
uint16_t unknown;
13
char* message; // inline str
14
};
Copied!
You can read entries like so:
1
void read( uint8_t* data )
2
{
3
auto hdr = reinterpret_cast< LogBufferHdr* >( data );
4
5
std::vector< LogEntry* > entries;
6
auto offsetEntriesCount = hdr->fileSize - hdr->contentSize;
7
8
for( auto i = 0; i < offsetEntriesCount; i++ )
9
{
10
auto offset = hdr->offsetEntries[ i ];
11
auto entry = reinterpret_cast< LogEntry* >( data + offset );
12
entries.push_back( entry );
13
}
14
}
Copied!
Last modified 1yr ago
Export as PDF
Copy link