From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Progs.dat (QuakeC)" |
|---|
| claim | "A QuakeC global or field definition is 8 bytes: uint16 type (etype_t, bit 15 = save in savegames), uint16 slot offset, int32 name string offset." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Progs.dat (QuakeC)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ddef_t" |
|---|
| size | "0x8" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "type" |
|---|
| notes | "0 void, 1 string, 2 float, 3 vector, 4 entity, 5 field, 6 function, 7 pointer; | 0x8000 DEF_SAVEGLOBAL" |
|---|
| bits | |
| bit | "15" |
|---|
| name | "DEF_SAVEGLOBAL" |
|---|
| notes | "global is written to savegames; invalid on field defs" |
|---|
|
|
|---|
|
| offset | "0x2" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "ofs" |
|---|
| notes | "global slot or entity field slot (4-byte units)" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "s_name" |
|---|
| notes | "offset into the string table" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "WinQuake/pr_comp.h ddef_t, etype_t, DEF_SAVEGLOBAL; pr_edict.c rejects DEF_SAVEGLOBAL on field defs (commit bf4ac42)." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "LibreQuake v0.09-beta progs.dat: 2359 global defs (2302 named) and 221 field defs (220 named, e.g. modelindex, absmin, absmin_x) parse with this layout." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "QuakeC definition" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:20:52.661Z" |
|---|
| verifications | |
|---|