C3RV1/UndertaleNDS

nitrofs.zip is not a zip file error

Opened this issue · 10 comments

Hi,
I keep getting this error trying to run python3 tools/patch_files.py ../nitrofs.zip.patch ../nitrofs:

Traceback (most recent call last):
  File "C:\Users\admin\Downloads\UndertaleNDS\tools\patch_files.py", line 41, in <module>
    shutil.unpack_archive(sys.argv[2] + ".zip", sys.argv[2], 'zip')
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1520.0_x64__qbz5n2kfra8p0\Lib\shutil.py", line 1318, in unpack_archive
    func(filename, extract_dir, **dict(format_info[2]), **filter_kwargs)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1520.0_x64__qbz5n2kfra8p0\Lib\shutil.py", line 1214, in _unpack_zipfile
    raise ReadError("%s is not a zip file" % filename)
shutil.ReadError: ../nitrofs.zip is not a zip file

It also happens with the tools folder as well

C3RV1 commented

Can you find any generated nitrofs.zip or tools.zip files in the folders?

yeah, when i open them there's no files in the .zip

C3RV1 commented

what's the size of the files? and could you also check the size of the .patch files?

the zips are 0kb
tools patch: 434kb
nitrofs patch: 38,546kb

C3RV1 commented

mhm somehow the zip files weren't created correctly, let me check the code

C3RV1 commented

isn't there a Undertale.nds file?

yep there is an undertale.nds file, that works fine but it has the game vers not supported message

C3RV1 commented

if you get the version not supported error that's probably why the zip files weren't generated correctly. without the right game.win the files won't be created

Where do i get the files?

It’s under your steam game files ( browse local files on steam)