Metly Blood: Type Lumina (Steam)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AyanamiRei0
Posts: 18
Joined: Thu May 02, 2019 6:22 pm

Metly Blood: Type Lumina (Steam)

Post by AyanamiRei0 »

Okay this game got released today and sadly the files are encrypted unlike the Switch version I have no clue what sort of compression it's using all I really see it's a bunch of random bytes

The game uses a bunch of bin files from data000 to data014 any help with decrypting these would be a big help

Thanks!
LinkOFF
Posts: 88
Joined: Thu Aug 11, 2016 6:52 pm

Re: Metly Blood: Type Lumina (Steam)

Post by LinkOFF »

More examples in archive (big archives cutted by filecutter.bms) - https://drive.google.com/file/d/1PMRVNk ... sp=sharing
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Ekey »

Data is xored with 1024 key size and some magic constants. Offsets and Sizes table inside executable file with next sizes > int Offsets_Table[10284] & int Sizes_Table[10284]

Archives information:

Code: Select all

data000.bin -> ___English
data001.bin -> ___Korean
data002.bin -> ___Region
data003.bin -> ___S_Chinese
data004.bin -> ___T_Chinese
data005.bin -> BattleRes
data006.bin -> bg
data007.bin -> Bgm
data008.bin -> data
data009.bin -> DLC
data010.bin -> grpdat
data011.bin -> script
data012.bin -> se
data013.bin -> Shader
data014.bin -> System


file names are also in the EXE
Last edited by Ekey on Sat Oct 02, 2021 2:46 pm, edited 4 times in total.
AyanamiRei0
Posts: 18
Joined: Thu May 02, 2019 6:22 pm

Re: Metly Blood: Type Lumina (Steam)

Post by AyanamiRei0 »

And how would I go around editing these though?
AyanamiRei0
Posts: 18
Joined: Thu May 02, 2019 6:22 pm

Re: Metly Blood: Type Lumina (Steam)

Post by AyanamiRei0 »

Ekey wrote:Data is xored with 1024 key and some magic constants. Offsets and Sizes table inside executable file with next size > int Offsets_Table[10284] & int Sizes_Table[10284]

Archives information:

Code: Select all

data000.bin -> ___English
data001.bin -> ___Korean
data002.bin -> ___Region
data003.bin -> ___S_Chinese
data004.bin -> ___T_Chinese
data005.bin -> BattleRes
data006.bin -> bg
data007.bin -> Bgm
data008.bin -> data
data009.bin -> DLC
data010.bin -> grpdat
data011.bin -> script
data012.bin -> se
data013.bin -> Shader
data014.bin -> System


file names are also in the EXE


I'm sorry if I sound stupid or something but I honestly haven't got a single clue what you're talking about I was just looking for a way to dump them well at this point just data008.bin because that contains the palettes.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Ekey »

AyanamiRei0 wrote:I'm sorry if I sound stupid or something but I honestly haven't got a single clue what you're talking about I was just looking for a way to dump them well at this point just data008.bin because that contains the palettes.

All information provided by me is for development only. I am currently working on unpacker.

Some progress: grpdat/Customize/customize_thumb_icon00.dds
Image
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Ekey »

Tool for extract BIN archives :roll:

Binary: here
Source: here

Note: Unlock all files insize ZIP before use :)
Last edited by Ekey on Thu Sep 30, 2021 9:51 pm, edited 1 time in total.
Hergog
Posts: 4
Joined: Sun Feb 14, 2021 5:51 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Hergog »

Any help with this?

https://drive.google.com/drive/folders/ ... sp=sharing

It's from the archives DLC add on
Last edited by Hergog on Thu Sep 30, 2021 10:14 pm, edited 1 time in total.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Metly Blood: Type Lumina (Steam)

Post by spiritovod »

It sounds funny, but someone should fix the topic title for proper search indexing, the game is called Melty Blood, not Metly Blood )
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Ekey »

spiritovod wrote:It sounds funny, but someone should fix the topic title for proper search indexing, the game is called Melty Blood, not Metly Blood )

oh lol, I copied game name for the tool from this topic :D


:|
viewtopic.php?p=66779#p66779
kmshours
Posts: 1
Joined: Mon Oct 04, 2021 9:59 pm

Re: Metly Blood: Type Lumina (Steam)

Post by kmshours »

Does anyone know how you would go about repacking the files back to .bin?
Mysticus
Posts: 182
Joined: Sat Mar 02, 2019 3:24 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Mysticus »

Is there any tool to extract .pat files?
LinkOFF
Posts: 88
Joined: Thu Aug 11, 2016 6:52 pm

Re: Metly Blood: Type Lumina (Steam)

Post by LinkOFF »

Mysticus wrote:Is there any tool to extract .pat files?
AyanamiRei0
Posts: 18
Joined: Thu May 02, 2019 6:22 pm

Re: Metly Blood: Type Lumina (Steam)

Post by AyanamiRei0 »

So we've got a new update and the unpacker needs updating to support the new files. They've added Dead Apostle Noel and Aoko Aozaki
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Ekey »

AyanamiRei0 wrote:So we've got a new update and the unpacker needs updating to support the new files. They've added Dead Apostle Noel and Aoko Aozaki

Unfortunately i don't have game with all DLC's.
AyanamiRei0
Posts: 18
Joined: Thu May 02, 2019 6:22 pm

Re: Metly Blood: Type Lumina (Steam)

Post by AyanamiRei0 »

Ekey wrote:
AyanamiRei0 wrote:So we've got a new update and the unpacker needs updating to support the new files. They've added Dead Apostle Noel and Aoko Aozaki

Unfortunately i don't have game with all DLC's.


Oh it's just like the launch version it's got file paths inside the exe still so even without the owning the DLC characters they're already in the game.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Ekey »

Well, anyway I don't even have a base game version.
AyanamiRei0
Posts: 18
Joined: Thu May 02, 2019 6:22 pm

Re: Metly Blood: Type Lumina (Steam)

Post by AyanamiRei0 »

Ekey wrote:Well, anyway I don't even have a base game version.

How would i go around updating it?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Metly Blood: Type Lumina (Steam)

Post by Ekey »

If you want to do it yourself, then you need to get 3 tables from the executable file, an offset table, a size table and a file name table.
cat_Chill
Posts: 1
Joined: Sat Jan 15, 2022 4:59 pm

Re: Metly Blood: Type Lumina (Steam)

Post by cat_Chill »

Ekey wrote:If you want to do it yourself, then you need to get 3 tables from the executable file, an offset table, a size table and a file name table.


How would one do this properly actually? I kinda made my own tables based on what you've made yourself through pattern recognition in essence lol. I made my own version of the Cache_OT.bin and Cache_ST.bin by looking at yours in a hex editor and looking for similarities when going over the contents of the exe file. The filenames are just in the exe but did their order in the Cache_FN.txt you made matter, and if yes how is it ordered?

I think that I got the offset and size tables down since I got to unpack data007.bin properly but when I checked the rest it looks off, like one file having the contents of another. When I looked at your filename table, it's a bit weird in how its ordered, its alphabetical but it has some special conditions of sorts so I thought maybe the order matters.

I'll put the Cache files I made here so someone can check