H1Z1 New Asset Format help

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Utuy
Posts: 9
Joined: Sat Nov 04, 2017 1:42 pm

H1Z1 New Asset Format help

Post by Utuy »

Hey After update the game using a different asset format .pack2 how to extract it now?

https://drive.google.com/open?id=0B58me ... VJYWjhZTzA
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: H1Z1 New Asset Format help

Post by aluigi »

Utuy
Posts: 9
Joined: Sat Nov 04, 2017 1:42 pm

Re: H1Z1 New Asset Format help

Post by Utuy »

Thanks for your work. But is it possible to get extracted file names? Like in old asset format, Icon_MetalShards or ImageSetMappings for example
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: H1Z1 New Asset Format help

Post by aluigi »

Eh, not possible because this new version doesn't store the original filenames, the only thing available is their 64bit hash
Utuy
Posts: 9
Joined: Sat Nov 04, 2017 1:42 pm

Re: H1Z1 New Asset Format help

Post by Utuy »

Okay, but can it be repacked? That i could start the game with edited files. In old version, i just extract asset in a folder and i been able to play with my custom skins

Sorry for bad english
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: H1Z1 New Asset Format help

Post by aluigi »

The script is valid for reimporting, it uses just zlib as compression algorithm which is good for reimporting.
What I think is a problem is a field that looks like a CRC, if that's really a CRC and the game checks it then your edited archive will not be accepted by the game.

So just try editing only one file (delete all the extracted others that have not been edited) and reimporting it, maybe you are lucky and the game will load the archive.
Utuy
Posts: 9
Joined: Sat Nov 04, 2017 1:42 pm

Re: H1Z1 New Asset Format help

Post by Utuy »

I tried editing only one file and reimporting it, the game load the archive and all files works correctly in it except that one i edited. Maybe I did not reimport it correctly
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: H1Z1 New Asset Format help

Post by aluigi »

That means the CRC is checked and the file is ignored.
Utuy
Posts: 9
Joined: Sat Nov 04, 2017 1:42 pm

Re: H1Z1 New Asset Format help

Post by Utuy »

Even without changes, reimported file doesnt work
This game never had CRC check, i don't think they added it. In changelog they wrote, the game using a different asset format that saves a lot of space and loads faster. So the size of the installed game should go down about 30%, nothing about CRC check, Is there a 100% CRC check method?. In game version before the patch i used planetside2 tool to unpack .pack files and everything was fine. Maybe exe files before and after patch could help to check is there a CRC check?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: H1Z1 New Asset Format help

Post by aluigi »

Utuy wrote:Even without changes, reimported file doesnt work

If the file was compressed (as it is for sure) its crc changes after reimporting.
Utuy
Posts: 9
Joined: Sat Nov 04, 2017 1:42 pm

Re: H1Z1 New Asset Format help

Post by Utuy »

I think that is not crc, maybe something else is wrong, because after patch i can play with old files like normal.
And yeah the game has launcher and at the start, launcher check files for updates and with old files or edited files game starts without problem, so i think they don't have file checks
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: H1Z1 New Asset Format help

Post by aluigi »

Every archived file in the archive has a crc.
File1 crc ok... use it
File2 crc ok... use it
File3 crc invalid... do not use it
File4 crc ok... use it
That's what I mean and it's what you are reporting apparently (as you said "except that one i edited").

Anyway there are no solutions or easy solutions so nothing else to add to the topic.
Utuy
Posts: 9
Joined: Sat Nov 04, 2017 1:42 pm

Re: H1Z1 New Asset Format help

Post by Utuy »

Yeah this guys from daybreak are really stupid. You can delete buildings, trees, grass from the game, but you can't edit files, nice implemented file check.

Aluigi, can you explain me why i can play with old assets, when they have different size, files inside them, but game doesn't accept edited by me files, why pre patch files pass crc check?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: H1Z1 New Asset Format help

Post by aluigi »

No, I can't.
I don't have the game.

It's very easy: if you do reimporting and you get a success message from quickbms without being prompted about to the bigger size of the file, everything is ok from quickbms.
For everything else I'm not involved, I know absolutely nothing and I can't help.
Utuy
Posts: 9
Joined: Sat Nov 04, 2017 1:42 pm

Re: H1Z1 New Asset Format help

Post by Utuy »

Aluigi Can you help decompress this file and compress decompressed one? Decompressed file have bigger size and i can't reimport it.
https://drive.google.com/file/d/1gmbM-d5vXfBfTRKcAovxWiuMFlFxyT6s/view