HELP!!!! In "Returning to MAin Menu" T^T

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
Yuzu-kun ^-^
Newbie
Posts: 15
Joined: Sat Apr 12, 2014 7:18 am
Projects: Plantasia
IRC Nick: Yuzu-kun
Location: Philippines
Contact:

HELP!!!! In "Returning to MAin Menu" T^T

#1 Post by Yuzu-kun ^-^ » Mon Nov 10, 2014 7:35 am

Recently My game can't go back or return to main menu anymore.... T_T
I use the "return" statement properly... but an error always occur.... sometimes it goes back to a part in a game where I have used the "call" statement.... Can someone help me to fix this error???
Attachments
Error.JPG

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: HELP!!!! In "Returning to MAin Menu" T^T

#2 Post by trooper6 » Mon Nov 10, 2014 9:25 am

I can't really help, because you haven't post your actual script...so I'm just guessing.
"Return" doesn't automatically take you to the main menu, it returns you to the last place you came from. If you return to a call statement, it thinks that is the last place you came from. I imagine you must have an indentation or nesting problem. Check your indentation.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

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: HELP!!!! In "Returning to MAin Menu" T^T

#3 Post by PyTom » Tue Nov 11, 2014 1:18 am

This error occurs if the script has changed to the point where Ren'Py can't find a place to return to.

You may want to consider upgrading to the latest 6.18. There were a bunch of fixes to make this uncommon.
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
yon
Regular
Posts: 153
Joined: Tue Sep 09, 2014 5:09 pm
Projects: YDSP
Location: United States
Contact:

Re: HELP!!!! In "Returning to MAin Menu" T^T

#4 Post by yon » Tue Nov 11, 2014 4:13 pm

I've been having this issue a lot lately with my game. I could mess around with it to make it work out in the end, but I didn't know there was an update that took care of this! That's good news.

User avatar
Yuzu-kun ^-^
Newbie
Posts: 15
Joined: Sat Apr 12, 2014 7:18 am
Projects: Plantasia
IRC Nick: Yuzu-kun
Location: Philippines
Contact:

Re: HELP!!!! In "Returning to MAin Menu" T^T

#5 Post by Yuzu-kun ^-^ » Sun Nov 16, 2014 3:42 am

Still not working T_T
I've downloaded the new version of ren'py but it still doesn't work...

Here's the script... I hope you can help me... :(
Attachments
script.rpy
(539.65 KiB) Downloaded 71 times

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: HELP!!!! In "Returning to MAin Menu" T^T

#6 Post by nyaatrap » Sun Nov 16, 2014 9:36 am

Did you terminate your save data on the folder written on the options.rpy?
Simple solution is use renpy.full_restart() instead of return, but I suggest to investigate what is the problem before using it.

Code: Select all

sometimes it goes back to a part in a game where I have used the "call" statement
This is proper behavior. When you use call, you need to remember where you use this statement, and need to return that place before jumping to another place (Unless you deeply know the mechanism behind).

User avatar
Yuzu-kun ^-^
Newbie
Posts: 15
Joined: Sat Apr 12, 2014 7:18 am
Projects: Plantasia
IRC Nick: Yuzu-kun
Location: Philippines
Contact:

Re: HELP!!!! In "Returning to MAin Menu" T^T

#7 Post by Yuzu-kun ^-^ » Mon Nov 17, 2014 7:38 am

Yes, this happened when I had deleted my persistent data... then suddenly the game became like this... :(
Yeah, I've also deleted the saves from my folder...
What will happen when I will use the ":$ renpy.full_restart()" ????

User avatar
Kia
Eileen-Class Veteran
Posts: 1011
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: HELP!!!! In "Returning to MAin Menu" T^T

#8 Post by Kia » Mon Nov 17, 2014 12:23 pm

I had a similar problem a while back. take a look and if you cant figure it out I'll tell you how I avoid it step by step.
http://lemmasoft.renai.us/forums/viewto ... =8&t=29002

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: HELP!!!! In "Returning to MAin Menu" T^T

#9 Post by nyaatrap » Tue Nov 18, 2014 11:21 am

In quick search, you don't use any call statements. The problem would be another scripts (option or screens), or your PC's folder construction (though the error message suggests this is a loaded data problem).
renpy.full_restart() is a statement called by the return statement with no call stack. When you use return, ren'py looks up call stack then if there's no call stack it activates renpy.full_restart, which terminates the current game and returns to the main menu.

User avatar
Yuzu-kun ^-^
Newbie
Posts: 15
Joined: Sat Apr 12, 2014 7:18 am
Projects: Plantasia
IRC Nick: Yuzu-kun
Location: Philippines
Contact:

Re: HELP!!!! In "Returning to MAin Menu" T^T

#10 Post by Yuzu-kun ^-^ » Thu Nov 20, 2014 7:19 am

Okay I finally i found a way to solve this problem... thanks for your advices and answers btw ^_^

Post Reply

Who is online

Users browsing this forum: No registered users