Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplitude PS2 .ark missing some files #23

Open
mtolly opened this issue Aug 9, 2020 · 2 comments
Open

Amplitude PS2 .ark missing some files #23

mtolly opened this issue Aug 9, 2020 · 2 comments

Comments

@mtolly
Copy link

mtolly commented Aug 9, 2020

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.

@PikminGuts92
Copy link
Contributor

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.

@maxton
Copy link
Owner

maxton commented Aug 13, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants