C3RV1 / UndertaleNDS

Undertale port for Nintendo DS (src only, no copyrighted material).
GNU General Public License v2.0
179 stars 24 forks source link

nitrofs.zip is not a zip file error #26

Open OofChair opened 1 year ago

OofChair commented 1 year ago

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 1 year ago

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

OofChair commented 1 year ago

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

C3RV1 commented 1 year ago

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

OofChair commented 1 year ago

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

C3RV1 commented 1 year ago

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

C3RV1 commented 1 year ago

isn't there a Undertale.nds file?

OofChair commented 1 year ago

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

C3RV1 commented 1 year ago

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

Aly3663 commented 8 months ago

Where do i get the files?

SgtSalmon commented 8 months ago

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