Heroes LOD

From XentaxWiki
Revision as of 15:08, 10 January 2021 by Ikskoks (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

LOD


Format Specifications

char {4}     - Header ("LOD\0")
byte {4}     - "file use flag", i.e. used as 'base' or 'extension' resource file. 200 if base resource file, 500 if extension, little endian values.
uint32 {4}   - Number Of Files
byte {80}    - Unknown

// for each file

char {16}    - Filename (null)
uint32 {4}   - File Offset
uint32 {4}   - Uncompressed file size
uint32 {4}   - File type(?)
uint32 {4}   - File Length


byte {X}     - File Data

MultiEx BMS Script

IDString 0 LOD ;
SavePos FILESTART 0 ;
Math FILESTART += 5 ;
GoTo FILESTART 0 ;
Get FILECNTL Long 0 ;
Set FILESTART Long 92 ;
GoTo FILESTART 0 ;
Do ;
SavePos FILESTART 0 ;
GetDString FILENAME 16 0 ;
Get FILEOFF Long 0 ;
Get DUMMYL Long 0 ;
Get DUMMYL Long 0 ;
Get FILESIZE Long 0 ;
SavePos FILESTART 0 ;
GoTo FILEOFF 0 ;
Log FILENAME FILEOFF FILESIZE 0 0 ;
GoTo FILESTART 0 ;
Math EXTRCNT += 1 ;
While EXTRCNT <> FILECNTL ;

Compatible Programs


Other Games

These games also use this file format

  • Heroes Chronicles *.lod
  • Heroes Of Might And Magic 3 *.lod