From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:PIG (Descent)" |
|---|
| claim | "Rebirth recognizes the Descent 1 descent.pig variants by exact file size: 5092871, 2529454, 2509799 (shareware, no leading Pigdata_start word), 7640220 and 4520145 (v1.0, also none), 4920305 and 5039735 (v1.4/1.5/OEM, leading int32 Pigdata_start) and 3975533 and 2714487 (Mac, leading Pigdata_start); any other size gives a warning and is treated as a Mac PIG with a leading Pigdata_start int32." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Descent 1 descent.pig as read by d1x-rebirth/d2x-rebirth (the sizes are those in the enum descent1_pig_size)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "file size" |
|---|
| indicator | "length of descent.pig equals one of 5092871, 2529454, 2509799, 7640220, 4520145 (Pigdata_start = 0), 4920305, 5039735, 3975533, 2714487 (int32 Pigdata_start at offset 0); the Mac sizes 3975533 and 2714487, and unknown sizes, also set the MacPig flag" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "enum descent1_pig_size with version comments (shareware v1.0-1.4 before RLE compression, v1.0, v1.4-1.5 incl. OEM v1.4a, Mac)" |
|---|
| repo | "https://github.com/dxx-rebirth/dxx-rebirth" |
|---|
| commit | "6943b924bea749543ef5729f31a28345e79716d2" |
|---|
| path | "common/main/piggy.h" |
|---|
| lines | "67-78" |
|---|
|
| type | "source" |
|---|
| detail | "switch on the file size: shareware sizes set PCSharePig and Pigdata_start 0; d1_10 sizes Pigdata_start 0; default warns and falls through to the Mac case then reads Pigdata_start from the first int32" |
|---|
| repo | "https://github.com/dxx-rebirth/dxx-rebirth" |
|---|
| commit | "6943b924bea749543ef5729f31a28345e79716d2" |
|---|
| path | "similar/main/piggy.cpp" |
|---|
| lines | "594-620" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Descent 1 PIG variant by file size" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:35:45.294Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T10:08:55.689Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read common/main/piggy.h 67-78 (nine sizes) and piggy.cpp 585-625 at 6943b92: switch groups, default warning falling through to the Mac case, Pigdata_start reads match the claim." |
|---|
|
|
|---|