Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Save File location controlled by game_variable
Memor-X
post Jun 24 2011, 11:17 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 5
Type: Developer
RM Skill: Skilled




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


__________________________

Troy: i promised i would protect her, i failed, i let her die
Train:...........
Troy WHY DO YOU CONTINUE TO BE MY FRIEND, DON'T YOU HATE ME FOR KILLING SIYA
Train: no
Troy:...........
Train: i could never hate you, you didn't kill her, Grand Fisher did and i'll kill him for taking her away from me, and Siya would kill me if i hated you for her death, she thought of you like her little brother
Troy:............
Train: though you have died once, have Geass and also a Visor with a psyco inner Reaver, your still human, you can't protect everyone you meet, so just protect those who's deaths will hurt you the most
Troy:...........
Train: anyway, if there was anyone to blame for letting her die, it would be me, you was 15, you had been a Knight Sweeper for at most 6 months, and she was the woman i loved, i should have been protecting her then that reallying on a kid
Go to the top of the page
 
+Quote Post
   
Ty
post Jun 26 2011, 12:55 AM
Post #2


Level 38
Group Icon

Group: +Gold Member
Posts: 1,007
Type: Scripter
RM Skill: Undisclosed




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"


__________________________
My Script Demo link broken? Looking for old scripts? Go here:
http://synthesize.4shared.com
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 02:11 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker