From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Papyrus compiled script (PEX)" |
|---|
| claim | "A PEX file starts with u32 0xFA57C0DE; stored little-endian (bytes DE C0 57 FA) it marks the Fallout 4-style little-endian layout, stored as bytes FA 57 C0 DE (0xDEC057FA when read little-endian) it marks the big-endian Skyrim layout." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Papyrus compiled script (PEX)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "DE C0 57 FA" |
|---|
| offset | "0x0" |
|---|
| meaning | "PEX magic, little-endian file (Fallout 4, Fallout 76, Starfield); Skyrim big-endian files carry the reversed bytes" |
|---|
| alternatives | |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "LE_MAGIC_NUMBER 0xFA57C0DE and BE_MAGIC_NUMBER 0xDEC057FA" |
|---|
| repo | "orvid/Champollion" |
|---|
| commit | "bc961a0bdfb4831f8240e6dacee0818b4bf81e00" |
|---|
| path | "Pex/FileReader.hpp" |
|---|
| lines | "29-30" |
|---|
|
| type | "source" |
|---|
| detail | "readHeader reads the magic with getUint32(true) (raw little-endian) and sets the endianness" |
|---|
| repo | "orvid/Champollion" |
|---|
| commit | "bc961a0bdfb4831f8240e6dacee0818b4bf81e00" |
|---|
| path | "Pex/FileReader.cpp" |
|---|
| lines | "89-115" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PEX magic and byte order" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:30:20.622Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T02:05:42.896Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Pex/FileReader.hpp at orvid/Champollion bc961a0b: LE_MAGIC_NUMBER 0xFA57C0DE, BE_MAGIC_NUMBER 0xDEC057FA; bytes DE C0 57 FA for the LE file match the fact." |
|---|
|
|
|---|