Map name as save file name
#7
(04-30-2020, 08:56 PM)kyonides Wrote: If you're talking about the load game scene the default game or the projects that still use a very similar system, it shouldn't work. At the moment you try to load the data to display it, $game_map as a global variable doesn't. Probably that happens because the game usually creates it AFTER you have picked a saved game data file.

How do you fix it?

Create it yourself. Add the line

$game_map ||= Game_Map.new

Where do you place it?

It could be either in Scene_Title if you use it or in the initialize method of Window_SaveFile.

I followed the instruction, then replaced @game_map with $game_map, and there is no error now, but... it doesn't work. It does show map name in save file name, but its ALWAYS THE NAME OF THE CURRENT MAP. So I can save on map "Testy" but when I teleport to map "Location 2", all savegames will be named "Location 2", even though it was saved on map "Testy".
Reply }


Messages In This Thread
Map name as save file name - by Whisper - 04-29-2020, 09:31 PM
RE: Map name as save file name - by DerVVulfman - 04-30-2020, 03:36 AM
RE: Map name as save file name - by kyonides - 04-30-2020, 04:00 AM
RE: Map name as save file name - by DerVVulfman - 04-30-2020, 04:11 AM
RE: Map name as save file name - by Whisper - 04-30-2020, 05:17 PM
RE: Map name as save file name - by kyonides - 04-30-2020, 08:56 PM
RE: Map name as save file name - by Whisper - 04-30-2020, 10:11 PM
RE: Map name as save file name - by kyonides - 05-01-2020, 12:59 AM
RE: Map name as save file name - by DerVVulfman - 05-01-2020, 03:57 AM
RE: Map name as save file name - by Whisper - 05-01-2020, 05:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Weird error when using a custom save script. Steel Beast 6Beets 8 11,453 06-27-2015, 05:54 PM
Last Post: Steel Beast 6Beets
   Custom Save/Load screen Raou 2 7,570 04-01-2015, 08:18 PM
Last Post: Raou
   Script Request - Variables Specific Save File JayRay 2 5,120 04-28-2014, 05:15 AM
Last Post: JayRay
   Checking if a file exists without knowing the extension? PK8 1 5,060 05-29-2011, 10:13 AM
Last Post: MGC
   Save Screen Screenshot Yin 2 6,214 07-05-2010, 06:31 PM
Last Post: Yin
   Can I execute a txt file from a script? deValdr 8 11,021 04-18-2010, 07:34 PM
Last Post: deValdr
   Help With Law's Save System Ryu-ka 0 3,822 04-06-2010, 06:37 PM
Last Post: Ryu-ka
   Need advice on best/easiest save setup rcg916 3 6,268 11-08-2009, 06:24 AM
Last Post: DerVVulfman
   How can I save a map? Charlie Fleed 3 6,712 07-08-2009, 09:55 PM
Last Post: dacloudster
   Forced Save? Yin 9 13,938 04-18-2009, 08:41 PM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)