The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Tutorial Changing location of the save file

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.


Reply
 
Thread Tools
  #1    
Old 2 Weeks Ago (1:41 AM). Edited 4 Days Ago by Saron.
Saron's Avatar
Saron Saron is offline
     
    Join Date: May 2018
    Posts: 1
    Hello friends! This is my first post in poke community.
    Today I am sharing a little bit of information I found on my own. What I wanted from my game is that it saves the files in the game folder instead of C drive. I tried to find it on the internet but didn't find it. At last I opened the script editor searched 'game.rxdata' without quote marks(because it is the save files name). When I checked them all it was written RTP.getsavefile(game.rxdata). I was a little curious and tried experimenting it by changing the line with "Graphics/Game.rxdata" with quote marks. And it did worked.

    Now let me tell you, what to do exactly: (To change save file location)
    1) Right click on the list of scripts window on the left side and click on find....
    2) Type RTP.getsavefile(game.rxdata) and note down the results.
    3) Replace them with any location you want. Ex - "Saves/Game.rxdata" The games.rxdata is to be added at the last as I did.
    Note: Keep it in double inverted commas. If the line before it says Open.file then keep it in brackets too. Done. Now your save files will be stored and loaded from your desired location.

    If you want to change the location of other files like error logs and screenshots, then simply search for RTP.getsavefile and replace them with your desired location. But this time add the filename which was in the line, instead of game.rxdata

    If there is any problem in understanding my weak english or there is an error, post it here.
    Reply With Quote

    Relevant Advertising!

      #2    
    Old 2 Weeks Ago (2:17 AM).
    Marin's Avatar
    Marin Marin is offline
    Not Bored
     
    Join Date: Nov 2016
    Age: 15
    Gender: Other
    Posts: 649
    1.) The reason save files aren't stored in the game folder is so they aren't lost upon updating the game.
    2.) Why are you storing the save files in the Graphics folder? That's for Graphics, I'm not sure why you'd want a save file in there.
    3.) This is a tutorial, you can't expect people to credit you for a step-by-step tutorial, especially if it's so straight-forward as this one.
    Reply With Quote
    Reply

    Quick Reply

    Join the conversation!

    Create an account to post a reply in this thread, participate in other discussions, and more!

    Create a PokéCommunity Account

    Sponsored Links
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -8. The time now is 5:37 PM.