Putting Saves Into Seperate Folder - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Archives (https://www.save-point.org/forum-105.html) +--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html) +---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html) +----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html) +----- Thread: Putting Saves Into Seperate Folder (/thread-6794.html) |
Putting Saves Into Seperate Folder - Eccid - 08-29-2005 This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss. No support is given. If you are the owner of the thread, please contact administration. Putting saves into seperate folder. By: Eccid I'm pretty sure this is in the right category, I mean you do have to edit your scripts to use this. Background: I don't know how many others out there who are like me and like to make there games look as professional as possible. For example, I create my own Icons for my games and my own setup files (Even if I don't create my own I still translate the one that is compiled by RPGMXP) I got to thinking, "What can I do that true games do to make my game look professional? I know, I'll make all my save files save into their own folder!" This was quite a good idea in my opinion (hope I don't sound egotisical!). I had already figured out how to change what the file type of the save files (Ex: ".rxdata"), and then I found out that someone had already posted a way to do that. Now, you probably are getting bored reading this so I'll just tell you what you need to do. To Set Up: First: Go into your game folder and create the folder you want your save files to be stored in (Ex: "Saves") Second: Go into your scripts and find Window_SaveFile, around line 24 (if you haven't edited it too much) you will see (once again if you haven't edited it if so you know where it is): Code: @filename = "Save#{@file_index + 1}.rxdata" Change it to this: Code: @filename = "Saves/" + "Save#{@file_index + 1}.rxdata" #I'm using the folder name "Saves" as an example. Third: Go to Scene_File and near the end you'll find: Code: return "Save#{file_index + 1}.rxdata" And replace it with this: Code: return "Saves/" + "Save#{@file_index + 1}.rxdata" Easy right!? Fourth: Go to Scene_Title and around line 49 you should see: Code: if FileTest.exist?("Save#{i+1}.rxdata") once again replace it with this: Code: if FileTest.exist?("Saves/" + "Save#{i+1}.rxdata") see the pattern? Ending Istructions ....... Please Wait........ Verified..... Ok, that wasn't too hard! A little side note: I you use my Quick Save script then you will have to make the same replacements if you want them in the same folder (or a different one!) ALSO I you ust my Bypass Title Screen If No Save Exists script then you'll have to change: Code: if FileTest.exist?("Save#{i+1}.rxdata") to Code: if FileTest.exist?("Saves/" + "Save#{i+1}.rxdata") (same with it looking for quick save files) Thanks and I hope you like it. P.S. I don't think this needs a demo, It is completely self-explanitory. (but if at least 4 people requst one I'll make one) |