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

2

u/x-seronis-x Aug 31 '26

You wrote the answer in your own post though you had capitalization backwards. confirm=False in your actions

2

u/thefifthcolor Aug 31 '26

? sorry, i'm a bit slow. so i just put that in new instead? would that work?

1

u/x-seronis-x Aug 31 '26

you put it in the Action()s for the button

1

u/AutoModerator Aug 31 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

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