From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:RFF (Blood resource file)" |
|---|
| claim | "An RFF directory entry is a packed 48-byte struct: 16 unused bytes, uint32 offset, uint32 size, 8 unused bytes, a flags byte, a 3-character type, an 8-character name and an int32 id." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Blood RFF as read by NBlood" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "DICTNODE_FILE" |
|---|
| size | 48 |
|---|
| endianness | "little" |
|---|
| fields | | offset | 0 |
|---|
| size | 16 |
|---|
| type | "char[16]" |
|---|
| name | "unused1" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "offset" |
|---|
| notes | "file offset of the resource data" |
|---|
|
| offset | 20 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "size" |
|---|
|
| offset | 24 |
|---|
| size | 8 |
|---|
| type | "char[8]" |
|---|
| name | "unused2" |
|---|
|
| offset | 32 |
|---|
| size | 1 |
|---|
| type | "char" |
|---|
| name | "flags" |
|---|
| bits | |
| bit | "1" |
|---|
| name | "DICT_EXTERNAL" |
|---|
|
|
|
| bit | "4" |
|---|
| name | "DICT_CRYPT" |
|---|
| notes | "the first min(size, 0x100) bytes are XOR-encrypted" |
|---|
|
|
|
|---|
|
| offset | 33 |
|---|
| size | 3 |
|---|
| type | "char[3]" |
|---|
| name | "type" |
|---|
| notes | "not NUL terminated" |
|---|
|
| offset | 36 |
|---|
| size | 8 |
|---|
| type | "char[8]" |
|---|
| name | "name" |
|---|
| notes | "not NUL terminated" |
|---|
|
| offset | 44 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "id" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "DICTNODE_FILE and DICTFLAGS in resource.h; Init converts offset, size, flags, type, name, id from the entries; the bit names come from the engine's DICTFLAGS enum, only DICT_CRYPT (0x10) is tested when loading file data; the other bits are runtime states in the source and their meaning on disk is Unverified" |
|---|
| repo | "https://github.com/NBlood/NBlood" |
|---|
| commit | "497385d64b97f4fd13b6efb3929df0f2ab3adc87" |
|---|
| path | "source/blood/src/resource.h" |
|---|
| lines | "28-59" |
|---|
|
| type | "source" |
|---|
| detail | "directory read, decrypt and field conversion" |
|---|
| repo | "https://github.com/NBlood/NBlood" |
|---|
| commit | "497385d64b97f4fd13b6efb3929df0f2ab3adc87" |
|---|
| path | "source/blood/src/resource.cpp" |
|---|
| lines | "136-165" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "DICTNODE_FILE" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:33:51.095Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:55:51.675Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read resource.h DICTNODE_FILE under pragma pack(1): 16+4+4+8+1+3+8+4 = 48; resource.cpp Init (87-165) reads count*sizeof entries from header.offset, XOR-decrypting them first (Crypt, key header.offset + (version&0xff)*header.offset) when version&0xff00 == 0x300; Load decrypts min(size,0x100) bytes when flags & DICT_CRYPT (16)." |
|---|
| notes | "Detail the fact does not state: for version 0x300 the directory entries themselves are encrypted before these fields are valid." |
|---|
|
|
|---|