Initial D

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
guki
Posts: 2
Joined: Thu Jun 18, 2020 8:28 pm

Initial D

Post by guki »

Hello Guys

some of you may have seen the topics on xentax and gamemodels.ru - blackracer and whitecarisma managed to import efo files in noesis of initial d stage zero

i noticed that a few tracks and cars have been removed in this version - so i checked stage 4-8 - also the characters have been removed from stage zero

looking at the efo files from stage zero in hex they start with "YABX" - the efo files from 6-8 are compressed? "YS" header

after checking them with the comtypescan / hexdump script the only algorithm is ZYXEL_LZS which converts the first few bytes to YABX

using this algorithm in a bms script it will print out this error: "LZS_Unpack: invalid dict: 062E1FB1 < 062E2000 (tag=0, offset=0x55)

https://mega.nz/file/RixmgISL#2jrjKbc1l ... PGS4VYEhrI

is there a way to fix this invalid dict error?

thank you :)
guki
Posts: 2
Joined: Thu Jun 18, 2020 8:28 pm

Re: Initial D

Post by guki »

found some more things about the compression

there is a version of initiald 5 - which has a internal tool called xafmaker.exe with some dll files - this tool can extract the xaf of ID4 and 5 ...

you can also create xaf files - but this will need a xac (config) file - initial d stage zero does have those xac files - but did not packed the game

looking at the xac files - it used COMPRESS_LZW - the problem is, version 6 to 8 are using different dll files - thats why the archives cant be unpacked with this tool

fun fact: i tried the following combination: the xafmaker (ID5) with the car.xac (StageZero) - this packs the AE85L_bonnet.efo (YABX /uncompressed) to (YS /compressed)
compared the newly created xaf containing this one YS with the compressed AE85L_bonnet.efo (YS) of ID8 - they match 100%

so this means the YS files are using a LZW compression?

https://mega.nz/file/g64zXbJD#GH8gChRWA ... I6AAR2PReI

there are a few tracks in 6 to 8 i would like to have :)