is not a keyword argument or valid child for the screen statement

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
DahliaRose
Newbie
Posts: 9
Joined: Sat Sep 15, 2018 1:25 am
Contact:

is not a keyword argument or valid child for the screen statement

#1 Post by DahliaRose »

Yes hi, so I'm trying to convert something to an android package, but everytime I try, it immediately comes up with a message saying Launching the Build Has Failed.

Now, this is the error log I get

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/screens.rpy", line 33: u'style' is not a keyword argument or valid child for the screen statement.
    style "say_two_window_vbox"G
         ^

Ren'Py Version: Ren'Py 7.1.0.882
And this is the section of the screens.rpy file where line 33 is located.

Code: Select all

##############################################################################
# Say
#
# Screen that's used to display adv-mode dialogue.
# http://www.renpy.org/doc/html/screen_special.html#say
screen say(who, what, side_image=None, two_window=True, who_window_style = "say_who_window"):

    # Decide if we want to use the one-window or two-window variant.
    if not two_window:

        # The one window variant.
        window:
            id "window"

            has vbox:
                style "say_vbox"

            if who:
                text who id "who"

            text what id "what"

    else:

        # The two window variant.
        style "say_two_window_vbox"

        if who:
            window:
                style who_window_style # New Style!

                #text who:
                    #id "who"

        window:
            id "window"

            has vbox:
                style "say_vbox"

            text what id "what"

    # If there's a side image, display it above the text.
    if side_image:
        add "Assets/UI/Textbox Imager Backdrop.png"
        add side_image
    else:
        add SideImage() xalign 0.0 yalign 1.0

    # Use the quick menu.
    use quick_menu


Can someone please tell me what I'm doing wrong? How do I fix this error.

I'm also experiencing this same problem with two other projects, but I figure once I find out how to fix one I should be able to handle the others, they're all the same type of error so. Please help.

DahliaRose
Newbie
Posts: 9
Joined: Sat Sep 15, 2018 1:25 am
Contact:

Re: is not a keyword argument or valid child for the screen statement

#2 Post by DahliaRose »

Nevermind, I managed to solve both it and the problems I had with the other projects. Surprisingly it had to do with a lot of deleting of passages of code. lol. I'd of thought that would make things run worse, but I guess some of it was superfluous.

Post Reply

Who is online

Users browsing this forum: No registered users