Character Portraits

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
Eiliya
Regular
Posts: 148
Joined: Tue Dec 04, 2012 6:21 am
Contact:

Character Portraits

#1 Post by Eiliya »

Hi there!

So, there's been an update to RenPy (I have no idea when it happened, it might be old news) and that update has messed up the character portraits in a game I was working on. Here is my code:

Code: Select all

init:
    $ r_nor = Character(_('Ruzzy'),
                        color="#c8ffc8",
                        window_left_padding=160,
                        show_side_image=Image("images/r_normal.png", xalign=0.0, yalign=1.0))

label start:
    r_nor "Hi there, world!"

The code worked before I updated the engine, but stopped working after. Instead, I now get the following error message, which doesn't make any sense at all to me:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 8, in script
    r_nor "Hi there, world!"
Exception: Unknown keyword arguments: side_image

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

Full traceback:
  File "game/script.rpy", line 8, in script
    r_nor "Hi there, world!"
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\ast.py", line 613, in execute
    renpy.exports.say(who, what, interact=self.interact)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\exports.py", line 1147, in say
    who(what, interact=interact)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\character.py", line 877, in __call__
    self.do_display(who, what, cb_args=self.cb_args, **display_args)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\character.py", line 716, in do_display
    **display_args)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\character.py", line 482, in display_say
    what_text = show_function(who, what_string)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\character.py", line 700, in do_show
    **self.show_args)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\character.py", line 283, in show_display_say
    return renpy.display.screen.get_widget(screen, "what", layer)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\display\screen.py", line 1194, in get_widget
    screen.update()
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\display\screen.py", line 578, in update
    self.screen.function(**self.scope)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\ast.py", line 152, in apply_arguments
    return parameters.apply(args, kwargs, ignore_errors)
  File "C:\Users\TheEternals\Downloads\New RenPy\renpy-6.99.12.4-sdk\renpy\ast.py", line 139, in apply
    raise Exception("Unknown keyword arguments: %s" % ( ", ".join(values.keys())))
Exception: Unknown keyword arguments: side_image

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
An S-Rank Quest 1.0
Any help on how to solve this would be greatly appreciated.

User avatar
TellerFarsight
Veteran
Posts: 230
Joined: Sun Jun 04, 2017 8:09 pm
Projects: Vora, Secrets Untold
Location: Toronto, ON
Contact:

Re: Character Portraits

#2 Post by TellerFarsight »

Side images aren't defined inside the character anymore, or something like that.

Here's the documentation:
https://www.renpy.org/doc/html/side_image.html
Current Project: Vora
Also Check Out: Devil Survivor [Reverse-Engineered]

Eiliya
Regular
Posts: 148
Joined: Tue Dec 04, 2012 6:21 am
Contact:

Re: Character Portraits

#3 Post by Eiliya »

Thanks. I'll give that a read.

Eiliya
Regular
Posts: 148
Joined: Tue Dec 04, 2012 6:21 am
Contact:

Re: Character Portraits

#4 Post by Eiliya »

I got it to work. Thanks a lot. So, how do I change the name of this topic to include the [SOLVED] that I see a lot of people using?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Character Portraits

#5 Post by Imperf3kt »

Simply edit the first post. You can rename the title of the post that way.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users