Page 1 of 2

Saving UserVars in "Data" folder

PostPosted: Tue Oct 16, 2007 9:57 am
by Bee-Ant
Do you know how to make it???
for example :
I have health, live, and power vars, how do I can save them in "data" folder as data.dat file???
maybe
Code: Select all
health=56;
live=2;
power=7;
saveVars("\data\data.dat", "atr");


Maybe you could help me Max-Line... :lol:

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 16, 2007 10:03 am
by Bee-Ant
Oh yeah...also how do I change the "Esc" key to the other function???(not to exit game) :D
maybe to return to the main menu... :roll:
thanks... 8)

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 16, 2007 12:24 pm
by makslane
Bee-Ant wrote:how do I change the "Esc" key to the other function???


Disable the exit by the ESC key in the Game Properties panel, and create your own action.

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 16, 2007 12:27 pm
by makslane
Bee-Ant wrote:how do I can save them in "data" folder as data.dat file???


The saveVars function always use the game folder to save the variables.

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 7:43 am
by Bee-Ant
then how to load game in "data" folder???

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 12:58 pm
by Kalladdolf
!!! I'm back !!!

um, isn't there a function actually called LoadGame?

example5.JPG
example5.JPG (4.49 KiB) Viewed 2297 times

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 1:18 pm
by Bee-Ant
I know about that...my question is...
HOW TO LOAD GAME WHICH PLACED IN "DATA" FOLDER???
Could I use this code :
Code: Select all
LoadGame("\data\Stage01.exe")

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 1:21 pm
by Kalladdolf
dunno, try! :D

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 1:24 pm
by Bee-Ant
:wink:
Hey kall is your holiday enjoyable???

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 1:27 pm
by Kalladdolf
was fun! :D
could have even been more fun with internet acces around :?

HAVE BEEN MISSING U GUYS *sniff* :cry:

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 1:39 pm
by Bee-Ant
:D
My holiday also have given me a new power...

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 3:00 pm
by makslane
Bee-Ant wrote:I know about that...my question is...
HOW TO LOAD GAME WHICH PLACED IN "DATA" FOLDER???
Could I use this code :
Code: Select all
LoadGame("\data\Stage01.exe")


No. The LoadGame will aways look in the folder of the current game.

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 4:46 pm
by Kalladdolf
how does the loadgame function work then?
like:
it exits your current game and opens the exe file the computer looks for?

Re: Saving UserVars in "Data" folder

PostPosted: Tue Oct 23, 2007 5:59 pm
by makslane
Yes. The LoadGame will exit the current game and load a new .dat or executable game.

Re: Saving UserVars in "Data" folder

PostPosted: Wed Oct 24, 2007 9:26 am
by Kalladdolf
YEAHHHH!
I've always wanted to get rid of this stupid menu problem I always have :D
and u export the game to .dat when u select "game data only" as export type?