Resident Evil 4 Mobile .h2z File

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
rus_lol_
Posts: 18
Joined: Sun Nov 06, 2016 6:33 am

Re: Resident Evil 4 Mobile .h2z File

Post by rus_lol_ »

Sonderhen wrote:Unfortunately it doesn't work

The game closes when the game opens

I noticed that the new .h2z is four times bigger than the original h2z


Which file are you editing? Send me your apk. Large files because they are not zipped
Sonderhen
Posts: 17
Joined: Sat Jun 15, 2019 1:06 am

Re: Resident Evil 4 Mobile .h2z File

Post by Sonderhen »

I'm trying to edit the same file in the attachment (common.h2z)
The new h2z created by your program does not re-encrypt the files, I believe that is why the game is not working.
moonsarito1
Posts: 7
Joined: Thu Jul 18, 2019 2:42 am

Re: Resident Evil 4 Mobile .h2z File

Post by moonsarito1 »

The extractor works with the Zeebo Version of Resident Evil 4, Thanks Man :D
https://i.imgur.com/IPYEU78.png
Maybe now I can modify the game, I'm really curious if I can put a map or model of the console version in that version.

PS: Here the files of the Zeebo version if someone wants to study or modify
https://www.dropbox.com/s/glzr9zilxoh1i ... n.rar?dl=0
moonsarito1
Posts: 7
Joined: Thu Jul 18, 2019 2:42 am

Re: Resident Evil 4 Mobile .h2z File

Post by moonsarito1 »

rus_lol_ wrote:Im write tool to decrypt and unpack h2z files. For convenience upload on github.
https://github.com/ruslol/H2ZExtractor/releases/


Thank you really much
https://i.imgur.com/tYgPpGB.png

I still don't know how to edit the 3D models of the game or 2D images, but the songs and voices are well '' exposed '' I believe I can edit by voices with more quality without problems.

[edit]
Apart from the sound effects and music from the Zeebo version, all game assets, 3D models, textures and etc ... are in .mct .mcts .mcas .mcms files, both in the Android version and in the Zeebo version.

Does anyone have any idea how to modify these files ?, it seems to me that they are compression files.

So far my only progress has been to manage to edit the songs and sounds, it is until a very easy process, just need to change the specific .bin file for the desired audio file.

Here are some of these files, both from the Android and Zeebo versions of Resident Evil 4 Mobile.
https://www.dropbox.com/s/68u2cywivbxxx ... e.zip?dl=0
rus_lol_
Posts: 18
Joined: Sun Nov 06, 2016 6:33 am

Re: Resident Evil 4 Mobile .h2z File

Post by rus_lol_ »

moonsarito1 wrote:
Does anyone have any idea how to modify these files ?, it seems to me that they are compression files.



I also answered you in messages :)
moonsarito1
Posts: 7
Joined: Thu Jul 18, 2019 2:42 am

Re: Resident Evil 4 Mobile .h2z File

Post by moonsarito1 »

rus_lol_ wrote:
moonsarito1 wrote:
Does anyone have any idea how to modify these files ?, it seems to me that they are compression files.



I also answered you in messages :)

I replied back, thank you very much.
Sonderhen
Posts: 17
Joined: Sat Jun 15, 2019 1:06 am

Re: Resident Evil 4 Mobile .h2z File

Post by Sonderhen »

Any news about repack?
Sonderhen
Posts: 17
Joined: Sat Jun 15, 2019 1:06 am

Re: Resident Evil 4 Mobile .h2z File

Post by Sonderhen »

:cry:
Sonderhen
Posts: 17
Joined: Sat Jun 15, 2019 1:06 am

Re: Resident Evil 4 Mobile .h2z File

Post by Sonderhen »

Well, unfortunately without repack I won't be able to finish the project.

But Anyway, thanks for create the extractor
moonsarito1
Posts: 7
Joined: Thu Jul 18, 2019 2:42 am

Re: Resident Evil 4 Mobile .h2z File

Post by moonsarito1 »

No repack yet ? :(
LokiReborn
Posts: 190
Joined: Fri Aug 26, 2016 3:11 pm

Re: Resident Evil 4 Mobile .h2z File

Post by LokiReborn »

moonsarito1 wrote:No repack yet ? :(

You can try this, I edited his code with some tweaks + adding checksum etc.

Edit:
Did test w/ the game and seems to work fine, did edit the code to clean up the checksum function a bit more but functionally no different.
moonsarito1
Posts: 7
Joined: Thu Jul 18, 2019 2:42 am

Re: Resident Evil 4 Mobile .h2z File

Post by moonsarito1 »

LokiReborn wrote:
moonsarito1 wrote:No repack yet ? :(

You can try this, I edited his code with some tweaks + adding checksum etc.

Edit:
Did test w/ the game and seems to work fine, did edit the code to clean up the checksum function a bit more but functionally no different.

Thank you very much for replying, but I'm a little confused, is this just for extracting the .h2z files like the previous file or is it also for repacking the extracted files?

I had already managed to extract the files and have access to the files from the Zeebo version of Resident Evil 4, but I couldn't find a way to repack the files after editing and test in the game.

[Edit]
Wow, I got confused, you added a repack function, thank you very much. xD

I haven't tested it in-game yet but I found it strange that when I extracted the file and then repack it was much lighter.
Image
Image

In this case, I didn't make any edits to the files, I just unzipped and re-compressed it to test it, and it was much lighter.

Taking advantage of the post but does anyone know how I can open .mct, .mcm, mcas and mcts files?, basically I was only able to access the .mid and .wav files because they are not of any proprietary format, so I couldn't edit any 2D images or models.
LokiReborn
Posts: 190
Joined: Fri Aug 26, 2016 3:11 pm

Re: Resident Evil 4 Mobile .h2z File

Post by LokiReborn »

The repack function has always been part of his tool by dragging the folder onto it, previously though he didn't have the checksum added into which would have made the game reject the modified file, there was also the matter of the original file entries using / and when you repacked it would use \ instead and small things like that. As for the file being smaller the original example used deflate on all files and the only exception was when the output size exceeded the input size, so I replicated that behavior. It's possible the version you're working on doesn't use compression which is why it's so much smaller. If it isn't supported than you'd need to use a different version of the app but hard to say without any examples.
DarkSheep
Posts: 6
Joined: Fri Dec 20, 2019 11:29 pm

Re: Resident Evil 4 Mobile .h2z File

Post by DarkSheep »

I managed to extract the common.h2z file from Mercenaries Vs.
Now I'm wondering if it's possible or not to port the content from that game to RE4.

Image