Attack on Titan 2 .BIN

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
condemn
Posts: 17
Joined: Sat May 11, 2019 3:26 pm

Attack on Titan 2 .BIN

Post by condemn »

Hello guys !

I'm trying to extract Attack on Titan 2 PC game models, I have successfully unpacked "LINKDATA_A.Bin" with http://aluigi.org/bms/attack_on_titan.bms which is for Attack on Titan : Wings of Freedom.

Then ,seems like it doesn't work for "LINKDATA_B.Bin", I've got this error from quickbms :

Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info: algorithm 1
offset 000000001978f608
input size 0x00000000000008a2 2210
output size 0x0000000000008000 32768
result 0xffffffffffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (68157588)

Last script line before the error or that produced the error:
29 clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE

I don't know if the file is encrypted .. Here is the filecutter in case someone wants to check, tell me if I did it wrong
Thank you !
condemn
Posts: 17
Joined: Sat May 11, 2019 3:26 pm

Re: Attack on Titan 2 .BIN

Post by condemn »

Does anyone has found something ? Thank you :D
condemn
Posts: 17
Joined: Sat May 11, 2019 3:26 pm

Re: Attack on Titan 2 .BIN

Post by condemn »

up
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Attack on Titan 2 .BIN

Post by aluigi »

Use this script on that linkdata file and upload the file it generates:

Code: Select all

log "uploadme.dat" 0x1978f608 0x8a2
condemn
Posts: 17
Joined: Sat May 11, 2019 3:26 pm

Re: Attack on Titan 2 .BIN

Post by condemn »

Thank you Aluigi !

Here is the file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Attack on Titan 2 .BIN

Post by aluigi »

It's not an error of quickbms or the script.
Are you sure that archive is original and it's not corrupted?
The algorithm is correct (zlib) and there is clearly zlib data starting from offset 0 of the uploadme.dat file BUT it's invalid since offzip finds nothing and there is another zlib stream at offset 0x800.

Maybe it's possible that the format has some old entries that must be skipped while the script read them... don't know.
Anyway currently I have no other ideas.
condemn
Posts: 17
Joined: Sat May 11, 2019 3:26 pm

Re: Attack on Titan 2 .BIN

Post by condemn »

Yes the archive is original and I don't think it's corrupted since it works in game.
I did retry to extract it by redownloading the Attack on Titan script.bms, the archive is about 7gb so I use quickbms_4gb_file,
the thing it extracts a bunch of "000000000000000.dat, 000000000000001.dat" till 00000000000199.dat, then I got the error. When extracting the .dat file, there is some like 000000000000189.dat then 00000000000018a.dat, 00000000000018b etc..
Maybach
Posts: 2
Joined: Wed May 13, 2020 10:10 pm

Re: Attack on Titan 2 .BIN

Post by Maybach »

Hello,
I am trying to extract the same LINKDATA_B.bin and running into the same issue.
The data is not corrupted, because I tried with the PC version, and then the PS Vita version (twice), and the script stops after generating the same amount of files.

Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info: algorithm 1
offset 0291a508
input size 0x0000425e 16990
output size 0x00008000 32768
result 0xffffffff -1

The hexa screenshot if it's any help :
Image

So I am interested in your idea to "skip old entries" but I don't know how to modify the .bms to make a trial.
And sorry I was not able to generate uploadme.dat
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Attack on Titan 2 .BIN

Post by aluigi »

The only "workaround" is adding "comtype zlib_noerror" at the beginning of the script.

It will just decompress the invalid data without reporting any error... a sort of skip, yeah.
Maybach
Posts: 2
Joined: Wed May 13, 2020 10:10 pm

Re: Attack on Titan 2 .BIN

Post by Maybach »

Okay, I tried and it just ignored all the data after the faulty offset.
So it didn't help me ! Must be an unknown format.
Don't worry, in the 1st place I will just edit what I am able to, and it will already keep me occupied for some time (^,^)_b
princeamarante
Posts: 6
Joined: Mon Jan 04, 2021 1:22 am

Re: Attack on Titan 2 .BIN

Post by princeamarante »

hello condemn, the script: attack_on_titan.bms unzips the file: "LINKDATA_A.Bin from attack on titan 2?
I used this script in the Quick BMS GUI and did not unzip the file, but as you say here that you did it, could you give me the command or form that you used the script, so that I can unzip it: LINKDATA_A.Bin?
when I manage to unzip this file I will have several folders with the extension.dat, correct?
Spoop
Posts: 2
Joined: Mon Jan 18, 2021 3:40 pm

Re: Attack on Titan 2 .BIN

Post by Spoop »

Does it include Rigs?