Messing with VARS

You must understand the Game Editor concepts, before post here.

Messing with VARS

Postby toshiro » Wed Jun 18, 2008 9:26 pm

Does anyone know if there is way to check for a variable without loading it :?: :? I am trying to make a login system for my game, and to have more than one user account i have set up multiple save groups to save each individual username and password but i need a way to make the game check the number of usenames and passwords currently saved(without loading them)so it knows which group to save the variables for a new account in each time. My save groups are in order from "NameandPassword1" to "NameandPassword10". I know its kind of hard to explain but any help would be great.
Upcoming projects: Twilight sKys 15% done, est. release Jan 1st
User avatar
toshiro
 
Posts: 22
Joined: Mon Nov 12, 2007 2:22 pm
Score: 0 Give a positive score

Re: Messing with VARS

Postby DST » Wed Jun 18, 2008 11:24 pm

One way would be to have another saved variable that goes up every time someone makes an account, and goes down every time someone deletes an account. That variable will tell you how many accounts have been made.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Messing with VARS

Postby Thanx » Mon Jun 23, 2008 2:46 pm

If you're talking about the problems of BIG variables, that noticably slow down the game, then I have to recommend dangerous waters: pointers. They're small, they don't load the variable they point to, like somearray[10000]. But it is kinda messy to handle them, so few of us here actually use them too much.
Also, it's good to know, that pointers actually contain the variable's actor, which also adds a bit of trickyness to it.

But I can't really talk about them, cause I don't use them myself, maybe someone else should talk about this to you, if this is what you want to use? :D
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest