PLTT LFD Resource Type Author: Jagged Fel (jaggedfel621@gmail.com) Site: http://idmr.empirereborn.net Updated: 2009.10.05 ===== The Palette type allows the application to redefine the colors being used and allow for index colors to be used instead of RBG values in images. ===== PLTT 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 INT 4 signed Int32 -- 0x00 Header 0x10 BYTE StartIndex 0x11 BYTE EndIndex 0x12 Color[EndIndex-StartIndex+1] BYTE Reserved (0) -- struct Header (size 0x10) { 0x0 CHAR[4] "PLTT" 0x4 CHAR[8] Name 0xC INT Length } struct Color (size 0x3) { 0x0 BYTE Red 0x1 BYTE Green 0x2 BYTE Blue } ===== PLTT Detail The StartIndex defines the first ColorIndex that Color values are given for. The EndIndex likewise defines the last ColorIndex that is being defined. For example, the palette for the Battle Selection screen is defined in TOURDESK.LFD and begins at StartIndex 0x20 and runs through EndIndex 0xFF. Thus, the first Color value defines ColorIndex 0x20 which will be shown anywhere 0x20 is called as a ColorIndex. The Color values are simply RGB values ranging from 0x00 to 0xFF. The typical values for the beginning range appear to be the standard 16 colors for 0x00 to 0x0F, with greyscale values for 0x10 to 0x1F as defined in EMPIRE.LFD. =====