Notes

When first running the game:

Development\ArmAnims\
Everything in here.
(even just blank folders are scanned)

Development\pcvideo\
All videos.

Fonts\
Courier New_23.abc, Journal.abc and Subtitles.abc.

Pc Sound\Music\MISC\MENU\
main.ogg

Pc Sound\Music\SFX\
Several .ogg from here.

Resources\PC\SHADERS\
Everything in here.

Resources\Xbox\
common.pc.xbd
common.xbd

Settings\
lang.txt
rainsettings.xml

Reads:
common.xbd
Offset Length
0 8 4B 4E 48 43 01 00 00 00 (KNHC) (version?)
0 4096 ???
8 4 05 00 00 00 (Number of chunks)
12 4 43 53 45 52 (CSER)
16 4 81 BF 2F 00 (Length of this chunk)
20 4 05 00 00 00
24 4 56 00 00 00
28 4 09 00 00 00
32 4 3E 05 00 00
36 4 01 00 00 00
40 4 FF FF FF FF
44 4 00 00 01 00
48 4 00 00 00 00
52 4 00 00 00 00
56 4 96 00 00 00 (length to read next)
60 150 00 00 80 00 00 00 00 00 06 04 80 00 06 09 00 00 00 00 90 00 89 88 08 3D 06 04 80 00 06 09 40 00 FF 00 00 90 00 89 88 88 3D 06 04 80 00 06 09 20 00 FF 00 00 90 00 AB AA 2A 3E 06 04 80 00 06 09 40 00 FF 00 00 90 00 EF EE 6E 3E 06 04 80 00 06 09 20 00 FF 00 00 90 00 9A 99 99 3E 06 04 80 00 06 09 40 00 FF 00 00 90 00 CD CC CC 3E 06 04 80 00 06 09 04 00 FF 00 00 80 00 6F 50 78 3F 06 00 00 00 06 09 00 00 00 00 00 00 6F 50 78 3F 07 04 00 00 6F 50 78 3F
Checks size of file.
210 2 00 00
212 4 01 00 00 00
216 4 FF FF FF FF
220 4 00 00 01 00
224 4 00 00 00 00
228 4 00 00 00 00
232 4 52 00 00 00 (length to read next)
236 82 00 00 80 00 00 00 00 00 06 04 80 00 06 09 00 00 00 00 90 00 89 88 08 3D 06 04 80 00 06 09 20 00 FF 00 00 90 00 CD CC CC 3D 06 04 80 00 06 09 08 00 FF 00 00 80 00 6F 50 78 3F 06 00 00 00 06 09 00 00 00 00 00 00 6F 50 78 3F 07 04 00 00 6F 50 78 3F
Checks size of file.
318 2 00 00
...
316874 2 00 00
316876 4 00 00 00 00
316880 4 94 00 00 00
316884 4 20 00 00 00
316888 4 00 00 00 00
316892 4 00 00 80 3F (80 is 128 size)
316896 128 00 00 00 00 00 00 00 3D 00 00 80 3D 00 00 C0 3D 00 00 00 3E 00 00 1E 3E 00 00 40 3E 00 00 60 3E 00 00 80 3E 00 00 90 3E 00 00 9F 3E 00 00 B0 3E 00 00 C0 3E 00 00 D0 3E 00 00 E0 3E 00 00 F0 3E 00 00 FF 3E 00 00 08 3F 00 00 10 3F 00 00 18 3F 00 00 20 3F 00 00 28 3F 00 80 2F 3F 00 00 38 3F 00 00 40 3F 00 00 48 3F 00 00 50 3F 00 80 57 3F 00 00 60 3F 00 00 68 3F 00 00 70 3F 00 00 78 3F
317024 4 00 04 00 00
317028 4 00 00 00 00
317032 4 00 00 80 3F
317036 4096

3129237 4 43 4E 59 44 (CNYD)

Chunks in 01_HOUSE.xbd
RESL
    Resource for Level (is C in common)
DYNL
    dynamic for Level
LNGL
    language for Level
CHAR
    name of a char
DOBS
    HOUSE_BACKDOOR_01
PHYS

MISC03_ASYLUM_CUTSCENE.xbd_LNGL is smallest LNGL file so best for analysis.
LNGL chunk
First 4 bytes 0 in an empty file.
Otherwise always 02 00 00 00.
Then 2 bytes containing number of languages. This is always 3 being ENGLISH, GERMAN, FRENCH.
(There are some none functional files with 7 that don't appear to be used anymore so ignoring).Le

Next is 4 bytes with the length of the language.
Then the number of text entries.

Text
1 is 18 (0x12 long).
2 is 36 (0x24 long).
3 is 120 (0x78 long).
4 is 74 (0x4A long).
5 is 135 (0x87 long)

Well I thought I had the strings all sorted but then there's some random junk in places i wasn't expecting!

DOBS section of xbd file
SBOD  -  4 bytes chunk type
02 00 00 00 - 2
48 00 00 00 - length 8
C2 C6 00 00 - chunk length 50882
02 00 00 00 - 2 what?
48 00 00 00 - 72 what?
256 bytes of DOB name
00 00 00 00 - 4 bytes of resource index starting with 0 
Repeated until
27 00 00 00 - last resource number is 39?
94 7D 00 00 - length of remaining chunk
48 00 - same number as before 72
18 00 00 00 - 24 dec
00 00 00 00 - 0



XBD
Read 8 - 4B 4E 48 43 01 00 00 00 - KNHC
Read 4 - 05 00 00 00 - number of chunks
Read 







No comments:

Post a Comment