Ultima 9 .FLX file format ========================= Revision 1.00 7th Jan 2002 The FLX file's used in Ultima 9 are very similar to those used in Ultima's 7 and 8, and follow the same purpose : to group individual files of a similar type into one parent file, very much like a zip file except there is no compressing, and no storage of filenames. A general FLX file is made up of three things : A header, a file information chunk, and a file data chunk. The header basically contains room for a comment, the total filesize, number of sub-files, File information chunk contains the offsets and sizes of the individual sub-files. File data chunk contains the actual data for the sub-files. HEADER FORMAT ------------- Offset Size Description 0 0x50 Comment space 0x50 DWORD Number of sub-files (n) 0x54 DWORD 2 0x58 DWORD filesize 0x5C DWORD filesize (again) 0x60 8 all zeroes 0x68 4 1 0x70 0x20 all zeroes FILE INFORMATION CHUNK ---------------------- Offset Size Description 0x80 8*n 4 bytes : offset of sub-file 4 bytes : size of sub-file FILE DATA CHUNK --------------- Contents vary depending on flx file (obviously :) ) Written by John Larcombe aka TumbleWeed Dragon tumble_weed@hotmail.com http://www.iinet.net.au/~larcombe