Simple login
by Alexander B · in Torque Game Engine · 04/22/2009 (12:52 am) · 6 replies
When I start the game I want the player to be forced to enter a username and password before they can click any button.
So as soon as they enter a username and password it will check with a server to make sure it's right.
How would i go about doing this? Also if what i want is possible how would I create accounts?
Thanks in advance
Alexander
So as soon as they enter a username and password it will check with a server to make sure it's right.
How would i go about doing this? Also if what i want is possible how would I create accounts?
Thanks in advance
Alexander
#2
Just checked your profile...this process is not as complicated as it may sound.
04/22/2009 (3:14 am)
Edit:Just checked your profile...this process is not as complicated as it may sound.
#3
Also, this could probably be accomplished via TorqueScript however, creating a login screen via TorqueScript would initially put the player on your server. Therefore, using TorqueScript to do this may present some security issues.
04/22/2009 (3:30 am)
Edit Edit:Also, this could probably be accomplished via TorqueScript however, creating a login screen via TorqueScript would initially put the player on your server. Therefore, using TorqueScript to do this may present some security issues.
#4
04/23/2009 (3:10 am)
Do you have an msn? because this sounds a bit to compicating.
#5
04/24/2009 (5:54 pm)
Bump
#6
04/25/2009 (12:52 pm)
try Torque Admin System or Simple LoginServer found by using advanced search, search for 'login' in resources.
Torque 3D Owner RealmX
1) Create a login page via C#
2) When the user enters their username and password, they'd click a button or press enter which would send an async request to the server.
3) The server would check the db to see if the username and password existed. If so, the server could return a "true" to the page which would then redirect the player to your game's start page/menu. If the username and passord did not exist, the player would be redirected to a "create an account" page/menu (doesn't have to be a new page) or simply receive a "account does not exist" message.
4) After the player created a new username and password and clicked a button or pressed enter, an async request would be sent to the server to make sure it doesn't exist. If it exists, the server would send back a "username and password already exists" message. If it doesn't exist, the new account would be created via SQL by the server.
5) After the account was created successfully, the user would receive a "account created successfully" message and could then login.
This is a summary of 1 way to accomplish this, minus validation and details behind the async and SQL stuff. Hope it helps!!!