Author Topic: New Login System  (Read 3725 times)

0 Members and 1 Guest are viewing this topic.

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
New Login System
« on: October 23, 2003 10:22 pm CDT »
Due to another exploit, I am creating a different system for logging into the server.

From now on, no password information will be on the client.

This is how it will work.

For Current Charracters:
When you join the server you will come up to a screen that askes you to type in your password within 30 seconds. If you don't you get kicked. I will also be changing it so you nosy people won't be able to see other character's stats with deushud.

To type in your password, you will simply type #login password

For New Characters:
It will be similer to older versions of TRPG when Password protection was first put in. You will creat your character as normal. Remember, you won't need anything in 'Other Info' anymore. When you first spawn, you are given a message "Password not set for this character. Please type #mypassword password to set the password for this character." It is pritty obvious from here.

With things running completely on the server, it will be IMPOSSIBLE for someone to steal another character unless the owner of the character is careless.

I will be starting this, this weekend. It is tough to do things like this when you have a life =/ Hopefully it will be in a week from today.

Post your comments, opinions, whatever.. Not like it is going to matter much unless you have a killer idea that doesn't require a lot of work =/
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

Pecker

  • Server Mommy
  • Uber Menace
  • ******
  • Posts: 1,704
  • Reputation: +0/-0
(No subject)
« Reply #1 on: October 23, 2003 10:55 pm CDT »
I like the idea, only thing is now I'm gonna have to actually write my passwords down :P
« Last Edit: December 31, 1969 06:00 pm CST by Pecker »

Jason_Xero

  • Uber Menace
  • *******
  • Posts: 1,349
  • Reputation: +0/-0
(No subject)
« Reply #2 on: October 24, 2003 12:12 am CDT »
I guess I need to make a line in autoexec.cs or whatever Tribes uses so I won't have to type my 25 character password in everytime.
« Last Edit: December 31, 1969 06:00 pm CST by Jason_Xero »
Gotta love SBC with their 6Mbps tier for 45$
(Yes, on their site it only shows 3Mbps, but it is actually 6Mbps, I would know :)).


Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #3 on: October 24, 2003 02:42 am CDT »
Sounds cool Ozzy...  I've been wondering about that for a time.  Your solution kicks ass.

I would suggest you put some instructions, or a "Visit http://www.pcrpg.org/create.html to learn how to create and get started with a trpg character."

Instructions would be nicer though :-)  ie;
"Welcome to Particles Custom RPG.  To store a password for this character type "#mypassword yourpassword"" (for if the character is new)
Or
"Welcome to Particles Custom RPG.  Type "#login yourpassword" to log in."


Jason... the password length is not 25 characters... it cuts off around 7 I think... I forget to be honest, though I did a test with one of my characters;  I made a 20 digit password, then logged in subtracting a character off each time until I found the actual length... though I don't remember what that actually was. :-p  In any case, you're problem is solved as you won't have to worry about all those extra characters. :)  BTW... are you... related to LightBringer?  He had a 25 character password... or so he said. :-D
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff

Silvanoshei

  • Centurian Lord
  • ********
  • Posts: 1,804
  • Reputation: +0/-0
(No subject)
« Reply #4 on: October 24, 2003 11:17 am CDT »
Hmmm. Why can I see this happening?

[GLBL] Someguy "3login password"
[GLBL] Someguy "OMFG"
« Last Edit: December 31, 1969 06:00 pm CST by Silvanoshei »

The DoDoDo.

Your opinion is worthless unless you can support it.
We are not responsible for your stupidity.
I don't take sides. I take action.

Currently Playing:  Warcraft III [PC]

Pecker

  • Server Mommy
  • Uber Menace
  • ******
  • Posts: 1,704
  • Reputation: +0/-0
(No subject)
« Reply #5 on: October 24, 2003 01:30 pm CDT »
Quote from: "Silvanoshei"
Hmmm. Why can I see this happening?

[GLBL] Someguy "3login password"
[GLBL] Someguy "OMFG"



Haha, I was thinkin the same thing.
« Last Edit: December 31, 1969 06:00 pm CST by Pecker »

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #6 on: October 24, 2003 02:10 pm CDT »
Thats ok..

When the server has an 8-player limit I global'd the admin pass. It was around 32 characters consisting of a lot of numbers and letters.. I immediatly crashed everyone's tribes with a script afterwords, and had Particle change it so nothing could be done.
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

Pecker

  • Server Mommy
  • Uber Menace
  • ******
  • Posts: 1,704
  • Reputation: +0/-0
(No subject)
« Reply #7 on: October 24, 2003 03:05 pm CDT »
eViL's Idea:
make %client.Logged = false; when the client joins, and when a client goes to say anything, if !%client.Logged then make it not global or otherwise... just return; i guess, or if you wanted easier... you could just set it up so what they say is their pass... like:

if(!%clientId.Logged)
{
if(%message == fetch(%clientId, "password"))
}
« Last Edit: December 31, 1969 06:00 pm CST by Pecker »

Jason_Xero

  • Uber Menace
  • *******
  • Posts: 1,349
  • Reputation: +0/-0
(No subject)
« Reply #8 on: October 24, 2003 03:19 pm CDT »
Having a web-based way of creating characters would be cool.

Nah, I'm not related to LightBringer.
« Last Edit: December 31, 1969 06:00 pm CST by Jason_Xero »
Gotta love SBC with their 6Mbps tier for 45$
(Yes, on their site it only shows 3Mbps, but it is actually 6Mbps, I would know :)).


UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #9 on: October 24, 2003 03:25 pm CDT »
That was the first idea Part and myself had. You would need a forum account to create a server account. You could also find out what your character has through a database ect.

Maybe in the future, but for right now.. This will have to do.
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

xkenshinx

  • Centurian Lord
  • ********
  • Posts: 1,816
  • Reputation: +0/-0
Re: New Login System
« Reply #10 on: October 24, 2003 03:39 pm CDT »
Quote from: "UnderGod"
I will be starting this, this weekend. It is tough to do things like this when you have a life =/


fortunately for us..u don't have one

nice plan prince...
« Last Edit: December 31, 1969 06:00 pm CST by xkenshinx »

"First comes smiles, then lies. Last is gunfire." �Roland Deschain, of Gilead

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #11 on: October 27, 2003 09:28 pm CST »
I'm posting the code incase some other people may want it. Just make sure you give credit where it is due.

Code: [Select]
//Comchat.cs
//You know where this goes

if(%w1 == "#login"){
%c1 = GetWord(%cropped, 0);
%pw = fetchData(%TrueClientId, "password");

if(fetchData(%TrueClientId, "HasLoadedAndSpawned"))
return;

else{
if(%c1 == %pw){
Client::sendMessage(%TrueClientId, 0, Password accepted. Logging in now.");
Game::playerSpawn(%TrueClientId, false);
}
else
Client::sendMessage(%TrueClientId, 0, Login Failed. Invalid Password.");
}
return;
}

//Connectivity.cs
//Ahh yes.. The fun part!
//if($Client::info[%clientId, 5] == "")  Comment this if statement out, because we want them to be able to join if there is nothing in "Other Info"
//if(fetchData(%clientId, "password") Comment this one out too.. We aren't running checks in the "Other Info" field.
//Replace the statements directly under the comments "Everything went fine. Spawn the player."

%name = Client::getName(%clientId);
%filename = %name @ ".cs";

if(!isFile("temp\\" @ %filename)){
if(%clientId.choosingGroup)
        StartStatSelection(%clientId);
}
else{
Client::setControlObject(%clientId, Client::getObserverCamera(%clientId));
%camSpawn = Game::pickObserverSpawn(%clientId);
Observer::setFlyMode(%clientId, GameBase::getPosition(%camSpawn), GameBase::getRotation(%camSpawn), false, false);

Centerprint(%clientId, "Please login by typing #login password", 10);
}

This hasn't been tested, but should work with no problems. There may be a slight error with new characters, let me know if it is so. If you don't know where to put everything, don't bother trying.

Oh.. And to fix the problem with people blurting out their passwords..

in remotesay()

Code: [Select]
if(!fetchData(%ClientId, "HasLoadedAndSpawned"))
return;
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

Susan

  • Goblin Pup
  • *
  • Posts: 13
  • Reputation: +0/-0
(No subject)
« Reply #12 on: November 1, 2003 10:02 pm CST »
You should add a provision for new players that gets called if(!%pw).
Otherwise, they will never be able to get passed the login.
« Last Edit: December 31, 1969 06:00 pm CST by Susan »

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #13 on: November 2, 2003 07:45 am CST »
if(!isFile("temp\\" @ %filename)){
   if(%clientId.choosingGroup)
           StartStatSelection(%clientId);

That fixes it
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #14 on: November 2, 2003 02:51 pm CST »
Quote
Nah, I'm not related to LightBringer.


Ahh darn.  I wonder what happened to him.  He would always stick up for the new players and beat wolftones/celtic16 up for them on UB&G.  He was a goofy guy, but it was nice to have some light brought in times of such darkness.  I wonder what happened to him...
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff