For reference the code that's causing this error is this:
Code: Select all
python:
try: renpy.file(config.basedir + "/game/notepad/to_niko.txt")
except: open(config.basedir + "/game/notepad/to_niko.txt", "wb").write(renpy.file("/notepad/to_niko.txt").read())
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 6983, in script
python:
File "game/script.rpy", line 6985, in <module>
except: open(config.basedir + "/game/notepad/to_niko.txt", "wb").write(renpy.file("/notepad/to_niko.txt").read())
OSError: Couldn't find file 'notepad/to_niko.txt'.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 6983, in script
python:
File "C:\Users\My Laptop\Desktop\ETOT_Current_Progress\renpy\ast.py", line 1138, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\My Laptop\Desktop\ETOT_Current_Progress\renpy\python.py", line 1122, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/script.rpy", line 6985, in <module>
except: open(config.basedir + "/game/notepad/to_niko.txt", "wb").write(renpy.file("/notepad/to_niko.txt").read())
File "C:\Users\My Laptop\Desktop\ETOT_Current_Progress\renpy\exports.py", line 2607, in file
return open_file(fn, encoding=encoding)
File "C:\Users\My Laptop\Desktop\ETOT_Current_Progress\renpy\exports.py", line 2589, in open_file
rv = renpy.loader.load(fn, directory=directory)
File "C:\Users\My Laptop\Desktop\ETOT_Current_Progress\renpy\loader.py", line 833, in load
raise IOError("Couldn't find file '%s'." % name)
OSError: Couldn't find file 'notepad/to_niko.txt'.
Windows-10-10.0.22621 AMD64
Ren'Py 8.1.1.23060707
The Eerie Town of Tora 1.0
Mon Nov 20 20:49:06 2023