nicoboss/nsz

OSError: Not a valid PFS0 partition b'\x97\xe2C\xa9'

mrbob55 opened this issue · 3 comments

I got this error when trying to convert Trine 5 A Clockwork Conspiracy [0100E2701A888000][v0][US](nsw2u.com).xci. I guess the file data must not be compatible with this program for whatever reason.

I was able to work around this problem by first using https://github.com/The-4n/4NXCI to convert to an nsp, and then I used this program to convert to nsz.

Hope this is helpful to someone.

@mrbob55 Can you please try if this issue still occurs in the latest NSZ 4.6.0 release and let me know about the result. The latest release contains a major XCI/XCZ rewrite fixing many XCI/XCZ related issues. I don't own this game so I can't test it myself but it's quite likely that this issue is fixed now. Should this issue still occurs in the latest release please post the error message you see in the terminal window.

Hello,

Sorry it has taken me so long to reply. I just tried 4.6.1 but unfortunately I am getting the same error.

I didn't post the stack trace before but in any case here's where the error originates:

  File "C:\path\to\nsz_v4.6.1_win64_portable\lib\site-packages\nsz\Fs\Pfs0.py", line 237, in open
    raise IOError('Not a valid PFS0 partition ' + str(self.magic))
OSError: Not a valid PFS0 partition b'\x97\xe2C\xa9'

Thanks for trying to fix it.

Make sure you have the latest keys. I ran into the same problem with the 16.0.x keys. Used 17.0.x keys and all was good in the 'hood.