The Daily Click ::. Forums ::. Klik Coding Help ::. Username
 

Post Reply  Post Oekaki 
 

Posted By Message

Mr. Misterty



Registered
  03/03/2005
Points
  8
3rd March, 2005 at 08:55:28 -

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...

shftd



Registered
  26/12/2003
Points
  156
3rd March, 2005 at 09:03:09 -

Use an INI-file. At least that's what I would do. I would write an article or something if I wanted to... but I don't. Not right now.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
3rd March, 2005 at 09:08:19 -

INI OBJECT???? THAT'S HACK-GALORE!!!

 
Old member (~2004-2007).

shftd



Registered
  26/12/2003
Points
  156
3rd March, 2005 at 09:11:19 -

well, SORRY!!! Just because of that, you don't have to hack around in it!

 
n/a

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
3rd March, 2005 at 13:41:31 -

Blowfish and INI/Array work well together.

 
n/a

Johan Hargne (Wartagon)

Lover Of Circys

Registered
  15/06/2003
Points
  1289

Game of the Week WinnerCROBASOFTVIP MemberPS3 OwnerWii OwnerMushroom
3rd March, 2005 at 14:32:26 -

reconsider to take the suggestion you just said about making an article back, Emil

 
Music Composer.
http://johan.hargne.se

Crobasoft
www.crobasoft.com

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
3rd March, 2005 at 20:12:51 -

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.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
3rd March, 2005 at 20:43:03 -

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.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
4th March, 2005 at 09:24:56 -

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

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
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.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Mr. Misterty



Registered
  03/03/2005
Points
  8
5th March, 2005 at 19:05:37 -

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...

CsaR

Old tdc fart

Registered
  16/09/2002
Points
  742

Game of the Week WinnerVIP MemberWii OwnerHas Donated, Thank You!
6th March, 2005 at 08:53:03 -

Try searching in the articles section on INIs. There should be something about what you are looking for.

 
(9*_*)9 o-(*_*o)
www.hoghar.com

_rydin



Registered
  06/06/2004
Points
  317
19th March, 2005 at 01:34:27 -

This is how I would do it:

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.

Image Edited by the Author.

 
"Computers in the future may perhaps only weigh 1.5 tons."
-Popular Mechanics, forecasting the development of computer technology, 1949

Mr. Misterty



Registered
  03/03/2005
Points
  8
20th March, 2005 at 11:42:12 -

_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?

Image 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...

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
20th March, 2005 at 16:29:24 -

String objects in MMF are equivalent to Text objects in TGF.

 
http://www.davidn.co.nr - Games, music, living in America
   

Post Reply



 



Advertisement

Worth A Click