UndertaleNDS icon indicating copy to clipboard operation
UndertaleNDS copied to clipboard

nitrofs.zip is not a zip file error

Open OofChair opened this issue 1 year ago • 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

OofChair avatar Aug 30 '23 18:08 OofChair

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

C3RV1 avatar Aug 30 '23 19:08 C3RV1

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

OofChair avatar Aug 30 '23 19:08 OofChair

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

C3RV1 avatar Aug 30 '23 19:08 C3RV1

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

OofChair avatar Aug 30 '23 19:08 OofChair

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

C3RV1 avatar Aug 30 '23 19:08 C3RV1

isn't there a Undertale.nds file?

C3RV1 avatar Aug 30 '23 19:08 C3RV1

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

OofChair avatar Aug 30 '23 19:08 OofChair

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

C3RV1 avatar Aug 31 '23 05:08 C3RV1

Where do i get the files?

Aly3663 avatar Apr 05 '24 21:04 Aly3663

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

SgtSalmon avatar Apr 05 '24 22:04 SgtSalmon