Saving UserVars in "Data" folder

Game Editor comments and discussion.

Saving UserVars in "Data" folder

Postby Bee-Ant » Tue Oct 16, 2007 9:57 am

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:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Bee-Ant » Tue Oct 16, 2007 10:03 am

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)
Attachments
untitled.PNG
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Saving UserVars in "Data" folder

Postby makslane » Tue Oct 16, 2007 12:24 pm

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.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Saving UserVars in "Data" folder

Postby makslane » Tue Oct 16, 2007 12:27 pm

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.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Bee-Ant » Tue Oct 23, 2007 7:43 am

then how to load game in "data" folder???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Kalladdolf » Tue Oct 23, 2007 12:58 pm

!!! I'm back !!!

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

example5.JPG
example5.JPG (4.49 KiB) Viewed 2303 times
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Bee-Ant » Tue Oct 23, 2007 1:18 pm

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")
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Kalladdolf » Tue Oct 23, 2007 1:21 pm

dunno, try! :D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Bee-Ant » Tue Oct 23, 2007 1:24 pm

:wink:
Hey kall is your holiday enjoyable???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Kalladdolf » Tue Oct 23, 2007 1:27 pm

was fun! :D
could have even been more fun with internet acces around :?

HAVE BEEN MISSING U GUYS *sniff* :cry:
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Bee-Ant » Tue Oct 23, 2007 1:39 pm

:D
My holiday also have given me a new power...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Saving UserVars in "Data" folder

Postby makslane » Tue Oct 23, 2007 3:00 pm

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.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Kalladdolf » Tue Oct 23, 2007 4:46 pm

how does the loadgame function work then?
like:
it exits your current game and opens the exe file the computer looks for?
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Saving UserVars in "Data" folder

Postby makslane » Tue Oct 23, 2007 5:59 pm

Yes. The LoadGame will exit the current game and load a new .dat or executable game.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Saving UserVars in "Data" folder

Postby Kalladdolf » Wed Oct 24, 2007 9:26 am

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?
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Next

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron