From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Bethesda archive (BSA and BA2)" |
|---|
| claim | "A Fallout 4/Starfield .ba2 starts with 'BTDX', a u32 version (1, 2, 3, 7 or 8), then 'GNRL' (general files) or 'DX10' (textures)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Bethesda archive (BSA and BA2)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "42 54 44 58" |
|---|
| offset | 0 |
|---|
| meaning | "BA2 archive magic BTDX; bytes 8-11 are GNRL (47 4E 52 4C) or DX10" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MAGIC_BTDX/MAGIC_GNRL constants, header version constants and the loader that reads magic, version, magic2" |
|---|
| repo | "https://github.com/TES5Edit/TES5Edit" |
|---|
| commit | "9fb016884bec138ea6c7b872cec831537d464c3e" |
|---|
| path | "Core/wbBSArchive.pas" |
|---|
| lines | "531-550, 1326-1345, 1428-1436" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "BTDX magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T11:24:47.212Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:14:09.808Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read wbBSArchive.pas at the cited commit: MAGIC_BTDX 'BTDX' (line 533), then a cardinal version accepted only as $01, $07, $08 (FO4) or $02, $03 (Starfield) lines 546-553 and 1335-1346, then Magic2 must be GNRL or DX10 (1431), else an exception. The versions 1,2,3,7,8 in the claim are exactly the accepted set." |
|---|
|
|
|---|