Author Topic: [RESOLVED] Shutdown Error (RMXP)  (Read 4024 times)

0 Members and 1 Guest are viewing this topic.

Merlandese

  • 静態の遊子
  • *
  • Tier 7
  • **
  • Posts: 5095
  • Gender: Male
  • ---
  • Current Mood: happy happy
[RESOLVED] Shutdown Error (RMXP)
« on: May 07, 2012, 05:01:39 PM »
I have a strange issue happening in RMXP that hasn't happened until recently.

When selecting "Shutdown" from anywhere (menu or title screen), it takes me back to the Title Screen. Selecting "Shutdown" a second time, however, works just fine.

This is the same when calling the script $scene = nil from any event. Instead of closing the game like it should, the first time it's called it acts exactly the same as if $scene = Scene_Title.new had been called instead.

I have been working on the game for awhile and this problem had never cropped up until recently. I would think that some change I had made to the scripts would be the problem, but I haven't touched the scripts in months, so I'm not sure what did it or why.
« Last Edit: May 07, 2012, 11:23:53 PM by Merlandese »

Tumbles

  • 海が私の心です。
  • *
  • Tier 7
  • **
  • Posts: 3956
  • Gender: Male
  • I am who I am, but not yet.
    • Big Palooka
  • Current Mood: cheerful cheerful
Re: Shutdown Error (RMXP)
« Reply #1 on: May 07, 2012, 10:25:23 PM »
I have little to no rmxp experience, but after a bit of sleuthing, it seems as though you've had this problem before. I believe your answers lie here: http://freebirdgames.com/forum/index.php?action=profile;u=1648


This seems to be the good bit: (Posted by Sarkilas)
Quote
I know the issue for the $scene = nil part. You need to take your title script addition, and paste it above Main.
Then, after that you need to completely remove the original Main script. Because from what I can tell, your Main script still contains the following bits:
Code: [Select]
[Select]
$scene = Scene_Title.new
while $scene != nil
  $scene.main
end
Which means, after your title script has its scene set to nil (it carries the same loop as above), it will go to the default Main script section and set the scene to Scene_Title and repeat the same loop again.

Do as I said and it should work as intended.

Spoiler: show


                                         

~

Question Mark

  • 疑問符の人
  • Mod-Suspect
  • Tier 7
  • *
  • Posts: 1492
  • Gender: Male
Re: Shutdown Error (RMXP)
« Reply #2 on: May 07, 2012, 11:01:56 PM »
Just pointing it out that the link points to your profile instead of the thread you were referring to.

Merlandese

  • 静態の遊子
  • *
  • Tier 7
  • **
  • Posts: 5095
  • Gender: Male
  • ---
  • Current Mood: happy happy
Re: Shutdown Error (RMXP)
« Reply #3 on: May 07, 2012, 11:08:33 PM »
Wow, man. I remember having that issue before and Sark resolving it. And it was with the same game.

So here was the problem. That Main info I had to delete according to Sark mysteriously reappeared. It may have showed up by after I changed the RTP thing we talked about in the FB thread.

So I thought it was an entirely new problem! But it was the same one that showed up beyond almost by magic! Technomagic!

Which is great news. I'd much rather be an idiot with solution than a genius with a problem. :)

Thanks, Tumbles! And thanks Sark for unknowingly helping me with the same problem twice. :)

I'll lock this thread in a minute. I probably should delete it, since it's redundant, but maybe the "surprise" data reinsertion is new enough material to keep it relevant.

Tumbles

  • 海が私の心です。
  • *
  • Tier 7
  • **
  • Posts: 3956
  • Gender: Male
  • I am who I am, but not yet.
    • Big Palooka
  • Current Mood: cheerful cheerful
Re: [RESOLVED] Shutdown Error (RMXP)
« Reply #4 on: May 07, 2012, 11:17:31 PM »
Happy to help! Though don't ask me how I ended up posting a link to your profile.  ???

Spoiler: show


                                         

~