Page 1 of 1

config.side_image_tag issue [solved]

Posted: Sat Nov 03, 2012 11:33 pm
by EternalDream
After reading a lot of things I finally got my side image the way I want it. But a problem is that it keeps disappearing whenever another character is talking. I tried config.side_image_tag but it didn't seem to work for me.

Traceback:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While executing init code:
  File "game/script.rpy", line 21, in script
    init python:
  File "game/script.rpy", line 22, in python
         config.side_image_tag = "m"
Exception: config.side_image_tag is not a known configuration variable.
Code:

Code: Select all

image side m sad = "m_sad.png"

define m = Character('Michi', ctc="ctc_blink", ctc_position="fixed", image = "m")

init python:
     config.side_image_tag = "m"

label start:
etc...
I have no idea what's wrong @_@ I thought I was just tired and made a typo but that doesn't seem to be the case. Any help would be appreciated!

Re: Side Image Problem

Posted: Sun Nov 04, 2012 8:16 am
by Levrex
First of all, give the full traceback. Then give more info, because i can't figure out heads or tails from the current amount of it.
Screens.rpy IN FILE ATTACHMENT and options.rpy IN FILE ATTACHMENT, and script.rpy IN FILE ATTACHMENT would be very good things to do for the start.

Though, if you can solve the problem yourself by lookin' on the thread below, that becomes unnecessary.
http://lemmasoft.renai.us/forums/viewto ... 39#p234839

Re: Side Image Problem

Posted: Sun Nov 04, 2012 12:02 pm
by EternalDream
I could be wrong about this, but I get the impression from the documentation that "config.side_image_tag" is only useful for the "image side" method
^^ I used image side so that thread doesn't really help me much. I'm going to paste my script.rpy and traceback because they're fairly short. But if you feel like you must dl it then I added the files at the bottom.

This is the full traceback:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While executing init code:
  File "game/script.rpy", line 22, in script
    init python:
  File "game/script.rpy", line 23, in python
         config.side_image_tag = "m"
Exception: config.side_image_tag is not a known configuration variable.

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

Full traceback:
  File "D:\My Documents\RenPy\renpy\execution.py", line 261, in run
  File "D:\My Documents\RenPy\renpy\ast.py", line 630, in execute
  File "D:\My Documents\RenPy\renpy\python.py", line 960, in py_exec_bytecode
  File "game/script.rpy", line 23, in <module>
  File "D:\My Documents\RenPy\renpy\store.py", line 78, in __setattr__
Exception: config.side_image_tag is not a known configuration variable.

Windows-XP-5.1.2600-SP3
Ren'Py 6.12.1.1501
My whole script.rpy (I didn't start the story yet so there's pretty much nothing there)

Code: Select all

# Click to continue icon.
image ctc_blink = anim.Blink("ctc.png", xpos=0.90, ypos=0.90, xanchor=1.0, yanchor=1.0)

# images.
image bg_roof = "roof.jpg"
image a talk = "a_talk.png"
image side m sad = "m_sad.png"

# Declare characters.
define m = Character('May', ctc="ctc_blink", ctc_position="fixed", image = "m")
define a = Character('A', ctc="ctc_blink", ctc_position="fixed")
define k = Character('Ki', ctc="ctc_blink", ctc_position="fixed")

init python:
     config.side_image_tag = "m"

label start:

    # Setting stats.
    $ s = 0
    $ f = 0
    $ t = 0
    $ d = 0
    $ an = 0
    $ e = 0
    
    show bg_roof
    k "Hey! How'd you do on that test?"
    m sad "You've created a new Ren'Py game."
    m "Once you add a story, pictures, and music, you can release it to the world!"
    show a talk
    a "Hi."
    return
Edit: when I try to put the code in option.rpy it's the same traceback error. Added the traceback for that + my options.rpy.
As a side problem my config.default_text_cps doesn't work either. No matter what number I set it to, the textspeed is always nonexistent (the text just... appears)

Re: config.side_image_tag issue

Posted: Sun Nov 04, 2012 2:53 pm
by Levrex
Yep, just as i thought. You tried to use a feature which was implemented only in 13.8 on the game that uses an older version.
Of course there would be no such variable.
Update the game to 13.8 or higher to get it working.
To update you can just copy the libraries, common folder and renpy code from >13.8 version of Ren'Py engine to your folder.

Re: config.side_image_tag issue

Posted: Sun Nov 04, 2012 3:32 pm
by EternalDream
Oh wow O: I didn't even notice that renpy had been updated.
Downloaded and now it works nicely.. thank you! :)