Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Soulshaker3 on April 10, 2014, 07:28:26 pm

Title: Menu Script having problems with autotiles
Post by: Soulshaker3 on April 10, 2014, 07:28:26 pm
So i made a script that replaces the main menu of the game plus all the submenus (items, status etc)  and for my tests, everytime i open the script the 2nd time in a map with autotiles the game just crashes there's a video i uploaded to demonstrate the problem


I'll include a demo with the projects so if you can help me that would be great.
https://www.mediafire.com/?1bl15c2tnr78vov
Title: Re: Menu Script having problems with autotiles
Post by: G_G on April 10, 2014, 07:39:10 pm
It helps if you freeze the graphics before disposing them. And you forgot to dispose of the map spriteset.

    
       Audio.se_play('Audio/SE/' + "Menu/dialog_close", 100, 0)
   Graphics.freeze # moved this above everything that gets disposed
   for i in 0..4
     @sprites[i].dispose
   end
   @spriteset.dispose
   @background.dispose
Title: Re: Menu Script having problems with autotiles
Post by: Soulshaker3 on April 10, 2014, 07:42:42 pm
Holy how did I made that mistake, and couldn't figure it out, that's why i call myself a newbie now actually works thanks a lot