Disable Save / Load and Right Click

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
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

Disable Save / Load and Right Click

#1 Post by DaFool »

I tried looking for this in the threads, but felt the need for a fresh topic.

I want something like what was implemented in the SFK games, where the whole Save/Load routine (and right-click access to them) is totally disabled.

I feel bad because a while back JQuartz helped me implement a Quicksave function. I will still give him special thanks, but I have managed to manage the progress of my game through autosaving on persistent variables (of course that also means that you can't clear your 'progress' except by extracting a fresh copy of the game).

The game is just so open-ended and interactive, that there really isn't any point in saving at all, ever since I decided to cut back on the linear narratives to make scenes more like vignettes.

Thanks.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Disable Save / Load and Right Click

#2 Post by PyTom »

Try something like:

Code: Select all

init python:
    _game_menu_screen = '_prefs_screen'
    config.game_menu = [ i for i in config.main_menu if i not in ("Load Game", "Save Game") ]
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Hentai Senshi
Regular
Posts: 105
Joined: Wed Aug 08, 2007 9:37 pm
Contact:

Re: Disable Save / Load and Right Click

#3 Post by Hentai Senshi »

PyTom wrote:Try something like:

Code: Select all

init python:
    _game_menu_screen = '_prefs_screen'
    config.game_menu = [ i for i in config.main_menu if i not in ("Load Game", "Save Game") ]
That didn't seem to get all of it out for me on 6.6 - I still had the list of saves showing up on esc/rightclick. What I wound up using was:

Code: Select all

... beginning of options.rpy ...
init -1:
    python hide:
        layout.provides('load_save')
    ... rest of options.rpy ...

        def save_load_func():
            layout.navigation('preferences')
            renpy.jump('preferences_screen')

label save_screen:
label load_screen:
    $ save_load_func()
... end of file ...
Of course, this is only good if you want to totally kill save/load. (Which is fine for Tentacularity - for other games one would want a hook to check to see if you could save and fall back to the appropriate real save screen.)
Project statii:
Yuri no Yume: Wet Night: Released!
Tentacularity: Released!
LoliFindsKitten: AlphaBetaThingy...

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Ocelot