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) mNo edit summary |
SirYodaJedi (talk | contribs) m (→See also) |
||
Line 19: | Line 19: | ||
* [[Source BSP File Format]] | * [[Source BSP File Format]] | ||
* [[Patching levels with lump files]] | * [[Patching levels with lump files]] | ||
* [[ENT]] file | |||
[[Category:File formats]] | [[Category:File formats]] |
Latest revision as of 06:23, 1 June 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
};
