Uncaught Exception Occurred, I need Help!

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
Tsukumo Yuma
Newbie
Posts: 5
Joined: Thu Jul 24, 2014 9:42 pm
Contact:

Uncaught Exception Occurred, I need Help!

#1 Post by Tsukumo Yuma »

I keep getting this message when I try to launch project, why?
I'm sorry, but an uncaught exception occurred.

While parsing /Users/Tsukumo/Desktop/GeGeGe no Kitarou/testing_something/game/screens.rpy.
ScriptError: Name u'start' is defined twice: at game/I don't know.rpy:15 and english/game/script.rpy:11.

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

Full traceback:
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/bootstrap.py", line 285, in bootstrap
renpy.main.main()
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/main.py", line 248, in main
renpy.game.script.load_script() # sets renpy.game.script.
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/script.py", line 177, in load_script
self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/script.py", line 438, in load_appropriate_file
if self.load_file(dir, fn + compiled, initcode):
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/script.py", line 320, in load_file
self.finish_load(stmts, initcode)
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/script.py", line 392, in finish_load
node.filename, node.linenumber))
ScriptError: Name u'start' is defined twice: at game/I don't know.rpy:15 and english/game/script.rpy:11.

Darwin-12.5.0-x86_64-i386-64bit
Ren'Py 6.17.7.521
I just started using Ren'py, so I was testing it out, this is what I had done so far in Editra

Image

Even when I removed the top part like this.

Image
It still said the same thing about the uncaught exception.
Can someone help me?

User avatar
mrstalker
Newbie
Posts: 9
Joined: Fri Jul 25, 2014 4:00 pm
Organization: Mellow Bears
Location: Santo André, Brazil
Contact:

Re: Uncaught Exception Occurred, I need Help!

#2 Post by mrstalker »

Tsukumo Yuma wrote:I keep getting this message when I try to launch project, why?
I'm sorry, but an uncaught exception occurred.

While parsing /Users/Tsukumo/Desktop/GeGeGe no Kitarou/testing_something/game/screens.rpy.
ScriptError: Name u'start' is defined twice: at game/I don't know.rpy:15 and english/game/script.rpy:11.

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

Full traceback:
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/bootstrap.py", line 285, in bootstrap
renpy.main.main()
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/main.py", line 248, in main
renpy.game.script.load_script() # sets renpy.game.script.
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/script.py", line 177, in load_script
self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/script.py", line 438, in load_appropriate_file
if self.load_file(dir, fn + compiled, initcode):
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/script.py", line 320, in load_file
self.finish_load(stmts, initcode)
File "/Users/Tsukumo/Desktop/GeGeGe no Kitarou/megaman/renpy-6.17.7-sdk/renpy/script.py", line 392, in finish_load
node.filename, node.linenumber))
ScriptError: Name u'start' is defined twice: at game/I don't know.rpy:15 and english/game/script.rpy:11.

Darwin-12.5.0-x86_64-i386-64bit
Ren'Py 6.17.7.521
I just started using Ren'py, so I was testing it out, this is what I had done so far in Editra

Image

Even when I removed the top part like this.

Image
It still said the same thing about the uncaught exception.
Can someone help me?
Hello!

I reworked your code, just changing some spacing and it is working properly.
Try using TAB when typing the code

Code: Select all

define s = Character('Satoshi', color="#c8ffc8")
define m = Character('Mitsuki', color="#c8c8ff")

label start:
    "This is Crazy!"
    
    m "I don't know what is going ooooon!!!"
    m "This isn't working!"
    s "SHUT UP!!!"
    s "You are to loud, it's annoying!"
    m  "No, you shut up!"
    ".:. Good Ending."
   
 
return
    

User avatar
meiri
Regular
Posts: 177
Joined: Wed Jun 25, 2014 6:21 pm
Projects: Tutor Tabitha, Movement
Organization: Blue Bottlecap Games
Location: East Coast, US
Contact:

Re: Uncaught Exception Occurred, I need Help!

#3 Post by meiri »

Okay, it looks like you have two files in your game folder:
"I don't know.rpy"
and "script.rpy"

Go to the top of Editra where the tabs are (NOT File, Edit etc, and not the little buttons. The tabs that are right above your code...)
What tabs do you have open?

I'm going to guess you made a new file and named it "I don't know.rpy" and then copied and pasted what was in "script.rpy" into the new one, which will spit out an error because you have two 'label start:' names. Ren'py can't go to both at the same time when you start your game :)

Try going in the game directory and deleting "I don't know.rpy"
Then retype your code and stuff into "script.rpy", and see if that works?
Am I making sense?
What's in a loop? A loop iterated in any other way would output as sweet.
--
Have a look at my GxG kinetic novel, Movement, if you have the chance?

User avatar
Tsukumo Yuma
Newbie
Posts: 5
Joined: Thu Jul 24, 2014 9:42 pm
Contact:

Re: Uncaught Exception Occurred, I need Help!

#4 Post by Tsukumo Yuma »

Thank you very much, my issue is solved for now!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]