ID:261354
 
I would like to know how to change directorys so you can save a .sav file in a diffrent directory than the folder the game is in which u are running.

Any help at all I would be thankful or maybe just pointing me in the right way.


instead of naming it "Savefile.sav" name it "Saves/Savefile.sav".

You might want to specify the file's .cd as "Saves" too.
In response to Foomer
Yes but would the Saves dir still be in the game dir u are running it from?

If so thats not what I want I want to make the .sav file in a diffrent dir rather than in the Game Dir.

In response to Green Lime
I do beleive there is a way to do this, though I'll need to look it up. I'll get back to you if and when I have the answer.

-Lord of Water
In response to Lord of Water
Just reminding people this post is still unanswered.
In response to Green Lime
You have to use the ".." operator to switch to the parent directory as many times as needed then move from there, here's an example:

var/savefile/F = new("../Shining/players.sav")

This will go outside the current folder, go into the folder called Shining and put players.sav there.

I don't think you can be hosting in safe mode though because it won't allow you to access files outside of the current directory.