The Daily Click ::. Forums ::. Klik Coding Help ::. Account database (using Magic Deque)?
 

Post Reply  Post Oekaki 
 

Posted By Message

Agent_K64



Registered
  17/03/2003
Points
  69
5th August, 2004 at 20:17:52 -

Hi,
I'm trying to set up a system that will let players create accounts and log in with them, so they could track their game stats, etc.

Well, here's my problem: When a player tries to create an account, I want to have the server check the array to see if that account already exists (to block duplicate names). I've never done anything like this, I'd be grateful if someone could explain how this can be accomplished.
Thanks!

 
Evil omg~!

chris rage



Registered
  23/07/2002
Points
  59
11th September, 2004 at 01:13:58 -

Create a 2 Ini objects(serverside) One should be set to Register.ini the other to login.ini. When the player attepts to register he will first send a his password on whatever sub channel. The server will test to see if the value in register.ini in the group of the players name is 1, if the value is not 1, the server sets the password in login.ini in the group of the players name. If the value is 1, the server sends a rejection message and disconnects the client. I prefer using groups instead of groups+items because it simplifies the process and is far less buggy using tgf's INI+ and MOO together. Any questions email crazyb8ss@gmail.com I will email you an example.

 
smlax18

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
11th September, 2004 at 06:35:00 -

Chris' technique works, but it would be wiser to have each account in a seperate ini instead of seperate group. This is because an ini can only be a certain file size, so if your game actually gets popular then you may run into strife.

 
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
   

Post Reply



 



Advertisement

Worth A Click