Page 1 of 1

How to solve IOError? (SOLVED)

Posted: Tue Aug 26, 2014 5:06 am
by salventus
So my script code was working just perfectly fine before suddenly i get this error message

Code: Select all

I'm sorry, but an uncaught exception occurred.

While loading the script.
IOError: [Errno 22] Invalid argument

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\bootstrap.py", line 285, in bootstrap
    renpy.main.main()
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\main.py", line 248, in main
    renpy.game.script.load_script() # sets renpy.game.script.
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\script.py", line 177, in load_script
    self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\script.py", line 432, in load_appropriate_file
    f.seek(-md5.digest_size, 2)
IOError: [Errno 22] Invalid argument

Windows-7-6.1.7601-SP1
Ren'Py 6.17.6.512
 
and i don't know where do i did wrong, i've already checked the line mentioned error on the traceback but nothing seems to be out of ordinary.
anyone can help?

Re: How to solve IOError?

Posted: Tue Aug 26, 2014 7:26 am
by xela
Delete all .rpyc (do NOT confuse with .rpy, do not delete those!) files and try again.

Re: How to solve IOError?

Posted: Wed Aug 27, 2014 12:52 am
by salventus
Delete all .rpyc (do NOT confuse with .rpy, do not delete those!) files and try again.
Yes, i try deleting all the .rpyc files (script.rpyc, options.rpyc, and screens.rpyc)
but now, another error occured

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 138, in script call
    call _load_reload_game from _call__load_reload_game_1
  File "renpy/common/00keymap.rpy", line 307, in script
    python hide:
  File "renpy/common/00keymap.rpy", line 317, in <module>
    renpy.load("_reload-2")
Exception: Couldn't find a place to stop rolling back. Perhaps the script changed in an incompatible way?

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "renpy/common/00start.rpy", line 138, in script call
    call _load_reload_game from _call__load_reload_game_1
  File "renpy/common/00keymap.rpy", line 307, in script
    python hide:
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\ast.py", line 756, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\python.py", line 1382, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00keymap.rpy", line 317, in <module>
    renpy.load("_reload-2")
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\loadsave.py", line 564, in load
    log.unfreeze(roots, label="_after_load")
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\python.py", line 1366, in unfreeze
    self.rollback(0, force=True, label=label, greedy=False, on_load=True)
  File "C:\Users\chandra\Downloads\game\pc game\renpy\renpy-6.17.6-sdk\renpy\python.py", line 1224, in rollback
    raise Exception("Couldn't find a place to stop rolling back. Perhaps the script changed in an incompatible way?")
Exception: Couldn't find a place to stop rolling back. Perhaps the script changed in an incompatible way?

Windows-7-6.1.7601-SP1
Ren'Py 6.17.6.512
Lemme Sleep! 0.0
what should i do now? :(

Re: How to solve IOError?

Posted: Wed Aug 27, 2014 1:55 am
by xela
Delete persistent, try starting the game several times. Ren'Py is trying to load a recovery file instead of starting a new game which doesn't seem to be possible any longer.

Re: How to solve IOError?

Posted: Sat Aug 30, 2014 11:58 pm
by salventus
Delete persistent, try starting the game several times. Ren'Py is trying to load a recovery file instead of starting a new game which doesn't seem to be possible any longer.
yeaaa i try deleting persistent several times and finally, my game can runs again!! :D :D :D
thankyou so much for the help :)