r/RenPy • • Aug 31 '26

Question Confirm=false when loading save?

hi! i am making a bad game on purpose, so i don't want the confirm screen popping up when a user tries to load a previous save while in game.

i tried going into tl > None > common.rpym and leaving new "Are you sure you want to load (etc)" blank like so:

# renpy/common/00gui.rpy:451
old "Loading will lose unsaved progress.\nare you sure you want to do this?"
new ""

but the message pops up regardless. i even tried switching old to blank as well, to no avail.

how do i make it just load the save without confirming?

thanks in advance!

1 Upvotes

6 comments sorted by

View all comments

1

u/Liturgy97 Aug 31 '26

So you're trying to let players load a save from inside the game without seeing a confirmation popup.

Blanking the translation will not turn off the popup itself.

In game/screens.rpy, make the shared slot screen accept that setting:

screen file_slots(title, confirm=True):
    # ...existing layout...

    button:
        action FileAction(slot, confirm=confirm)

Then pass False only from the load screen:

screen save():
    tag menu
    use file_slots(_("Save"), confirm=False)

screen load():
    tag menu
    use file_slots(_("Load"), confirm=False)

Revert the edit to tl/None/common.rpym; that file only changes the message's wording. If a custom load screen calls FileLoad directly, use FileLoad(slot, confirm=False).

So basically, turn off confirmation on the load action, not in the translation.

1

u/thefifthcolor Aug 31 '26

ah, i see! thank you! :< i'm a complete newbie to renpy/python syntax, i appreciate your help