Help - Search - Members - Calendar
Full Version: Save File location controlled by game_variable
RPG RPG Revolution Forums > Scripting > Script Development and Support > RGSS
Memor-X
i've been working on a program that works with my RMXP game, problem is that i seem to have a problem with a system in RMXP

what i'm trying to do is get RMXP's save system to save the Save#.rxdata file to another location controlled by $game_variable[2], so if $game_variable[2] = "C:/Saves/" then the save files should go to C:/Saves/Save#.rxdata

now i figured how to do this, by adding $game_variable[2] + before the "Save#{file_index + 1}.rxdata" string in make_filename in Scene_File, and at the moment it makes the file

my problem is that the save/load list isn't showing the save game, bellow is a demo project i made to try and get this working

http://www.megaupload.com/?d=GMXBLIG9

you'll need to create the filepath C:/Pandora/Test/Saves otherwise you'll get an error when it tries to save also, the Scene_Cutscene has been edited Fantasist, Fantasist also made the New Game Plus Script

i'm really need to get this fixed up ASAP so can someone help me out here
Ty
You are not loading the Save File data from the correct location. The game is looking in the default location so it can display the Saved File information, isn't finding anything, so it skips drawing the information. You can still load the Save File fine because it is pointing to the correct location.

So to fix it, add the following:
Window_SaveFile
Line 22: @filename = "Save#{@file_index + 1}.rxdata"
Add $game_variables[2] before the string. So you'll have:
@filename = $game_variables[2] + "Save#{@file_index + 1}.rxdata"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.