Game Development Community

dev|Pro Game Development Curriculum

User Account System

by Skylar Kelty · 11/13/2006 (4:37 pm) · 170 comments

---------------------------------------------------------------------------------------------------
Version 3
---------------------------------------------------------------------------------------------------

Version 3.3 - Updated!
download v3.3
Version 3.3 uses Web-Server Interaction and features awards, stats and member panel.
This version requires PHP, MYSQL and TorqueScript Knowledge.
If you have downloaded this before, make sure you clear your browser's cache!

Version 3.2
download v3.2
Version 3.2 uses SQLLite and features awards, stats and member panel.

Version 3.1 - Untested!
download v3.1
Version 3.1 uses xml and features awards, stats and member panel.

---------------------------------------------------------------------------------------------------
Old Versions
---------------------------------------------------------------------------------------------------

Version 2 - No longer supported!
download v2
Version 2 uses SQLite, which is more secure. Some of you may not want to use SQLite, if you dont, use v1.2

Version 1.2 - No longer supported!
download v1.2
Version 1.2 uses the fileobject

---------------------------------------------------------------------------------------------------
ChangeLog
---------------------------------------------------------------------------------------------------

UPDATES:
v1.1 - bug fixes
v1.2 - now uses c++
v2 - now uses SQLite
v3 - Fixes, Updates and 3.3 uses web-server interaction
v3.3 - Updated to.. actually work.. see comments
Page «Previous 1 2 3 4 5 6 7 Last »
#1
11/15/2006 (10:07 am)
Updated - v1.2 - 15/11/06
#2
11/17/2006 (11:42 am)
Updated - v2 - 18/11/06
#3
11/19/2006 (7:44 pm)
Thank you so much for this resource. This will help me alot.
BTW, when I tried to unzip the v2, I got an error message that Sqlite.dll was corrupted.
Hongjin
#4
11/20/2006 (8:40 am)
I cant reproduce that, try re-downloading it.
#5
11/21/2006 (5:27 pm)
I do not understand putting the instruction of putting it into the game filter. Please explain, im sure its something i already know just brain not thinking of it >_<, also upon the game loading is it supposed to pop up the registration form? also the login form? or does it need to be called with a bind. Please be a little more specific for the semi-noobs out there =). Thanks.
#6
11/22/2006 (7:37 am)
Devin, what's the game filter? GameBaseData?
Im releasing something soon which will show you all a way of using this.
Use it for whatever you want
#7
11/26/2006 (2:33 am)
James, I get the same error as Hong Jin Park (that sqlite.dll is corrupt). I've downloaded twice and tried two different programs to unzip the files. There is also an "unexpected end of file" error that I get when I try to unzip the files. The error also happens in your other UAC resources. At least some of the files are unzipped so I've tried your resource using the sqlite.dll that I already had. Nothing seems to happen when I run the program. I'm not sure if I'm missing files since I get errors when I try to unzip v2. Or, should something be entered into the console?

Regarding Devin's question about game filter: you said "Add the new files to your project (in the game filter)" in the howtoinstall.txt. I assumed that meant to add the files in the games section. Everything seemed ok when I compiled.
#8
11/26/2006 (2:41 am)
oh THAT game filter, yep the engine/game 'folder' in VS2005

Erm, I think the rar files are okay, they work for me, ill re-upload them just in case

As for the 'it dont do anything' you have to integrate it yourself, you know, adding buttons?
#9
12/03/2006 (4:01 am)
Ok here goes, im using TGE 1.4.2 under linux, i compiled my binary and im using your script. At the end of uac.cs you have

%result = strreplace(%result, """, "\"");

%result = strreplace(%result, "&", "&");

I get the script error so i corrected it with %result = strreplace(%result, "", "/");
.

Now i get no script errors, but upon starting the game i still dont get the Login/Regiser screen. Do i have to push it from the server to the client to call the gui or what? also when its called i still dont get any data in the users file, not even blank fields.
#10
12/03/2006 (7:18 am)
you need to push the gui from client like say a button???

btw:
%result = strreplace(%result, "\"", "\"");
#11
12/04/2006 (11:00 pm)
Well figured out part of my problem, when I was compiling in linux I forgot to add it to my make list >_<, also when i compiled you had the wrong header file in teh include instead of:
#include console.h

it should be:
#include consoleTypes.h

Otherwise you will get the TypeBool not declared in this scope error.

When I changed this around I can push it from the client form the main gui but when I try to register it locks up. No segfaults or anything I can still view my console, I used trace but it doesnt gie me anything useful, gonna try and figure it out, Im probably just overlooking something stupid lol.

::Update::
still getting the lock up, but somewhere along the way I got the info to be able to save to my home folder in linux (which in the default UAC.cs script it has it pointing to "~/data/users/" which would indeed point it to the home folder. I might try this on windows and see if i get the same errors/occuerences. It seems that it has something to deal with it trying to push an errordialog but its not coming up. Not quite sure.

Also something else has come to my attention, are you using this in TSE or TGE?? Because in your custom header file you have it as TSE, and if so there are significant differences in the TSE code and TGE code, I suggest in the future you post which one it is for if it is in fact for TSE.

::Fixed!!::
Alright heres what I did wrong. The above corrections stand. But if you want to actually test this out modify/add buttons on the main page to push the DIALOG of loginDlg and registerDlg (i was pushing them as GUI's which is what caused me to hang >_<). Afterwards when you register and login you can trace your results in the console with trace(1). Works like a charm, in linux thouhg unless you do the fix for compiling, your dso's and game data will be put into ~/.garagegames/ which is a hidden folder. now to get it to communicate as a master server and client =).
#12
12/06/2006 (11:52 pm)
Also on the MessageBoxError() functions change them to MessageBoxOK for a quick fix, theres no such class as MessageBoxError from what it can find.
#13
12/07/2006 (7:50 am)
Oops, There is no MSGError in stock, there is in my game, some custom stuff I forgot to take out :(
#14
12/11/2006 (10:23 pm)
Hmm, when I open the Register or login dialog, everything behind the dialog freezes, and when I try to Register it gives me an error: " 0: Unable to find object: 'UAC' attempting to call function "Register"."


Also, when I try to close the dialog, the whole game freezes.
#15
12/13/2006 (12:49 pm)
@DrDysdy
Are you pushing it as a Gui or a Dialog? More than likely you are pushing it as a GUI, and when you do that it interferes with the current GUI you have loaded in the buffer. be sure to canvas.pushDlg(registerDlg).

for the error make sure you have the uac engine code compiled in and that you correct the uac.cs file typo that i commened on above. Are you using UAC 1.2 or 2.0?
#16
02/09/2007 (9:20 am)
Having trouble extrating the files for the sql lite. Did anyone ever fix this problem?

Problem fixed :)
#17
05/25/2007 (12:13 am)
Seems like a great resource, though not fully sure I understand how it works? is the username, password information stored in the sqlite.dll?

Regards :)
#18
08/01/2007 (6:37 pm)
I believe this may need a little bit more instruction on installing/compiling.

As far as compiling is concerned I don't have the link section done correctly because I am not sure how to do that. I am getting zero errors when compiling. I now have the buttons and the pushdialog set. I get the screen....I can enter to register....I go to login....and nothing. Nothing happens. I can't even get the thing to display an error when not entering in any password. For those who have had success would you mind letting the rest of us know how to do it? Thank you.
#19
08/01/2007 (7:28 pm)
I went with version 1.2 instead because for the time being I want to be able to work from a text file. My questions are these....... After you login where is it supposed to take you? 2.) Where do you specify?
#20
08/02/2007 (12:14 am)
Look through the code, find the login function and see where it takes you

Hint:
In the function: UAC::login

in the block: if(%continue == true){

it says: canvas.popdialog(logindlg);

So what does that do? Closes the login box...
Page «Previous 1 2 3 4 5 6 7 Last »