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 to Lump file format (Source): IdTech, and by extension GoldSrc, use a different lump format) |
SirYodaJedi (talk | contribs) m (→See also) |
||
(3 intermediate revisions by the same user not shown) | |||
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>. | ||
Line 18: | 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
};
