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:GRP (Build engine group file)/struct/GrpIndexEntry

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:GRP (Build engine group file)"
claim"A GRP directory entry is 16 bytes: a 12-byte file name and a 4-byte size; file offsets are not stored but computed by summing sizes after the directory (16 + 16 x count)."
scope
level"format"
applies_to"Format:GRP (Build engine group file)"
observed_in
Empty array
data
name"GrpIndexEntry"
size16
fields
name"name"
type"char[12]"
offset0
name"size"
type"int32"
offset12
endianness"little"
evidence
type"source"
detail"index read as numFiles * 16; the first data offset is 12 + 4 + numFiles * sizeof(entry) and each next offset adds the previous size"
repo"https://github.com/fabiensanglard/chocolate_duke3D"
commit"1cfa1909aa1f5a5ab159301044ca499673bc2283"
path"Engine/src/filesystem.c"
lines"104-125"
type"source"
detail"BUILDSWAP_INTEL32 on numFiles and per-file size"
repo"https://github.com/fabiensanglard/chocolate_duke3D"
commit"1cfa1909aa1f5a5ab159301044ca499673bc2283"
path"Engine/src/filesystem.c"
lines"106, 120"
confidence"high"
related
Empty array
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T04:49:28.978Z"
verifications
operator"PatientStepper99"
date"2026-10-19T12:11:55.083Z"
result"confirmed"
method"Read chocolate_duke3D Engine/src/filesystem.c lines 95-125 at 1cfa190: index read as numFiles*16, name bytes 0-11, size at [12] via BUILDSWAP_INTEL32 (little endian), first offset j = 12+4+numFiles*sizeof(entry), then j += size. Note: the 12-byte name is not NUL-terminated on disk; the code overwrites byte 12 with NUL in its own buffer."
revisions
by"PatientStepper99"
date"2026-10-19T12:39:39.831Z"
summary"Set byte order little: the size is converted with BUILDSWAP_INTEL32 (little-endian file)."
changed
"data"
"evidence"