(Solved) Skipping is always enabled?

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
lunamoon
Newbie
Posts: 6
Joined: Fri Jan 25, 2019 11:51 pm
Contact:

(Solved) Skipping is always enabled?

#1 Post by lunamoon » Thu Jul 23, 2020 4:03 pm

Hello! I recently finished my first game and as I was playing through it I noticed that skipping was enabled even though none of the skipping options were turned on in the settings menu. One of my friends who is testing my game said the same thing is happening to him. I tried to look around in the files to see if there was any code that indicates that skipping is always enabled, but to no avail. Unfortunately, it is difficult for me to pinpoint where this problem may have originated as I have been working on this game for a really long time. I'd like to have skipping disabled unless it is turned on in the settings menu.
Where should I go in the game files to find what's causing this issue, and/or what code should I use to fix it?
Last edited by lunamoon on Fri Jul 24, 2020 9:42 pm, edited 1 time in total.

User avatar
Andredron
Miko-Class Veteran
Posts: 535
Joined: Thu Dec 28, 2017 2:37 pm
Completed: Kimi ga nozomu renpy-port(demo), Albatross Koukairoku(demo)
Projects: Sisters ~Natsu no Saigo no Hi~(renpy-port)
Location: Russia
Contact:

Re: Skipping is always enabled?

#2 Post by Andredron » Fri Jul 24, 2020 12:19 pm

Code: Select all

screen preferences():
    if main_menu:
        add gui.main_menu_background
    else:
        add "black2"

    use game_menu(_("環境設定"), scroll="viewport"):
        
        vbox:
            

            hbox:
                spacing 10
                box_wrap True


###################################################################################################Here are the settings you need
                vbox:
                    style_prefix "radio"
                    label _("After Choices")
                    textbutton _("Stop Skipping") action Preference("after choices", "stop")
                    textbutton _("Keep Skipping") action Preference("after choices", "skip")
                    
                vbox:
                    style_prefix "radio"
                    label _("Skip")
                    textbutton _("Seen Messages") action Preference("skip", "seen")
                    textbutton _("All Messages") action Preference("skip", "all")

###################################################################################################

                if renpy.variant("pc"):
                    vbox:
                        style_prefix "radio"
                        label _("Display")
                        textbutton _("Window") action Preference("display", "window")
                        textbutton _("Fullscreen") action Preference("display", "fullscreen")
                        
                if renpy.variant("mobile"):
                    vbox:
                        style_prefix "radio"
                        label _("Rollback Side")
                        textbutton _("Disable") action Preference("rollback side", "disable")
                        textbutton _("Left") action Preference("rollback side", "left")
                        textbutton _("Right") action Preference("rollback side", "right")


                ## この場所に "radio_pref" または "check_pref" をスタイルに持つ
                ## vbox を追加して、開発者が定義した環境設定を増やすことができま
                ## す。

            null height (4 * gui.pref_spacing)

            hbox:
                style_prefix "slider"
                box_wrap True

                vbox:

                    label _("文字表示速度")

                    bar value Preference("text speed")

                    label _("オート待ち時間")

                    bar value Preference("auto-forward time")
                    vbox:
                        style_prefix "radio"
                        label _("Language")
                        textbutton _("Japan") action Language(None)
                        textbutton _("Русский")  action Language("russian")
                vbox:
                    if config.has_music:
                        label _("音楽の音量")

                        hbox:
                            bar value Preference("music volume")


                    if config.has_sound:

                        label _("効果音の音量")

                        hbox:
                            bar value Preference("sound volume")

                            if config.sample_sound:
                                textbutton _("テスト") action Play("sound", config.sample_sound)


                    if config.has_voice:
                        label _("ボイスの音量")

                        hbox:
                            bar value Preference("voice volume")

                            if config.sample_voice:
                                textbutton _("テスト") action Play("voice", config.sample_voice)

                    if config.has_music or config.has_sound or config.has_voice:
                        null height gui.pref_spacing
                    vbox:
                        style_prefix "radio"
                        textbutton _("Takayuki Voice") action ToggleVoiceMute("taka")
                        textbutton _("Voice male") action ToggleVoiceMute("male")
                        textbutton _("Voice female") action ToggleVoiceMute("female")
                        
Then, you go into the renpy launcher, and there you Delete Persistent. Profit


As a last resort, if it did not work, you registered a pass automatically somewhere in the settings, then you need to look where you wrote it down
I'm writing a Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18

Help me to register in QQ International

Honest Critique

User avatar
lunamoon
Newbie
Posts: 6
Joined: Fri Jan 25, 2019 11:51 pm
Contact:

Re: Skipping is always enabled?

#3 Post by lunamoon » Fri Jul 24, 2020 2:19 pm

It worked!! Thank you so much!

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot