Allowing saving during splashscreen

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.
Message
Author
User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Allowing saving during splashscreen

#16 Post by Remix »

Code: Select all

label before_main_menu:
    if not persistent.seen_prologue:
        $ renpy.jump_out_of_context("prologue")
    return 

label prologue:
    "1"
    "2"
    "3"
    if not persistent.seen_prologue:
        $ persistent.seen_prologue = True
        $ renpy.call_in_new_context("_main_menu")
    return

label start:
    "Start"
    "Middle {a=call:prologue}read prologue again{/a}"
    "End"
    return
If I read your requirements correctly, that should do the trick.
Frameworks & Scriptlets:

User avatar
Coren
Mindscrew Driver
Posts: 1691
Joined: Fri Sep 18, 2009 9:24 am
Completed: Dear Mariko, Six Rules, Ribbon of Green, RE: Prince of Nigeria, Doppelganger, Cole's Gate Demo, Crimson Rafflesia Demo, Mica: Apoptosis Demo
Projects: Crimson Rafflesia, Mica: Apoptosis, Fantasy Euthanasia
Organization: Soyasushi Productions
Tumblr: CorenBaili
Deviantart: CorenB
Skype: coren.baili
Contact:

Re: Allowing saving during splashscreen

#17 Post by Coren »

Hmm, I tried that and I can't call the save screen during the prologue. I'm familiar with persistent switches, I'm just hoping to be able to allow the player to save during the prologue so they don't feel obligated to finish it in one sitting :)

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Allowing saving during splashscreen

#18 Post by Remix »

Strange, it works fine for me on 7.1.0.795.

What code are you using?
Which Ren'Py version?
Frameworks & Scriptlets:

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Allowing saving during splashscreen

#19 Post by Donmai »

Uh... how about the before_main_menu label?
https://www.renpy.org/doc/html/label.ht ... ial-labels
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Allowing saving during splashscreen

#20 Post by Remix »

Donmai wrote: Mon Sep 03, 2018 3:02 pm Uh... how about the before_main_menu label?
https://www.renpy.org/doc/html/label.ht ... ial-labels
My version uses that (which incidentally runs in the same context as main menu so does not allow saves/right click)
then jumping out of context (to allow saves etc)
in the prologue label (which then sets the persistent so you can access main menu without before_main_menu doing its thing again)

Seems a logical way to approach the problem.
Frameworks & Scriptlets:

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Allowing saving during splashscreen

#21 Post by Donmai »

Ah, didn't see your post. Sorry.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

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

Re: Allowing saving during splashscreen

#22 Post by Imperf3kt »

Remix wrote: Mon Sep 03, 2018 3:08 pm
Donmai wrote: Mon Sep 03, 2018 3:02 pm Uh... how about the before_main_menu label?
https://www.renpy.org/doc/html/label.ht ... ial-labels
My version uses that (which incidentally runs in the same context as main menu so does not allow saves/right click)
then jumping out of context (to allow saves etc)
in the prologue label (which then sets the persistent so you can access main menu without before_main_menu doing its thing again)

Seems a logical way to approach the problem.
Which is what I assumed the main_menu label existed for, but apparently not.
Is that just an oversight I made, or is it an error in the documentation, do you think?
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

Post Reply

Who is online

Users browsing this forum: Bing [Bot]