GameArchives icon indicating copy to clipboard operation
GameArchives copied to clipboard

Amplitude PS2 .ark missing some files

Open mtolly opened this issue 3 years ago • 2 comments

While working on Amplitude PS2 (ark v2) modification I discovered compressed texture files are missing from the visible/extractable contents in ArchiveExplorer.

The culprit appears to be this line which skips any files that do not have a zero for the final part of the file entry. However Pikmin's notes say that this just means it's a gzip-compressed file.

For example this file should be present at arenas/constructo/gen/backdrop01.bmp.gz (not to be confused with the uncompressed arenas/constructo/backdrop01.bmp which is an actual Windows bitmap, possibly the source file included by mistake?)

I have not yet checked to see if any other Ark versions such as GH1/2/80s have these kinds of files.

mtolly avatar Aug 09 '20 23:08 mtolly

I have not yet checked to see if any other Ark versions such as GH1/2/80s have these kinds of files.

I know for a fact EyeToy: AntiGrav uses that reserved field. However, the game instead uses .z extension (zlib compression) for related entries. It's also on ark v2.

PikminGuts92 avatar Aug 12 '20 21:08 PikminGuts92

IIRC both gzip and zlib are just wrappers around DEFLATE compression, we should be able to just do something like the library does for compressed FSAR files (https://github.com/maxton/GameArchives/blob/master/Library/FSAR/FSARFile.cs#L75)

maxton avatar Aug 13 '20 02:08 maxton