How to solve IOError? (SOLVED)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
salventus
Newbie
Posts: 20
Joined: Fri Jun 20, 2014 12:16 am
Contact:

How to solve IOError? (SOLVED)

#1 Post 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?
Last edited by salventus on Sat Aug 30, 2014 11:59 pm, edited 1 time in total.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: How to solve IOError?

#2 Post by xela »

Delete all .rpyc (do NOT confuse with .rpy, do not delete those!) files and try again.
Like what we're doing? Support us at:
Image

salventus
Newbie
Posts: 20
Joined: Fri Jun 20, 2014 12:16 am
Contact:

Re: How to solve IOError?

#3 Post 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? :(

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: How to solve IOError?

#4 Post 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.
Like what we're doing? Support us at:
Image

salventus
Newbie
Posts: 20
Joined: Fri Jun 20, 2014 12:16 am
Contact:

Re: How to solve IOError?

#5 Post 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 :)

Post Reply

Who is online

Users browsing this forum: MagicBuns