[SOLVED] doesn't work this code after update

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
wtfman
Regular
Posts: 37
Joined: Sat Mar 30, 2013 7:26 pm
Contact:

[SOLVED] doesn't work this code after update

#1 Post by wtfman »

before update version 7.3.5, I've used 6.99. I made this code for showing tooltip text.

Code: Select all

screen maptext(mtext):    
    side "c b r":
        area (700, 45, 220, 280)
        viewport id "maptooltiptext":
            draggable False
            text "{color=#00ff00}{size=16}[mtext]{/size}{/color}" xpos 700 ypos 45 language "korean-with-spaces"

screen mapcontrol:
    mousearea:
        area(295,10,180,45) hovered Show('maptext', mtext = "blah blah blah\nnext line\nanother next line") unhovered Hide('maptext', transition=dissolve)
    mousearea:
        area(182, 169, 185,100) hovered Show('maptext', mtext = "tooltiptextanything") unhovered Hide('maptext', transition=dissolve)
    mousearea:
        area(407, 169,185,100) hovered Show('maptext', mtext = "114514") unhovered Hide('maptext', transition=dissolve)
        
call screen mapcontrol
https://i.ibb.co/ZGwFcdn/screenshot0002.png
worked well in 6.99 (screenshot)

like this. use 'mousearea' to show help text by hover the cursor
it works in 6.99 version. when I hovered mouse somewhere fixed coordination, [mtext] appears in right. but after update, it makes an error


File "renpy/common/000statements.rpy", line 531, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
Exception: A side has the wrong number of children.


I don't guess what's the problem. Would someone help me?
Last edited by wtfman on Mon Oct 19, 2020 7:46 am, edited 3 times in total.

nananame
Regular
Posts: 72
Joined: Fri Oct 13, 2017 1:40 pm
Contact:

Re: doesn't work this code after update

#2 Post by nananame »

It says you supplied the wrong number of children to your "side" statement.

You supplied "c b r" but you just have your viewport in there.
https://www.renpy.org/doc/html/screens.html#side

wtfman
Regular
Posts: 37
Joined: Sat Mar 30, 2013 7:26 pm
Contact:

Re: doesn't work this code after update

#3 Post by wtfman »

thanks. I fixed and it works well now. but if it is a wrong code, why worked normally in older version?

Post Reply

Who is online

Users browsing this forum: Google [Bot]