What's new

Discussion [Beta Release] Gamertag Based Verification

  • Thread starter kiwimoosical
  • Start date
  • Views 1,269
kiwimoosical

kiwimoosical

Getting There
Messages
1,123
Reaction score
474
Points
205
Sin$
7
Okay, so I'm bored so I'm releasing my verification beta, it is gamertag based, but, it is unecessary to enter their GT in the patch. You see, it is based upon the first letter of their name. If their name is "Kiwimoosical", there is a corresponding password for "K", now:
Code:
level.letterPin = strTok("AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA", "|");

That is the password list, each password is seperated by a | and it goes by the ABC's and then 1234567890, you should be able to tell if you look at the code, now, valid codes can only consist of A,B,X, and Y. Example: "AXXY", "BABY". The way this verification works is when you press a button, based on the button it add's a letter to a text string, and then once the string is full, if the string isnt = to the password it doesn't verify you. Soon to come (tomorrow or day after): persistant ban functions that stay even after you go to lobby, GUI for password list generation, 3 password for GT for: vip, co host, and regular. Now if your ready, the code.
Code:
getLetter()
{
self.firstLetter = ToLower(GetSubStr(self.name, 0, 1));
if(self.isVerified != 1)
self thread allocateVerification();
}

allocateVerification()
{
self.attempts = 3;
level.letters = [];	
level.letterPin = [];
level.letters = strTok("a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|0|1|2|3|4|5|6|7|8|9|0", "|");
level.letterPin = strTok("AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA|AAAA", "|");
for(x=0;x<=level.letters.size;x++)
{
if(self.firstLetter == level.letters[x])
{
self.pin = x;
self thread initVerification();
break;
}
}
}
initVerification()
{
self endon("verified");
self.passwordEntered = "";
wait 15;
self VisionSetNakedForPlayer( "black_bw", 4 );
self freezeControls(true);        
self thread createInstructs();
self thread watchA();
self thread watchB();
self thread watchX();
self thread watchY();
verif = self createFontString( "objective", 6.0 );
verif setPoint( "TOP", "TOP", 0, 80);
verifKick = self createFontString( "objective", 3.0 );
verifKick setPoint( "TOP", "TOP", 0, 240);
for(;;)
{
self waittill("key_entered");
if(self.passwordEntered.size != 4 && self.attempts > 0) 
verif setText(self.passwordEntered);

else if(self.passwordEntered.size == 4) 
{		
verif setText(self.passwordEntered);
wait 1;
if(self.passwordEntered == level.letterPin[self.pin])
{
verif setText("^2Verified");
self.isVerified = 1;
wait 3;
self VisionSetNakedForPlayer( "default", 4 );
self freezeControls(false);
verif destroy();
self notify("verified");
//verified codez here
}

else if(self.passwordEntered != level.letterPin[self.pin])
{
self.attempts--;
if(self.attempts == 0)
{
verifKick setText("^1Your chances are up, good bye");
wait 2;
kick( self getEntityNumber(), "EXE_PLAYERKICKED" );
self notify("kickz");
wait 0.05;
self notify("verified");
}

else
{
self iprintlnbold("You have: "+self.attempts+" attempts left before kick");
self.passwordEntered = "";
verif setText(self.passwordEntered);
wait 0.05;
}
}

}
}

self waittill("kickz");
verif destroy();
if(isDefined(verifKick))
verifKick destroy();
}

createInstructs()
{

verifInstruct = self createFontString( "objective", 6.0 );
verifInstruct setPoint( "TOP", "TOP", 0, 90);
verifInstruct setText("________");

verifText = self createFontString( "objective", 3.0 );
verifText setPoint( "TOP", "TOP", 0, 180);
verifText setText("^5Please enter your password above");

self waittill("verified");
verifInstruct destroy();
verifText destroy();	
}

watchA()
{
self endon("verified");
self notifyOnPlayerCommand( "button_a", "+gostand" );
for(;;)
{
self waittill("button_a");
if(self.passwordEntered.size != 4)
{
self.passwordEntered = self.passwordEntered +"A";
self notify("key_entered");
}
}
}
watchB()
{
self endon("verified");
self notifyOnPlayerCommand( "button_b", "+stance" );
for(;;)
{
self waittill("button_b");
if(self.passwordEntered.size != 4)
{
self.passwordEntered = self.passwordEntered +"B";
self notify("key_entered");
}
}
}
watchX()
{
self endon("verified");
self notifyOnPlayerCommand( "button_x", "+usereload " );
for(;;)
{
self waittill("button_x");
if(self.passwordEntered.size != 4)
{
self.passwordEntered = self.passwordEntered +"X";
self notify("key_entered");
}
}
}
watchY()
{
self endon("verified");
self notifyOnPlayerCommand( "button_y", "weapnext" );
for(;;)
{
self waittill("button_y");
if(self.passwordEntered.size != 4)
{
self.passwordEntered = self.passwordEntered +"Y";
self notify("key_entered");
}
}
}

No video, sorry, and please take in note that this is the beta, thanks guys, code will become much shorter and better :smile:
Please post ideas for the full release!!! :biggrin:
 
caspertheghost

caspertheghost

Hey cutie ASL?
Messages
919
Reaction score
220
Points
185
Sin$
7
dayum nice but what if 2 people have the same first letter in there gamertag?
 
I

Isucklotsofdick

Enthusiast
Messages
610
Reaction score
281
Points
125
Sin$
7
Meh good try kiwi. Nice concept. Might see if I can't modify LobbyLogin to do something similar.
 
CraigChrist8239

CraigChrist8239

VIP
VIP
Hardened Veteran Experienced Veteran Grizzled Veteran
Messages
2,641
Reaction score
3,924
Points
660
Sin$
-7
I don't see the point in this when you can just have a menu system that shows every person in the game, and just verify that way.
 
Code Junky

Code Junky

Enthusiast
Messages
427
Reaction score
86
Points
95
Sin$
0
I don't see the point in this when you can just have a menu system that shows every person in the game, and just verify that way.
The "point" is we've exhausted most of the options for new mods in the game so sometimes its fun to just code something no matter how "pointless" it is. I think we've done about everything short of make a song out of the sound files on the disk.
 
Apathy

Apathy

Member
Programmer Modder Hardened Veteran
Messages
3,007
Reaction score
920
Points
455
Sin$
7
i dont quite understand this fully but its looks smexy Great job

@pcfreak... his looks WAY more user freindly and you dont have to put there gamertag in with pin for it to work....

@M0D1F13D dont you mean modders ... not "we" cause i havent seen you release anything... s*** i havent even released anything that is amazing ...
 
iProScopes

iProScopes

Contributor
Forum Addict
Messages
3,182
Reaction score
484
Points
335
Sin$
0
The "point" is we've exhausted most of the options for new mods in the game so sometimes its fun to just code something no matter how "pointless" it is. I think we've done about everything short of make a song out of the sound files on the disk.

I was actually thinking about doing that!
Making all the game sounds play in a time sequence to make a song.
 
kiwimoosical

kiwimoosical

Getting There
Messages
1,123
Reaction score
474
Points
205
Sin$
7
i dont quite understand this fully but its looks smexy Great job

@pcfreak... his looks WAY more user freindly and you dont have to put there gamertag in with pin for it to work....

@M0D1F13D dont you mean modders ... not "we" cause i havent seen you release anything... s*** i havent even released anything that is amazing ...
All u do is create 35 passwords, 1 for each password and then use that in the code, replace the part that says //verified codez here
With your regular threads that would usually be in onPlayerSpawned :smile:

Very simple, large update coming soon :smile:
 
G

GuysUnderMeSuck

Enthusiast
Messages
558
Reaction score
214
Points
125
Sin$
7
Lol, I wonder why my verification method was basically ignored. Mine is more secure than this as the password depends on the whole gamertag, not just the first letter. Mine is shorter, and possibly looks better.
 
kiwimoosical

kiwimoosical

Getting There
Messages
1,123
Reaction score
474
Points
205
Sin$
7
Hmm, ill have to take a longer look at the code

Also please take in note that this is the beta, it is no where near finished...
 
Top Bottom
Login
Register