TXT file processing #2

Open
opened 2022-09-28 20:14:50 +02:00 by JackCarterSmith · 0 comments

Issue to track TXT parsing advancement. (https://github.com/dpethes/rerogue/issues/4)

LE type file

> Header (28B):
unsigned short [2B]: number of parts (always 0x05)
unsigned short [2B]: count of entries? --> To verify when parser is complete
unsigned int [4B]: offset to english part
unsigned int [4B]: offset to dutch part
unsigned int [4B]: offset to french part
unsigned int [4B]: offset to spanish part
unsigned int [4B]: offset to japenese part
unsigned int [4B]: file size (or offset to EOF)

> Part_header? (xB - first header can be used to estimate the size of part_header):
unsigned short [2B]: offset to the first entry from the start of part_header offset
repeat_for( offset to the first entry / 2B ) {
unsigned short [2B]: offset to the X entry from the start of part_header offset
}

> Entries (xB) (XOR-ed string groups - use 0xF5 as first byte-key on entire part)
Issue to track TXT parsing advancement. (https://github.com/dpethes/rerogue/issues/4) ``` LE type file > Header (28B): unsigned short [2B]: number of parts (always 0x05) unsigned short [2B]: count of entries? --> To verify when parser is complete unsigned int [4B]: offset to english part unsigned int [4B]: offset to dutch part unsigned int [4B]: offset to french part unsigned int [4B]: offset to spanish part unsigned int [4B]: offset to japenese part unsigned int [4B]: file size (or offset to EOF) > Part_header? (xB - first header can be used to estimate the size of part_header): unsigned short [2B]: offset to the first entry from the start of part_header offset repeat_for( offset to the first entry / 2B ) { unsigned short [2B]: offset to the X entry from the start of part_header offset } > Entries (xB) (XOR-ed string groups - use 0xF5 as first byte-key on entire part) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JCS-Prod/RDI#2
No description provided.