SOLVEDDefined a Character but still having problems... 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
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:

SOLVEDDefined a Character but still having problems... Help?

#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"

Code: Select all

define a = Character ('Sidney')
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.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Defined a Character but still having problems... Help?

#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

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Defined a Character but still having problems... Help?

#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.

User avatar
rakada
Regular
Posts: 71
Joined: Tue Jan 07, 2014 11:00 pm
Contact:

Re: Defined a Character but still having problems... Help?

#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

User avatar
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:

Re: Defined a Character but still having problems... Help?

#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:

Post Reply

Who is online

Users browsing this forum: Google [Bot]