trying to understand save and load vars

Game Editor comments and discussion.

trying to understand save and load vars

Postby 157pl » Fri Apr 01, 2011 3:55 am

im trying to understand exactly how save and load vars works
does it just look in the same folder the exe is in and if it cant find it it makes one
User avatar
157pl
 
Posts: 109
Joined: Thu May 13, 2010 10:49 pm
Location: AZ
Score: 3 Give a positive score

Re: trying to understand save and load vars

Postby skydereign » Fri Apr 01, 2011 4:00 am

saveVars will write the save file, and load will read it. So if there is a file already there, saveVars overwrites it. If there isn't a file, loadVars won't be able to load anything, so the variables in the save group will remain unchanged. loadVars will not create a file.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: trying to understand save and load vars

Postby 157pl » Sat Apr 02, 2011 4:29 pm

but it creates and loads a file from the same folder that the exe is in right
User avatar
157pl
 
Posts: 109
Joined: Thu May 13, 2010 10:49 pm
Location: AZ
Score: 3 Give a positive score

Re: trying to understand save and load vars

Postby schnellboot » Sat Apr 02, 2011 4:44 pm

yes
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: trying to understand save and load vars

Postby 157pl » Sun Apr 03, 2011 6:33 pm

k thanks
i like to understand things :D
User avatar
157pl
 
Posts: 109
Joined: Thu May 13, 2010 10:49 pm
Location: AZ
Score: 3 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron