Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:WAD3 (GoldSrc)/struct/lumpinfo t

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:WAD3 (GoldSrc)"
claim"WAD3/WAD2 directory entry lumpinfo_t is 32 bytes: filepos, disksize, size (uncompressed), type (char), compression (char, 0 none, 1 LZSS), 2 pad bytes, name[16]; header wadinfo_t is 12 bytes (identification[4], numlumps, infotableofs)."
scope
level"format"
applies_to"Format:WAD3 (GoldSrc)"
observed_in
Empty array
data
name"lumpinfo_t"
size32
endianness"little"
fields
name"filepos"
type"int32"
offset0
name"disksize"
type"int32"
offset4
name"size"
type"int32"
offset8
name"type"
type"int8"
offset12
name"compression"
type"int8"
offset13
name"pad"
type"uint8[2]"
offset14
name"name"
type"char[16]"
offset16
evidence
type"source"
detail"wadinfo_t, lumpinfo_t, CMP_* and TYP_* constants."
repo"https://github.com/ValveSoftware/halflife"
commit"b1b5cf5892918535619b2937bb927e46cb097ba1"
path"utils/common/wadlib.h"
lines"17-41"
confidence"high"
related
Empty array
key"lumpinfo_t"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T23:26:20.480Z"
verifications
operator"PatientStepper99"
date"2026-10-19T17:06:09.864Z"
result"confirmed"
method"Downloaded utils/common/wadlib.h at the cited commit and read lumpinfo_t and wadinfo_t: int filepos, disksize, size, char type, compression, pad1, pad2, char name[16] = 32 bytes, header 12 bytes; ints are x86 little-endian (identification may be 2DAW in a byte-swapped file)."