I'm trying to extend a scene off of Scene_Map: the idea was to set up a different set of menus and available actions to the player while still retaining the ability to move around the map.
Trying to launch the scene automatically after loading the map through a default Transfer Player command results in the map immediately offloading itself.
In attempting to prevent this I've added a case to the Scene_Map.stop function stipulating that it shouldn't offload the map data if the next scene is the one I'm coding, but this apparently doesn't work either, since the result is a cut to black followed by a crash due to event data having also been uploaded.
Thus, the best approach would seem to be to have the transfer occur as a part of starting the scene. However, the Scene_Map definitions only seem to handle fade-in and offload functions; the ones handling loading the map and handling the data seem to be assigned somewhere else.
Thus, my questions are as follows:
1) Am I better off starting my scene before or after the transfer to the new map?
2a) If before, how do I code in loading the appropriate map?
2b) If after, how do I transfer the data from Scene_Map to my new scene so that the game doesn't crash as soon as the scene starts?
Trying to launch the scene automatically after loading the map through a default Transfer Player command results in the map immediately offloading itself.
In attempting to prevent this I've added a case to the Scene_Map.stop function stipulating that it shouldn't offload the map data if the next scene is the one I'm coding, but this apparently doesn't work either, since the result is a cut to black followed by a crash due to event data having also been uploaded.
Thus, the best approach would seem to be to have the transfer occur as a part of starting the scene. However, the Scene_Map definitions only seem to handle fade-in and offload functions; the ones handling loading the map and handling the data seem to be assigned somewhere else.
Thus, my questions are as follows:
1) Am I better off starting my scene before or after the transfer to the new map?
2a) If before, how do I code in loading the appropriate map?
2b) If after, how do I transfer the data from Scene_Map to my new scene so that the game doesn't crash as soon as the scene starts?