config.side_image_tag issue [solved]

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
EternalDream
Veteran
Posts: 208
Joined: Sat Nov 27, 2010 6:04 pm
Completed: Secret Santa
Projects: Memory Lane
Contact:

config.side_image_tag issue [solved]

#1 Post 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!
Last edited by EternalDream on Sun Nov 04, 2012 3:32 pm, edited 2 times in total.

Levrex
Veteran
Posts: 280
Joined: Mon Jun 18, 2012 12:16 pm
Contact:

Re: Side Image Problem

#2 Post 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
If your question is solved, please add [Solved] to theme's name by editing its first post, so that the helpful guys out there wouldn't mistakenly think the problem is still unanswered and waste their time.

EternalDream
Veteran
Posts: 208
Joined: Sat Nov 27, 2010 6:04 pm
Completed: Secret Santa
Projects: Memory Lane
Contact:

Re: Side Image Problem

#3 Post 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)
Last edited by EternalDream on Sun Nov 04, 2012 3:29 pm, edited 1 time in total.

Levrex
Veteran
Posts: 280
Joined: Mon Jun 18, 2012 12:16 pm
Contact:

Re: config.side_image_tag issue

#4 Post 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.
If your question is solved, please add [Solved] to theme's name by editing its first post, so that the helpful guys out there wouldn't mistakenly think the problem is still unanswered and waste their time.

EternalDream
Veteran
Posts: 208
Joined: Sat Nov 27, 2010 6:04 pm
Completed: Secret Santa
Projects: Memory Lane
Contact:

Re: config.side_image_tag issue

#5 Post by EternalDream »

Oh wow O: I didn't even notice that renpy had been updated.
Downloaded and now it works nicely.. thank you! :)

Post Reply

Who is online

Users browsing this forum: No registered users