jump _main_menu no longer working ?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

jump _main_menu no longer working ?

#1 Post by jack_norton » Wed Oct 08, 2014 3:50 am

In the past I used:

Code: Select all

jump _main_menu
to go back to the main menu anytime from the game. Is it no longer supported ? if I do that I get this error (reported by an user):
Image
follow me on Image Image Image
computer games

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: jump _main_menu no longer working ?

#2 Post by PyTom » Wed Oct 08, 2014 12:39 pm

I don't believe this was ever documented to work. _main_menu is supposed to be run in a different context.

The right way to return to the main menu is renpy.full_restart(), or the MainMenu action.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: jump _main_menu no longer working ?

#3 Post by jack_norton » Wed Oct 08, 2014 12:54 pm

Ah OK :D will use the other method then, thanks!
follow me on Image Image Image
computer games

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: jump _main_menu no longer working ?

#4 Post by PyTom » Wed Oct 08, 2014 8:47 pm

Do you have a game that exhibits this problem consistently?

There's some weirdness here insofar as even though this isn't supposed to work, the error isn't the right one. (And it's not the one I have here.) So out of an abundance of caution, I'd like to investigate this in the 6.18.3 timeframe, to make sure you're not getting your execution context corrupted somewhere else.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4067
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: jump _main_menu no longer working ?

#5 Post by jack_norton » Thu Oct 09, 2014 2:10 am

If you still have the SOTW sources I sent you, I can send you a save that will trigger it :)
follow me on Image Image Image
computer games

Post Reply

Who is online

Users browsing this forum: No registered users