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.
-
xxmissarichanxx
- Regular
- Posts: 87
- Joined: Thu Jul 11, 2013 1:37 am
- Completed: Froot Basket Valentine, Devious
- Projects: After-Party Chemistry, The Salaryman
- Tumblr: xxmissarichanxx
- Deviantart: xxmissarichanxx
- itch: xxmissarichanxx
- Location: US
-
Contact:
#1
Post
by xxmissarichanxx » Fri Feb 21, 2014 5:01 pm
Hello! I need some help because I can't figure out what's wrong. I've already defined the character "a"
and throughout the game the character's lines can be read. At a certain point, however, I keep getting traceback errors telling me this:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 475, in script
Exception: Sayer a is not a function or string.
What do I do? What's wrong?
Last edited by
xxmissarichanxx on Sat Feb 22, 2014 2:21 am, edited 1 time in total.
-
trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
-
Contact:
#2
Post
by trooper6 » Fri Feb 21, 2014 11:10 pm
Could you post your code where you define the Character class?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe:
http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
Asceai
- Eileen-Class Veteran
- Posts: 1258
- Joined: Fri Sep 21, 2007 7:13 am
- Projects: a battle engine
-
Contact:
#3
Post
by Asceai » Fri Feb 21, 2014 11:34 pm
define puts the code in an init block implicitly, so I don't think that's the problem. All I can think of is that maybe you overwrote 'a' with something else later on. Probably have to see the script up until it stops working.
-
rakada
- Regular
- Posts: 71
- Joined: Tue Jan 07, 2014 11:00 pm
-
Contact:
#4
Post
by rakada » Sat Feb 22, 2014 12:22 am
define a = Character('sidney',) this seems to work for me should show your code maybe you got some little thing wrong that causing it
-
xxmissarichanxx
- Regular
- Posts: 87
- Joined: Thu Jul 11, 2013 1:37 am
- Completed: Froot Basket Valentine, Devious
- Projects: After-Party Chemistry, The Salaryman
- Tumblr: xxmissarichanxx
- Deviantart: xxmissarichanxx
- itch: xxmissarichanxx
- Location: US
-
Contact:
#5
Post
by xxmissarichanxx » Sat Feb 22, 2014 2:21 am
OMG, i overwrote it with something later on! thanks! you guys were all a big help. i never would have thought of these problems myself. xDD i'm seriously so thankful. C:
Users browsing this forum: Google [Bot]