A bug or am I doing something wrong?

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
User avatar
kuroi
Regular
Posts: 129
Joined: Fri Jun 29, 2007 10:50 am
Location: Albuquerque, New Mexico, USA
Contact:

A bug or am I doing something wrong?

#1 Post by kuroi » Mon May 11, 2009 1:53 am

I am trying to fix a few bugs that were pointed out in my game but I'm running into a weird error and I'm not sure if it's a bug or if I'm just doing something wrong. The error looks to me like renpy can't find the script.rpy. It has occured two times once with renpy 6.9.1h and once with 6.9.2a. Both times the error occured when a function in a .rpy file which I created returned back to the script.rpy file.

I can plainly see that the script.rpy file is there and the game successfuly reads from that file before the crash and successfuly returns back to it before the crash. It seems a little like a bug but since everything worked fine before I went back in to fix things, I have to think that maybe I messed something up. Has anyone else had this problem? Any ideas about what I can do to fix it?

The error code is as follows:

Code: Select all

I'm sorry, but an exception occured while executing your Ren'Py
script.

ScriptError: could not find label '('C:\\Users\\Kuroi\\Documents\\Kuroi Games\\Project NaNoPanic\\Game\\Final\\renpy-6.9.1\\Nanopanic/game/script.rpy', 1240415921, 252)'.

While running game code:
 - script at line 101 of C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\Catgirl Panic/game/ch4.rpy
 - script at line 101 of C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\Catgirl Panic/game/ch4.rpy

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

  File "C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\renpy\bootstrap.py", line 255, in bootstrap
  File "C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\renpy\main.py", line 308, in main
  File "C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\renpy\main.py", line 92, in run
  File "C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\renpy\execution.py", line 230, in run
  File "C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\renpy\ast.py", line 989, in execute
  File "C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\renpy\execution.py", line 284, in lookup_return
  File "C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\renpy\script.py", line 463, in lookup
ScriptError: could not find label '('C:\\Users\\Kuroi\\Documents\\Kuroi Games\\Project NaNoPanic\\Game\\Final\\renpy-6.9.1\\Nanopanic/game/script.rpy', 1240415921, 252)'.

While running game code:
 - script at line 101 of C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\Catgirl Panic/game/ch4.rpy
 - script at line 101 of C:\Users\Kuroi\Documents\Kuroi Games\Project NaNoPanic\Game\post release\renpy-6.9.2\Catgirl Panic/game/ch4.rpy

Ren'Py Version: Ren'Py 6.9.2a
President, Planner, and Programmer for Kuroi Games!

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: A bug or am I doing something wrong?

#2 Post by PyTom » Mon May 11, 2009 2:45 am

Hm... There are a couple of things that could cause this, but the most likely is that you saved and changed the script file to the point where Ren'Py can't figure out which line is which anymore. You also probably did a call, and this is happening when you return from the call.

There isn't a way to salvage that save, but you can fix things in the future by running the "Add From to Calls" tool in the tools menu.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
kuroi
Regular
Posts: 129
Joined: Fri Jun 29, 2007 10:50 am
Location: Albuquerque, New Mexico, USA
Contact:

Re: A bug or am I doing something wrong?

#3 Post by kuroi » Mon May 11, 2009 4:59 am

Pytom saves the day again~

Thanks so much!
President, Planner, and Programmer for Kuroi Games!

Post Reply

Who is online

Users browsing this forum: Alex, Google [Bot], nyeowmi