TEXT LFD Resource Type Author: Jagged Fel (jaggedfel621@gmail.com) Site: http://idmr.empirereborn.net Updated: 2009.10.05 ===== The TEXT Resource type stores simple strings in the file to be recalled by the application. Storing the strings in a seperate file allows for easy manipulation and customization. ===== TEXT Structure The following values are used through this and all of my file definitions unless otherwise specified: NAME LENGTH DESC ---- ------ ---- BYTE 1 unsigned 8-bit CHAR 1 ASCII character SHORT 2 signed Int16 INT 4 signed Int32 STR(*) * null-terminated string, * is a decimal number -- Header SHORT NumberOfStrings String[NumberOfStrings] -- struct Header (size 0x10) { CHAR[4] "TEXT" CHAR[8] Name INT Length } struct String { 0x0 SHORT Length 0x2 STR()[] SubStrings BYTE Reserved (0) } ===== TEXT_DATA Detail The TEXT_DATA block is one of the simplest of resource types. The first value, NumberOfStrings tells you the number of String sections contained in that resource. Each string has a Length value, which includes all SubStrings and the Reserved value. Each String may have several SubStrings contained within it, each null-terminated. This is useful for listing similar strings in a single group, or by listing "pages" in a single definition, with the zero bytes sometimes being used as line breaks. Note however that when using SubStrings, there is no indication of substring lengths or quantity. This is determined by the program itself and is context- specific. =====