|  | 
        
          | MOD File FormatThis is a description of the MOD file format used in Neverwinter Nights.
The first thing in the file is the Header block.
 
 |  
          
            | MOD Header | 
|---|
 | char[4] | Signature "MOD " |  | char[4] | Version "V1.0" |  | dword | Unknown |  | dword | DescriptionBlockSize |  | dword | NumberOfFiles |  | dword | DescriptionBlockOffset |  | dword | FileHeaderTableOffset |  | dword | LookupTableOffset |  | dword | Unknown |  | dword | Unknown |  | dword | Termination (-1) |  
            The FileHeaderTable is a list of FileHeaders.  NumberOfFiles above
	dictates how many of these there are.| DescriptionBlock | 
|---|
 | dword | 0 |  | dword | TextLen |  | char[TextLen] | Description |  
            The filename is a unique identifier for the file.  Here is a list of all known filetypes. The Index
	is the index into the LookupTable.
          
          The LookupTable is a list of offsets and sizes for each file.
	The offset points to the beginning of the file data.| FileHeader | 
|---|
 | char[16] | Filename |  | dword | Index |  | dword | FileType |  
             I've written a quick example that'll parse a MOD file, and dump
          the main module.ifo file.  DumpMOD.C| LookupTable | 
|---|
 | dword | Offset |  | dword | Size |  |