From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:FRM (Fallout)" |
|---|
| claim | "An FRM starts with a 62-byte big-endian header (int32 field_0, int16 fps, int16 actionFrame, int16 frameCount per direction, int16 xOffsets[6], int16 yOffsets[6], int32 dataOffsets[6], int32 dataSize); frames follow, each a 12-byte header (int16 width, int16 height, int32 size, int16 x, int16 y) and size pixel bytes." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Fallout 2 FRM as read by fallout2-ce artReadHeader/artReadFrameData; Unverified: identical in Fallout 1" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "FrmHeader" |
|---|
| size | 62 |
|---|
| endianness | "big" |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "field_0" |
|---|
|
| offset | 4 |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "framesPerSecond" |
|---|
|
| offset | 6 |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "actionFrame" |
|---|
|
| offset | 8 |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "frameCount" |
|---|
| notes | "frames per direction" |
|---|
|
| offset | 10 |
|---|
| size | 12 |
|---|
| type | "int16_t[6]" |
|---|
| name | "xOffsets" |
|---|
|
| offset | 22 |
|---|
| size | 12 |
|---|
| type | "int16_t[6]" |
|---|
| name | "yOffsets" |
|---|
|
| offset | 34 |
|---|
| size | 24 |
|---|
| type | "int32_t[6]" |
|---|
| name | "dataOffsets" |
|---|
| notes | "equal consecutive values mean the direction shares the previous frames" |
|---|
|
| offset | 58 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "dataSize" |
|---|
| notes | "0 in some files (fallout2-ce uses the file size)" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "artReadHeader reads fileReadInt32, three fileReadInt16, two fileReadInt16List(6), fileReadInt32List(6), fileReadInt32; fileReadInt16/32 are big-endian" |
|---|
| repo | "https://github.com/alexbatalov/fallout2-ce" |
|---|
| commit | "e97087b9582f37075db347a89898887320753f8b" |
|---|
| path | "src/art.cc" |
|---|
| lines | "1059-1074" |
|---|
|
| type | "source" |
|---|
| detail | "artReadFrameData reads width, height, size, x, y then size bytes per frame; artRead loops over the 6 directions and reads a direction's frames only if index == 0 or its dataOffset differs from the previous one" |
|---|
| repo | "https://github.com/alexbatalov/fallout2-ce" |
|---|
| commit | "e97087b9582f37075db347a89898887320753f8b" |
|---|
| path | "src/art.cc" |
|---|
| lines | "1034-1056, 1113-1142" |
|---|
|
| type | "source" |
|---|
| detail | "fileReadInt16 (high byte first) and fileReadInt32 (swap)" |
|---|
| repo | "https://github.com/alexbatalov/fallout2-ce" |
|---|
| commit | "e97087b9582f37075db347a89898887320753f8b" |
|---|
| path | "src/db.cc" |
|---|
| lines | "292-332" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "FRM header and frame header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:38:30.102Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:56:54.011Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read art.cc artReadHeader (1059-1074), artReadFrameData (1034-1056) and artRead (1113-1142): int32, three int16, int16[6] x2, int32[6], int32 = 4+6+12+12+24+4 = 62; frame header int16 width,height, int32 size, int16 x,y = 12 then size bytes; a direction's frames are read only when index==0 or its dataOffset differs from the previous." |
|---|
|
|
|---|