Repacking games files [Hitman (2016)]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ShadowEagle
Posts: 9
Joined: Fri Aug 07, 2015 3:21 pm

Repacking games files [Hitman (2016)]

Post by ShadowEagle »

Hi aluigi,

i`m repacking games. At the moment im trying to repack Hitman (2016). Extracting using your wonderful tool and script isn`t a problem. First thanks for that.

But as a repacker i can`t use the original file to inject back the extracted files because the sense of repacking games is to save size.

Is there some way to repack the games, for example Hitman (2016)?

Thanks in advance and best regards.

(I would even pay for a working solution :D )
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Repacking games files

Post by aluigi »

Unfortunately I can't help with rebuilders.
A little work-around, just in case there are no other solutions and the script is valid, you may opt to reimport files with a size of zero.
The result will be an archive containing empty files (like placeholders) with the remaining bytes set to zero, so it will be smaller when compressed.
I don't know if it can be applied to this game, just giving an alternative.
ShadowEagle
Posts: 9
Joined: Fri Aug 07, 2015 3:21 pm

Re: Repacking games files

Post by ShadowEagle »

Thanks fot the fast answer.

You mean to use a dump file (0 byte) file to reimport, right? (Create an empty txt and raname it to desired file name)

If i understood correctly, while reimporting there is message, the the first byte are not correct. Not exactly this message but something like this.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Repacking games files

Post by aluigi »

Yes, an empty file with the same name of the original one will do the job.
The script is valid for reimporting BUT the game uses the LZ4 compression which is a problem in reimport mode, so you can reimport only the non-compressed files (comment out the "clog" line you see in the script to know what files are non-compressed).