Characters not matched with sprites

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
briarbun
Regular
Posts: 49
Joined: Wed Feb 20, 2019 4:23 pm
Projects: Helix Felix
Location: PNW
Contact:

Characters not matched with sprites

#1 Post by briarbun »

When I load up my project, none of the sprites for any characters are displayed, only the default shadow, the sprites name, and attribute are shown. Eventually even this stops, and the following error comes up:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 50, in script
    a happy "Well, let's put them away together okay?"
Exception: Say has image attributes (u'happy',), but there's no image tag associated with the speaking character.

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

Full traceback:
  File "game/script.rpy", line 50, in script
    a happy "Well, let's put them away together okay?"
  File "C:\Users\Briar\Documents\Programs\renpy-7.3.2-sdk\renpy\ast.py", line 706, in execute
    renpy.exports.say(who, what, *args, **kwargs)
  File "C:\Users\Briar\Documents\Programs\renpy-7.3.2-sdk\renpy\exports.py", line 1336, in say
    who(what, *args, **kwargs)
  File "C:\Users\Briar\Documents\Programs\renpy-7.3.2-sdk\renpy\character.py", line 1075, in __call__
    old_attr_state = self.handle_say_attributes(False, interact)
  File "C:\Users\Briar\Documents\Programs\renpy-7.3.2-sdk\renpy\character.py", line 942, in handle_say_attributes
    if self.resolve_say_attributes(predicting, attrs):
  File "C:\Users\Briar\Documents\Programs\renpy-7.3.2-sdk\renpy\character.py", line 868, in resolve_say_attributes
    raise Exception("Say has image attributes %r, but there's no image tag associated with the speaking character." % (attrs,))
Exception: Say has image attributes (u'happy',), but there's no image tag associated with the speaking character.

Windows-8-6.2.9200
Ren'Py 7.3.2.320
HelixFelix 1.0
Mon Jan 13 17:59:07 2020

This is my code for the character in question:

Code: Select all

a = Character(_("Addison"), color="#ffe4b8")

Code: Select all

image side addison happy = "images/sprites/addison happy.png"
I'm very new to all of this, so its probably something really simple, but I can't get my head around it.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Characters not matched with sprites

#2 Post by rayminator »

I think you forgot something you forgot to put image="addison" the code that you are using is for side images

Code: Select all

a = Character(_("Addison"), color="#ffe4b8", image="addison")
then is a sentence it would be like this

Code: Select all

a happy "Hello there I'm happy person"

briarbun
Regular
Posts: 49
Joined: Wed Feb 20, 2019 4:23 pm
Projects: Helix Felix
Location: PNW
Contact:

Re: Characters not matched with sprites

#3 Post by briarbun »

rayminator wrote: Tue Jan 14, 2020 12:24 am

Code: Select all

a = Character(_("Addison"), color="#ffe4b8", image="addison")
Thank you! I knew it was something stupid on my end.

briarbun
Regular
Posts: 49
Joined: Wed Feb 20, 2019 4:23 pm
Projects: Helix Felix
Location: PNW
Contact:

Re: Characters not matched with sprites

#4 Post by briarbun »

Hm, this didn't seem to fix the problem?

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Characters not matched with sprites

#5 Post by rayminator »

here is some information this for sprites
https://www.renpy.org/doc/html/sprites.html

here is some information this for side images this what you are using instead sprites
https://www.renpy.org/doc/html/side_image.html

Post Reply

Who is online

Users browsing this forum: Google [Bot]