nvl mode glitch and weird prompt text

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
Gazza
Newbie
Posts: 24
Joined: Wed Sep 19, 2018 5:18 pm
Contact:

nvl mode glitch and weird prompt text

#1 Post by Gazza »

hi again,

so, i have run into two problems

the first is with the nvl mode

when i click on the start button there's a sudden flash of screen at the beginning and the text doesn't disappear normally at the end

http://www.mediafire.com/convkey/26d2/e ... 91nhzg.jpg

i linked the gif of the problem (i'm sorry if it's a little fast)

and this is my code

Code: Select all

label start:

    define n = nvl_narrator


    label start:

    n "Disclaimer"
    n "The names, settings and events are a product of fiction."
    n "Any resemblance is purely coincidental."

    # Show a background. This uses a placeholder by default, but you can
    # add a file (named either "bg room.png" or "bg room.jpg") to the
    # images directory to show it.

    scene hallbg

    # This shows a character sprite. A placeholder is used, but you can
    # replace it by adding a file named "eileen happy.png" to the images
    # directory.

    # These display lines of dialogue.

    "17th of April \n19XX"
the second is the prompt text

http://www.mediafire.com/convkey/5879/9 ... 3lp7zg.jpg

i've tried to change every parameter in screens.rpy but the text doesn't want to align to the center

Code: Select all

screen confirm(message, yes_action, no_action):

    ## Ensure other screens do not get input while this screen is displayed.
    modal True

    zorder 200

    style_prefix "confirm"

    add "gui/overlay/confirm.png"

    frame:

        vbox:
            xalign .5
            yalign .5
            spacing 40

            label _(message):
                style "confirm_prompt"
                xalign 0.5

            hbox:
                xalign 0.5
                spacing 50

                textbutton _("_Yes") action yes_action
                textbutton _("_No") action no_action

    ## Right-click and escape answer "no".
    key "game_menu" action no_action


style confirm_frame is gui_frame
style confirm_prompt is gui_prompt
style confirm_prompt_text is gui_prompt_text
style confirm_button is gui_medium_button
style confirm_button_text is gui_medium_button_text

style confirm_frame:
    background Frame([ "gui/confirm_frame.png", "gui/frame.png"], gui.confirm_frame_borders, tile=gui.frame_tile)
    padding gui.confirm_frame_borders.padding
    xalign .5
    yalign .5

style confirm_prompt_text:
    xalign .5
    text_align 4
    layout "subtitle"

style confirm_button:
    properties gui.button_properties("confirm_button")

style confirm_button_text:
    properties gui.button_text_properties("confirm_button")
and that's my prompt code

thanks in advance for your time

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

Re: nvl mode glitch and weird prompt text

#2 Post by Imperf3kt »

You have two start labels and you are defining characters wrong. Try this.

Code: Select all

define n = Character("Narrator", kind=nvl) 

label start:

    n "Disclaimer"
    n "The names, settings and events are a product of fiction."
    n "Any resemblance is purely coincidental."

    # Show a background. This uses a placeholder by default, but you can
    # add a file (named either "bg room.png" or "bg room.jpg") to the
    # images directory to show it.

    scene hallbg

    # This shows a character sprite. A placeholder is used, but you can
    # replace it by adding a file named "eileen happy.png" to the images
    # directory.

    # These display lines of dialogue.

    "17th of April \n19XX"

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

Gazza
Newbie
Posts: 24
Joined: Wed Sep 19, 2018 5:18 pm
Contact:

Re: nvl mode glitch and weird prompt text

#3 Post by Gazza »

Imperf3kt wrote: Sun Oct 14, 2018 3:44 pm You have two start labels and you are defining characters wrong. Try this.

Code: Select all

define n = Character("Narrator", kind=nvl) 

label start:

    n "Disclaimer"
    n "The names, settings and events are a product of fiction."
    n "Any resemblance is purely coincidental."

    # Show a background. This uses a placeholder by default, but you can
    # add a file (named either "bg room.png" or "bg room.jpg") to the
    # images directory to show it.

    scene hallbg

    # This shows a character sprite. A placeholder is used, but you can
    # replace it by adding a file named "eileen happy.png" to the images
    # directory.

    # These display lines of dialogue.

    "17th of April \n19XX"


ops, the label start was an error copypasting the code in the post, i actually don't declare them two times

as for the code, i defined the character it like you wrote but the problem is still there

actually i remember reading an old thread with this similar problem here viewtopic.php?f=8&t=9248&hilit= and i searched for the changelog of the old version but i couldn't find much

Gazza
Newbie
Posts: 24
Joined: Wed Sep 19, 2018 5:18 pm
Contact:

Re: nvl mode glitch and weird prompt text

#4 Post by Gazza »

hi, im really sorry to bump this thread without anything to say but i couldn't find any solutions

i was wondering if someone could lend me an hand on these issues

Gazza
Newbie
Posts: 24
Joined: Wed Sep 19, 2018 5:18 pm
Contact:

Re: nvl mode glitch and weird prompt text

#5 Post by Gazza »

hello, i resolved the messed up prompt and it was because i didn't crop the gui image when i exported it but i still couldn't understand why the nvl mode is buggin like this, someone has an idea?

Post Reply

Who is online

Users browsing this forum: Bing [Bot]