saveVars and loadVars from folder

Non-platform specific questions.

saveVars and loadVars from folder

Postby Fojam » Sun May 13, 2012 3:53 pm

for ome reason when i try to use saveVars or loadVars to load the file or save the file to a folder, it just loads it in the same directory, and not in the folder i want it to.
this is my code:
Code: Select all
saveVars("iSSB_data/temp", temp);
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: saveVars and loadVars from folder

Postby skydereign » Sun May 13, 2012 6:08 pm

This is because you don't have access to directories. gE essentially removes any pathname from the string you add to prevent accessing outside the game directory (for security reasons).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: saveVars and loadVars from folder

Postby Fojam » Sun May 13, 2012 7:33 pm

so theres no way for me to put it in its own directory? Because i was able to do it for the loadGame function
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest