End credits and unwanted boxes

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
User avatar
For
Newbie
Posts: 2
Joined: Fri Jul 20, 2018 7:45 am
Projects: Nightwatch: Genesis, DDS, Nightwatch JK
Organization: NW Team
Contact:

End credits and unwanted boxes

#1 Post by For »

Hello!
This is my ery first post on the forum, so hello everyone :). I need help with some weird boxes that show up in random places.

So first, this is my code for end credits:

Code: Select all

init python:
    credits_texts = [
        ("Pomysł", "For"),
        ("", "Gwiazdeczka"),
        ("", "Kira"),
        ("", "Silent"),
        ("", ""),
        ("Scenariusz", "For"),
        ("", "Gwiazdeczka"),
        ("", "Kira"),
        ("", "Silent"),
        ("", ""),
        ("Programowanie","For"),
        ("", "Silent"),
        ("", ""),
        ("Design postaci", "Gwiazdeczka"),
        ("", "Kira"),
        ("", "Silent"),
        ("", ""),
        ("Grafiki", "Gwiazdeczka"),
        ("", "Kira"),
        ("", "Silent"),
        ("", ""),
        ("Testerzy", "For"),
        ("", "Gwiazdeczka"),
        ("", "Kira"),
        ("", "Silent"),
        ("", ""),
        ("Muzyka", "???"),
        ("", ""),
        ("Stworzone za pomocą"," {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only]."),
        ("", ""),
        ("Podziękowania dla", "użytkowników serwisu TitansGo.pl"),
        ("", "wszystkich fanów Nightwatch"),
        ("", "Lemma Soft Forums"),
        ("", "")
    ]

init:
    image credits_text_left = Text(
        "\r\n".join(x[0] for x in credits_texts),
        xanchor = 1.0,
        text_align = 1.0,
        xpos = 0.5,
        yoffset = 1200,
        xoffset = -20,
        size = 32)
    image credits_text_right = Text(
        "\r\n".join(x[1] for x in credits_texts),
        color = gui.text_color,
        xanchor = 0.0,
        text_align = 0.0,
        xpos = 0.5,
        yoffset = 1200,
        xcenter = 0.5,
        xoffset = 20,
        size = 32)
    image credits_text_end = Text(
        "oraz Tobie, za zagranie w naszą grę! Dziękujemy!\r\n\r\n© 2018\nZałoga Nightwatch",
        color = gui.text_color,
        text_align = 0.5,
        xpos = 0.5,
        yoffset = 2950,
        xcenter = 0.5,
        size = 32)

label end_credits:
    scene black
    $ config.skipping = False
    $ hide_quick_menu = True
    $ _game_menu_screen = None
    show black
    $ renpy.pause(2, hard = True)
    show logo main light at credits_logo
    show credits_text_left at credits_text
    show credits_text_right at credits_text
    show credits_text_end at credits_text
    $ renpy.pause(31, hard = True)
    $ config.skipping = True
    $ hide_quick_menu = False
    $ _game_menu_screen = "save_screen"
    $ renpy.full_restart()
    return

transform credits_logo:
    on show:
        xcenter 0.5
        ycenter 0.5
        alpha 0.0
        linear 2.5 alpha 1.0
        linear 0.5 alpha 1.0
        linear 24 yoffset -2500

transform credits_text:
    on show:
        linear 3 alpha 1.0
        linear 24 yoffset -2500
Everything looks pretty normal, but when I'm launching my game and want to see them, there are empty boxes that show up everywhere:
http://i66.tinypic.com/nv7gb7.jpg

Does anyone have any idea what could possibly cause that? I use the same code in my other game and everything works perfectly normal, there's no boxes.
Thank you for your time and all the help in advance :)

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: End credits and unwanted boxes

#2 Post by xavimat »

Try deleting the "\r". Using "\n" is enough.

By the way, the line $ renpy.full_restart() will be the last one executed. It returns to the main menu so the line "return" after it is useless.

Also: I hate hard pauses. A hard pause of 31 seconds!!! Why do you hate me/your player so much?
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
For
Newbie
Posts: 2
Joined: Fri Jul 20, 2018 7:45 am
Projects: Nightwatch: Genesis, DDS, Nightwatch JK
Organization: NW Team
Contact:

Re: End credits and unwanted boxes

#3 Post by For »

xavimat wrote: Fri Jul 20, 2018 8:09 am Try deleting the "\r". Using "\n" is enough.

By the way, the line $ renpy.full_restart() will be the last one executed. It returns to the main menu so the line "return" after it is useless.

Also: I hate hard pauses. A hard pause of 31 seconds!!! Why do you hate me/your player so much?
Thank you, everything is ok now! :D

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]