Page 1 of 1

Editing/Removing "unsaved progress" prompt

Posted: Thu Feb 09, 2017 10:08 am
by Pommy
Hello again!

I was wondering if there is a way I can change the text string or remove the "unsaved progress will be lost" prompt shown in the attached picture.
menu_remove.jpg
This is the "back to main menu" prompt I'd like to edit or remove.
This prompt is given when the reader chooses to return to the main menu/title screen.

The game me and a friend are putting some finishing touches on uses an autosave/quickload system and progress is constantly updated, so there's no need for the text string to read as it currently does.

Is there any way I can edit this string or remove the prompt? I'd much prefer the former, but will settle for the latter.

Re: Editing/Removing "unsaved progress" prompt

Posted: Thu Feb 09, 2017 10:59 am
by Divona
To change prompt text, open "common.rpym" in "game/tl/None" with text editor. Find the following line and edit it:

Code: Select all

    # 00gui.rpy:232
    old "Are you sure you want to return to the main menu?\nThis will lose unsaved progress."
    new "Are you sure you want to return to the main menu?\nThis will lose unsaved progress."
To get rid of the comfirm prompt, in "screens.rpy" under "screen navigation()", add "confirm=False" to "MainMenu()":

Code: Select all

textbutton _("Main Menu") action MainMenu(confirm=False)

Re: Editing/Removing "unsaved progress" prompt

Posted: Thu Feb 09, 2017 11:25 am
by Pommy
Divona wrote:To change prompt text, open "common.rpym" in "game/tl/None" with text editor. Find the following line and edit it:

Code: Select all

    # 00gui.rpy:232
    old "Are you sure you want to return to the main menu?\nThis will lose unsaved progress."
    new "Are you sure you want to return to the main menu?\nThis will lose unsaved progress."
I'm not really sure of the location of the file you're pointing me to. I've looked everywhere in my Ren'Py folder as well as the actual game's folder and there is no "game/tl/None" path nor have I found a common.rpym file.

Re: Editing/Removing "unsaved progress" prompt

Posted: Thu Feb 09, 2017 11:46 am
by Ocelot
You probably created the game long before current version.
Right now you can go to Generate Translation menu in launcher and generate translation for language None. Afte that remove everything that is generated in tl/None folder, but *.rpym files

Re: Editing/Removing "unsaved progress" prompt

Posted: Thu Feb 09, 2017 11:54 am
by Pommy
Ocelot wrote:You probably created the game long before current version.
Right now you can go to Generate Translation menu in launcher and generate translation for language None. Afte that remove everything that is generated in tl/None folder, but *.rpym files
Alrighty, I'll give that a look when I get home from work. I'm currently using 6.99.11.1749.

Probably shoulda mentioned that earlier. Sorry about that.