Lattyware / unrpa

A program to extract files from the RPA archive format.
http://www.lattyware.co.uk/projects/unrpa/
GNU General Public License v3.0
590 stars 74 forks source link

How did I used '-f'? #13

Closed Frederisk closed 5 years ago

Frederisk commented 6 years ago

when I used it to unrap a file, CMD said "unrpa: error: file doesn't look like an archive, if you are sure it is, use -f.". But I don't know how to use '-f' to solve this problem. What should I do?

Lattyware commented 6 years ago

You can do unrpa -h to get help. -f takes a version number, e.g: unrpa -f 3 along with other arguments you need - the versions are 1, 2 &3.

That said, it's highly likely this won't work - an archive should be detectable. There is probably another issue (is it definitely a real RPA archive?).

If you think it is definitely valid and it still doesn't work, you can send me the file (privately to avoid copyright issues if necessary) and I can take a look and see if there is a new version or some other problem.

Frederisk commented 6 years ago

It should be a RPA file.

image

Unfortunately, this approach does not seem to work. It will still display a warning:'-f 1' zlib.error Error -3 while decompressing data: incorrect header check '-f 2' ValueError: invalid literal for int() with base 16: b'0000000000e3b7cb f15a4700\n' & '-f 3' zlib.error: Error -5 while decompressing data: incomplete or truncated stream : . Perhaps I have to send you the file. how should I send it? Can I use email?

Lattyware commented 6 years ago

Your screenshot seems a little suspect, as I don't see an RPA file - it would normally be inside the game directory, as archive.rpa (occasionally other names but always .rpa). Are you trying to use unrpa on a zip of a whole game? If so, you need to extract the .rpa file from the game directory, and run unrpa on just that file.

You can send it to me by email if you were already doing that.

Lattyware commented 5 years ago

I have successfully extracted files from this type of archive - the process isn't automated, but is described in my comment on the issue I have made for implementing support for this kind of archive properly.

I'll close this issue for now as there is now a solution, but the other issue will remain open to implement this properly.