Ok, is it possible to have a username/password script for TgF? I need one that ill determine the characters you are allowed to use depending on your username and password... but i cant find a tutorial anywhere.
Dear Mother,
Can You Hear Me Laughing
It's Been Six Whole Months Since
Since That I Have Left Your Home
It Makes Me Wonder Why I'm Still Here
For Some Strange Reason It's Now
Feeling Like My Home
And I'm Never Gonna Go
Welcome To Paradise...
Hey, it's the user's fault if they hack the INI file. They're only spoiling their own fun.
(after all, who doesn't love using Teh l0pht-crack0r!!)
Using an INI file initially is better since you can see what you're doing. It's not hard to switch to an associative array, except for the fact you have TGF - so store it in the Binary object instead.
INIs are fine. It pisses me off when people try to make them difficult to mess with, because I almost always figure it out anyway and it's just a pain in the ass. I think generally people only mess with INIs because they've become bored with your stupid game, so if you don't want people skipping ahead try improving the game rather than disguising the INI--all that's going to do is invoke a 'fuck it' and deletion.
you could use an encryption object to make the ini object practically unhackable
.
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
4th March, 2005 at 21:43:17 -
I agree with Radix, there's not much point encrypting an ini unless it's for something special like a mmorpg.If they want to open up the ini and mess around, that will either extend the life of your game, or it means the person is bored with your game.
Thank you all for the suggestion.... but there is one question not answered.... i don't think i phrased it correctly (rushing as usual) but i kinda need to have a howto on it... like, HOW to use the ini/blowfish (and what is blowfish) to make the username/password script... agian, thanx, this is a start for me.
Dear Mother,
Can You Hear Me Laughing
It's Been Six Whole Months Since
Since That I Have Left Your Home
It Makes Me Wonder Why I'm Still Here
For Some Strange Reason It's Now
Feeling Like My Home
And I'm Never Gonna Go
Welcome To Paradise...
1.Make an edit box for username and another for password.
2.Make a string object for username and another for password, and place them outside of the level (unless you want to see what the password is...)
3.Make a button that says "login" or something.
Events:
4.
Start of frame:
-set alterable string of string object 1 to "username"
-set alterable string of string object 2 to "password"
--OR--
-load text "username.txt" or whatever for string object 1
-load text "password.txt" or whatever for string object 2
5.
'login' button is clicked
+ Get text of editbox 1 = text of paragraph of string object 1 (use compare two general values for this)
+ Get text of editbox 2 = text of paragraph of sting object 2 (again, the compare two general values)
-goto next frame (or whatever you want it to do when logging in)
Optional
6.
'login' button is clicked
+ Get text of editbox 1 [different] text of paragraph of sting object 1
-play sample "wrong login.wav" or whatever
-set text of editbox 1 to " "
-set text of editbox 2 to " "
7.
'login' button is clicked
+ Get text of editbox 2 [different] text of paragraph of sting object 2
-play sample "wrong login.wav" or whatever
-set text of editbox 1 to " "
-set text of editbox 2 to " "
Try it out and see if it works. If you do the 'load text at beggining of level' version, you can change the password and username without going into tgf or mmf or whatever, but if you do the 'change alterable paragraph' one, it is less prone to curious haxxors.
The rest shouldn't be to hard. If it is, you know where to ask.
Edited by the Author.
"Computers in the future may perhaps only weigh 1.5 tons."
-Popular Mechanics, forecasting the development of computer technology, 1949
_Rydin, thanx man.. testing now, but before i do, what string object r u using? Is it an extension or does it come w/ TgF?
Edited by the Author.
Dear Mother,
Can You Hear Me Laughing
It's Been Six Whole Months Since
Since That I Have Left Your Home
It Makes Me Wonder Why I'm Still Here
For Some Strange Reason It's Now
Feeling Like My Home
And I'm Never Gonna Go
Welcome To Paradise...