monkeyman192 / HGPAKtool

A tool to handle HGPAK files
6 stars 1 forks source link

Type error with other pak except NMSARC.fonts.pak #2

Open zerlkung opened 1 year ago

zerlkung commented 1 year ago
Traceback (most recent call last):
  File "D:\PKGs\Fake PKG Tools\MyTools\No Man Sky\HGPAKtool\HGPAKTool\hgpaktool.py", line 656, in <module>
    f.read()
  File "D:\PKGs\Fake PKG Tools\MyTools\No Man Sky\HGPAKtool\HGPAKTool\hgpaktool.py", line 357, in read
    first_chunks += self.decompress_chunk(i)
TypeError: can't concat NoneType to bytes
Press any key to continue . . .

platform PS4

monkeyman192 commented 1 year ago

This tool only supports switch and Mac .pak files. For ps4 use the usual psarctool

zerlkung commented 1 year ago

But on ps4 is HGPAK i understand is same type of switch, Thank you sir.

czdvoika commented 1 year ago

Monkey: Ps4 is hgpak but zstd compress :-) Zerlkung: you must use bad command becouse me work an ps4 becouse fonts no have compress

monkeyman192 commented 1 year ago

hmmm, can you please post a ps4 .pak file as well? Maybe one compressed and one uncompressed?

zerlkung commented 1 year ago

hmmm, can you please post a ps4 .pak file as well? Maybe one compressed and one uncompressed?

NMSARC.fonts.pak is uncompressed from @czdvoika say.

NMSARC.Language.pak is compressed.

monkeyman192 commented 1 year ago

hmm, interesting! PS4 always used to use the same format as psarctool (ie. zlib/lzma) I'll look into adding this format too when I have time.