Page 1 of 1

Characters not matched with sprites

Posted: Mon Jan 13, 2020 10:03 pm
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.

Re: Characters not matched with sprites

Posted: Tue Jan 14, 2020 12:24 am
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"

Re: Characters not matched with sprites

Posted: Tue Jan 14, 2020 12:21 pm
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.

Re: Characters not matched with sprites

Posted: Wed Jan 15, 2020 12:36 am
by briarbun
Hm, this didn't seem to fix the problem?

Re: Characters not matched with sprites

Posted: Wed Jan 15, 2020 7:12 am
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