Jump to content




Player profile detector pherphiral


  • This topic is locked This topic is locked
22 replies to this topic

#1 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 06:08 AM

ok so simple enough a peripheral that will detect a player and there username the uses of this are untold just to list a few

List
could act as i bio metric scanner for doors
auto sign in to Pc's
personalized welcome messages
and so much more im not even tipping the ice berg


Oh forgot to say would also love it if the peripheral worked on tekkit

Edited by Deathknight0897, 05 July 2012 - 10:30 AM.


#2 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 09:33 AM

I don't like this though

It should detect something unique to each player - just nothing specific
As in it may generate a random ID for each player and associate it with them or something

#3 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 10:01 AM

that's what im saying it simply detects an id or username the list is what it could be user for

#4 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 10:11 AM

View PostDeathknight0897, on 05 July 2012 - 10:01 AM, said:

that's what im saying it simply detects an id or username the list is what it could be user for

And I'm saying it should detect a random hash value thats unique to each player rather than a username

#5 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 10:19 AM

problem is with a random hash value is how would it decide who is 1 who is 2 i guess you could just would be easier to code if it was there name otherwise you would have to keep finding out what there hash was

#6 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 05 July 2012 - 10:22 AM

Well no, the idea would be that the hash will be the same for a player no matter what - but it wouldn't actually be the players name.

#7 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 10:26 AM

i know it wont be the players name ok let me explain myself lets say in this example i was creating a database for a bunch of door lock i don't want to have to keep referencing what someones hash is if it was there username it would be easier to remember for example

in hash form you would have to find out all the people,s ids who are allowed in and keep having to look up what there id was
41
140
486

username form
Deathknight0897
Cloudy
pinkishu

as you can see when writing the code it will be much easier to refer to there username

#8 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 11:05 AM

View PostDeathknight0897, on 05 July 2012 - 10:26 AM, said:

i know it wont be the players name ok let me explain myself lets say in this example i was creating a database for a bunch of door lock i don't want to have to keep referencing what someones hash is if it was there username it would be easier to remember for example

in hash form you would have to find out all the people,s ids who are allowed in and keep having to look up what there id was
41
140
486

username form
Deathknight0897
Cloudy
pinkishu

as you can see when writing the code it will be much easier to refer to there username

my username shouldn't be able to be found out though - in RL i have to fill out a form and put my name too
also you just make a table
IDs[41] = Deathknight0897

etc

#9 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 11:21 AM

true yeah alright i concede i give you this one maybe the perphiral should auto generate that for you in a txt file

#10 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 11:23 AM

Well no, it shouldn't, it should just spit a code back and associating that is up to you

#11 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 11:25 AM

ok so answer me this in a server of 100 people lets say how can you quickly reference who is who

#12 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 05 July 2012 - 11:31 AM

You detect them once, then store that value for later use.

#13 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 11:37 AM

also in regards to the perphiral returning a hash code would be much longer for example my way much more efficient and easy
ps: i highly doubt the code below would work but it gives an example of how easy code would be with users not hash
if ("Deathknight0897")
print("Hello Deathknight0897")
print("Access Aproved Have A Nice Day") -- Change this if you wish to have a custom congratulations
sleep(4)
rs.setOutput(side,true)
sleep(opentime)
rs.setOutput(side,false)
os.reboot()
elseif
if "Cloudy"
print("Hello Cloudy")
print("Access Aproved Have A Nice Day") -- Change this if you wish to have a custom congratulations
sleep(4)
rs.setOutput(side,true)
sleep(opentime)
rs.setOutput(side,false)
os.reboot()
else
print("Access Denied Please Try Again") -- Change this if you wish to have a custom fail message
print("Or")
print("If you are not an Authorized personel please leave now")
sleep(7)
os.reboot()


#14 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 11:40 AM

Having turtles with infinite inventory would be much easier too :P/>

iddb = loadIDDB()
userid = getUserID()
print("Hello " .. iddb[userid])

Even a hash code makes stuff much easier - maybe even too easy though i guess it would be equivalent to a fingerprint or retina scan or so

#15 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 11:41 AM

View PostCloudy, on 05 July 2012 - 11:31 AM, said:

You detect them once, then store that value for later use.
but surly it would be more simple to know the hash value through a table or some sort of query as in large servers my point is take the colour api that works through hash because red is the same no matter what server your on now if lets say on my server i was 1 and my friend was 6 how would i find out he was 6 using hash surely to simplify things you want to use gamer tags

#16 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 11:43 AM

ok your example works brilliantly for hello now a security program hello intruder welcome in :P/>

View PostPinkishu, on 05 July 2012 - 11:40 AM, said:

Having turtles with infinite inventory would be much easier too :)/>

iddb = loadIDDB()
userid = getUserID()
print("Hello " .. iddb[userid])

Even a hash code makes stuff much easier - maybe even too easy though i guess it would be equivalent to a fingerprint or retina scan or so


#17 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 11:43 AM

View PostDeathknight0897, on 05 July 2012 - 11:41 AM, said:

View PostCloudy, on 05 July 2012 - 11:31 AM, said:

You detect them once, then store that value for later use.
but surly it would be more simple to know the hash value through a table or some sort of query as in large servers my point is take the colour api that works through hash because red is the same no matter what server your on now if lets say on my server i was 1 and my friend was 6 how would i find out he was 6 using hash surely to simplify things you want to use gamer tags

So you just make a registration thingy and have them input thier "gamer tag" name and store their ID on both servers then...

View PostDeathknight0897, on 05 July 2012 - 11:43 AM, said:

ok your example works brilliantly for hello now a security program hello intruder welcome in :P/>

View PostPinkishu, on 05 July 2012 - 11:40 AM, said:

Having turtles with infinite inventory would be much easier too :)/>

iddb = loadIDDB()
userid = getUserID()
print("Hello " .. iddb[userid])

Even a hash code makes stuff much easier - maybe even too easy though i guess it would be equivalent to a fingerprint or retina scan or so

oh well yeah i thought people should be able to append the rest but here it goes
iddb = loadIDDB()
userid = getUserID()
print("Hello " .. iddb[userid].name)
if iddb[userid].allowed then
  rs.setOutput("left",true) sleep(2) rs.setOutput("left",false)
end


#18 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 11:46 AM

now there you have made a presumption that you know the id my point is how do you find out the id of the user

i see were your going with it and you are right hash is a better system im merely trying to assatain the best id detection system ie how you know who is who

#19 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 11:48 AM

View PostDeathknight0897, on 05 July 2012 - 11:46 AM, said:

now there you have made a presumption that you know the id my point is how do you find out the id of the user

i put them infront of a PC where they register an account and then i set their allowed state to true?
You know like the whole internet does it :P/>

#20 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 05 July 2012 - 11:48 AM

Are you trolling? Because I posted a few posts up.

View PostCloudy, on 05 July 2012 - 11:31 AM, said:

You detect them once, then store that value for later use.

Edit: Ninja'd





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users