• Keypad (STool)
    444 replies, posted
Like i said before, can you make it savable? That would make it perfect. I really, really like this stool...
I think I will have alot of uses for this thing... =)
[QUOTE=tintructo]This should be ported to be used with the Wire Addon.. like this : Correct Password = value : On/1 Incorrect Password = value : Off/2 it would be AWESOME and SO useful.but it's a really good stool anyway[/QUOTE] Yes, there are many STools which would be great if they were transferred in Wire, but actually you can use the keypad with wire if the keypad activates inputs. Great STool, Lua King'd.
Uhm, this has support for wire mod. [quote=Robbis_1]This includes 3 STools, normal, advanced (pic) and wire version. The wire version is under the "Wire" menu.[/quote]
This mod is really awesome. Congrats =)
Awesomeness! This is very useful.
I don't get it. It just says invalid password every time I try to spawn a keypad. :(
Dude! you rock!
[QUOTE=masterburner]Like i said before, can you make it savable? That would make it perfect. I really, really like this stool...[/QUOTE] I really Would like that to? if you can not do please say why? :) (do not ask why i want to know) I do not play alot on server, more singleplaying to me :P
Little question: Someone released a command '/crack' in an external server-side script which can tell people the password! I'm too lazy to check your code, but do you store the password (server-side of course) not encrypted ? if yes, maybe you can put a md5 sum before, for improve security ! [b]Edit:[/b] Okay, I check a little your code. So you store the password in a table in the init.lua. Maybe if you add just the keyword 'local' on your var declaration ? [lua]local Keypad = {} local Keypad.Passwords = {} local Keypad.CurrentNum = {}[/lua] Any external script will not access to these data anymore.
[QUOTE=Chaussette]Little question: Someone released a command '/crack' in an external server-side script which can tell people the password! I'm too lazy to check your code, but do you store the password (server-side of course) not encrypted ? if yes, maybe you can put a md5 sum before, for improve security ! [b]Edit:[/b] Okay, I check a little your code. So you store the password in a table in the init.lua. Maybe if you add just the keyword 'local' on your var declaration ? [lua]local Keypad = {} local Keypad.Passwords = {} local Keypad.CurrentNum = {}[/lua] Any external script will not access to these data anymore.[/QUOTE] Listen, if they can tell the passwords, then the script must be server-side (like you said). The server can do whatever they want with the script.. And the .Passwords and .CurrentNum is local because the main table is local. Your code will probably give some error. There is nothing i can do about it, except making it encrypted. But then the server can fiddle with the script anyway, so it doesn't matter... Also, I'm sorry for not being able to update anything on the Keypad.. But I've been busy.
Robbis_1, it isn't local, and yes I did make a /crack command, only admins can use it though and server should be able to do what they want. [QUOTE=Chaussette] Okay, I check a little your code. So you store the password in a table in the init.lua. Maybe if you add just the keyword 'local' on your var declaration ? [lua]local Keypad = {} local Keypad.Passwords = {} local Keypad.CurrentNum = {}[/lua] Any external script will not access to these data anymore.[/QUOTE] The server should be allowed to do whatever he likes, if it was clientside yeah you would want protection because then a client could come into the server and do what he would like. But as it's server side the only way for someone to crack it is for the server to have a command like that installed. Meaning that the server owner would like that to happen. And Chaussette, don't forget you can't make the table entries local after you've made the main table local. It must be like so: [lua]local Keypad = {} Keypad.Passwords = {} Keypad.CurrentNum = {}[/lua] Silly you :keke:
[QUOTE=Conna]Robbis_1, it isn't local, and yes I did make a /crack command, only admins can use it though and server should be able to do what they want. The server should be allowed to do whatever he likes, if it was clientside yeah you would want protection because then a client could come into the server and do what he would like. But as it's server side the only way for someone to crack it is for the server to have a command like that installed. Meaning that the server owner would like that to happen. And Chaussette, don't forget you can't make the table entries local after you've made the main table local. It must be like so: [lua]local Keypad = {} Keypad.Passwords = {} Keypad.CurrentNum = {}[/lua] Silly you :keke:[/QUOTE] [B]L[/B]aughing [B]M[/B]y [B]A[/B]ss [B]O[/B]ff Smart ass.
Cool beans.
[QUOTE=thegrb93]I don't get it. It just says invalid password every time I try to spawn a keypad. :([/QUOTE] You can't use zero's in your code because there is no zero on the keypad....
[QUOTE=Conna]And Chaussette, don't forget you can't make the table entries local after you've made the main table local. It must be like so: [lua]local Keypad = {} Keypad.Passwords = {} Keypad.CurrentNum = {}[/lua] Silly you :keke:[/QUOTE] I wroted this post at 6h AM a sonday. I know that, thank you. You have anything to learn me about code optimisation ;) dumbass. Robbis, it's was just a suggestion. With encryption, it's very easy. when someone create a keypad just store the encrypted password. When someone try the code, just check encrypt( typedCode ) = stored_code_already_encrypted. But i don't know if a md5() function exits ( nothing about that on the documentation ) and making that kind of function is a little brainstorm.
I get the same error as thegrb93. I reinstalled Garry's Mod yesterday to get PHX to easy weld (And fix a few other errors :P) and it worked before the reinstall. I read what you were saying about not being able to use 0's on the numpad. I don't think that I used them EVERY time, but I will make sure I don't and see if that works. For people who didn't read thegrb93's error: Whenever I put in a password and start to spawn it, it says "Invalid Password". Edit: Gah, sorry for this post. I made a keypad with no 0s and it worked fine. ~.Evix
[QUOTE=thegrb93]I don't get it. It just says invalid password every time I try to spawn a keypad. :([/QUOTE] Same thing happens to me. what the hell.
[QUOTE=Amplar]Same thing happens to me. what the hell.[/QUOTE] Have you used a zero in your password? There isn't one on the keypad.
No..no zeros. Still doesn't work.
Amplar, is there any error? If there is, please post it. Heads up! New version released! It now saves correctly in single player :D
[QUOTE=NaMaNaX]Are you using OL_SuperNumpad?[/QUOTE] I think so. I'm 99% sure it came with GMod Plus.
404 File not found.
Fucking Ace! Use a keypad to keep the minges out with turret triggers!
Sweet. Very useful.
love it
this is great for bases that have more than 1 persons access :)
Never mind, found out the problem.
Wheres My GMOD folder I CAN'T FIND IT D:
Does this still work with the update? I dropped it in my addons folder for my server and I don't see it in the menu.
Sorry, you need to Log In to post a reply to this thread.