tokyo babel .mpk file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
wawon0
Posts: 4
Joined: Wed Apr 20, 2016 10:46 pm

tokyo babel .mpk file

Post by wawon0 »

Can anyone help me unpack these files?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: tokyo babel .mpk file

Post by aluigi »

http://aluigi.org/bms/tokyo_babel.bms

The mgr files are just bitmap in this archive so I let quickbms to guess and add the correct extension.
wawon0
Posts: 4
Joined: Wed Apr 20, 2016 10:46 pm

Re: tokyo babel .mpk file

Post by wawon0 »

It doesnt work for some files. could it be that there are other types of files like .mp3 and .png as well? I'm new to this, so sorry if I'm incompetent.
I'm uploading the rest of the archives onto mega right now.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: tokyo babel .mpk file

Post by aluigi »

Can you upload one of these archives?
wawon0
Posts: 4
Joined: Wed Apr 20, 2016 10:46 pm

Re: tokyo babel .mpk file

Post by wawon0 »

https://mega.nz/#F!1w9hEBTa!N9zPnBPbHXSYs5gq-buqRw
almost every archive after cm.mpk doesnt work.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: tokyo babel .mpk file

Post by aluigi »

Script 0.2.

The problem was caused by the files non-mgr because only the mgr are compressed.
Note that logo.mpk and probably other files are mpeg videos.
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: tokyo babel .mpk file

Post by Panzerdroid »

Is reimporting possible?

With "yes" to memory_files it says:

- REIMPORT MEMORY_FILE WORK-AROUND: "\bg811c.mgr"
- REIMPORT MEMORY_FILE WORK-AROUND: "\bg811d.mgr"
- REIMPORT MEMORY_FILE WORK-AROUND: "\bg820a.mgr"
/
- 0 files reimported in 1 seconds
coverage file 0 0% 5558 194483318
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: tokyo babel .mpk file

Post by aluigi »

Quickbms 0.7.4a fixed some bugs with the reimporting of memory chunks.
You can try with this version if you have an old one and it "may" work, it worked perfectly in my tests but never tried with this game because it's an experimental feature.
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: tokyo babel .mpk file

Post by Panzerdroid »

aluigi wrote:Quickbms 0.7.4a fixed some bugs with the reimporting of memory chunks.
You can try with this version if you have an old one and it "may" work, it worked perfectly in my tests but never tried with this game because it's an experimental feature.

Tried it, unfortunately with the same result ;(
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: tokyo babel .mpk file

Post by aluigi »

Have you checked if the archive is now different than before?
I mean diff original_archive reimported_archive

Have you selected the SAME files/folders like in the extraction?
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: tokyo babel .mpk file

Post by Panzerdroid »

aluigi wrote:Have you checked if the archive is now different than before?
I mean diff original_archive reimported_archive

Have you selected the SAME files/folders like in the extraction?

Yes. I checked them with fc /b and reimported from the same folder w/o even changing. When changed all files (nullified them) - the result was the same, archive didn't change a bit.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: tokyo babel .mpk file

Post by aluigi »

Ok, I will check it when I will work on the next version of quickbms.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: tokyo babel .mpk file

Post by aluigi »

I have updated the script to version 0.2a for working with the MEMORY_FILE reimporting but now I get files with 0 bytes in extraction.
So reimporting CANNOT work with this archive, sorry.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: tokyo babel .mpk file

Post by aluigi »

Note: the problem is not the reimporting but how the lzf algorithm works so there are few chances that it may work in-game.

Technical explanation: the new reimported block of data is compressed better than the original one, so all the space between its end and the original end is filled with zeroes.
The lzf algorithm (like almost all the compression algorithms) reads all the input bytes till the original end and returns an error (zero) if it tries to write more bytes than the output size (because all the zeroes are handled as compressed data).
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: tokyo babel .mpk file

Post by Panzerdroid »

Well, bad luck then. Thanks for an explanation!