This article's documentation is for anything that uses the Source engine. Click here for more information.

Lump file format: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (SirYodaJedi moved page Lump file format (Source) to Lump file format over redirect: revert)
mNo edit summary
Line 1: Line 1:
{{tabs|lump file format|idtech and goldsrc=1|source=1|main=idtech and goldsrc}}
{{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
};
Tip.pngTip: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.

See also