Heroes LOD: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
 
imported>Ikskoks
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 8: Line 8:


<tt><b>
<tt><b>
char {3}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(LOD)</font> <br>  
char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">("LOD\0")</font> <br>  
byte {5}&nbsp;&nbsp;&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
byte {4}&nbsp;&nbsp;&nbsp;&nbsp; - "file use flag", i.e. used as 'base' or 'extension' resource file. 200 if base resource file, 500 if extension, little endian values. <br>
uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
byte {80}&nbsp;&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
byte {80}&nbsp;&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
Line 16: Line 16:
: char {16}&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(null)</font> <br>  
: char {16}&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(null)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Uncompressed file size <br>  
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - File type(?) <br>  
: uint32 {4}&nbsp;&nbsp; - File Length <br>  
: uint32 {4}&nbsp;&nbsp; - File Length <br>  
<br>
<br>
Line 60: Line 60:
* Heroes Chronicles *.lod
* Heroes Chronicles *.lod
* Heroes Of Might And Magic 3 *.lod
* Heroes Of Might And Magic 3 *.lod
[[Category:File Format]]

Latest revision as of 14:08, 10 January 2021

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