Lump file format: Difference between revisions
Jump to navigation
Jump to search
Tip:It is possible to edit an extracted entity lump with a plain text editor, if the lumpSize field is corrected afterwards. lmpfix, a third-party tool, is available to automate the process.
SirYodaJedi (talk | contribs) m (SirYodaJedi moved page Lump file format (Source) to Lump file format over redirect: revert) |
SirYodaJedi (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{source topicon}} | ||
'''Lump files''' are used to store [[Source BSP File Format#Lumps|lump data]] independently from a [[BSP]] file in separate files with the file extension <code>.lmp</code>. | '''Lump files''' are used to store [[Source BSP File Format#Lumps|lump data]] independently from a [[BSP]] file in separate files with the file extension <code>.lmp</code>. | ||
Revision as of 17:12, 18 May 2024
Lump files are used to store lump data independently from a BSP file in separate files with the file extension .lmp
.
Each lump file contains a 20 bytes long header before the actual lump data. It contains some information about the lump that were stored in the BSP file before extraction.
struct lumpfileheader_t
{
int lumpOffset; // offset in the file where the lump data begins (should be 0x14)
int lumpID; // the lump ID according to the lump table
int lumpVersion; // same as "version" in lump_t
int lumpLength; // same as "filelen" in lump_t
int mapRevision; // same as in dheader_t
};
