Page 1 of 1

No image tag associated to the speaking character

Posted: Mon May 07, 2018 5:16 pm
by Nonohell
Hey!
Sometimes in my games renpy will tell me that:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 77, in script call
    call ch0_main
  File "game/chpt-0.rpy", line 234, in script
    s 2b"I had no idea you were so good at baking, Character without name !"
Exception: Say has image attributes (u'2b',), but there's no image tag associated with the speaking character.

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

Full traceback:
  File "game/script.rpy", line 77, in script call
    call ch0_main
  File "game/chpt-0.rpy", line 234, in script
    s 2b"I had no idea you were so good at baking, Character without name !"
  File "C:\Users\boulanger\Downloads\renpy-6.99.14.1-sdk\renpy\ast.py", line 643, in execute
    renpy.exports.say(who, what, interact=self.interact, *args, **kwargs)
  File "C:\Users\boulanger\Downloads\renpy-6.99.14.1-sdk\renpy\exports.py", line 1176, in say
    who(what, *args, **kwargs)
  File "C:\Users\boulanger\Downloads\renpy-6.99.14.1-sdk\renpy\character.py", line 949, in __call__
    self.resolve_say_attributes(False, wanted=speaking)
  File "C:\Users\boulanger\Downloads\renpy-6.99.14.1-sdk\renpy\character.py", line 845, 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'2b',), but there's no image tag associated with the speaking character.

Windows-8-6.2.9200
Ren'Py 6.99.14.1.3218
Day Like The Others
Mon May 07 23:14:46 2018

It makes him asser often but only with one character, I do not know why. Could you help me ?

Re: No image tag associated to the speaking character

Posted: Mon May 07, 2018 5:49 pm
by Andredron
NEVER START THE NAMES OF VARIABLES AND LABEL WITH NUMBERS

Re: No image tag associated to the speaking character

Posted: Tue May 08, 2018 4:56 am
by Nonohell
Ok but... That work with the others characters... I'm gonna try exchange the numbers and the letters and I give you the result.

Re: No image tag associated to the speaking character

Posted: Tue May 08, 2018 5:23 am
by Nonohell
No that's don't work... The problem persist

Re: No image tag associated to the speaking character

Posted: Tue May 08, 2018 5:29 am
by Nonohell
Ok I found the answer ! I accidentaly define the character twice in the script and the second time I don't add the image='Sabrina'