This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
willwac's profile picture

Duostep; The Better Rednet Login System

Started by willwac, 14 September 2013 - 03:36 PM
willwac #1
Posted 14 September 2013 - 05:36 PM
COMPLETE RE-CODE COMING SOON!
  • Much Cleaner Code!
  • Encryption!

After getting annoyed with the roaming accounts login system on the wiki (http://www.computerc...oaming_Profiles), I decided to make my own.

This is what I came up with.

DuoStep
It uses MiscPeripherals' Player Detector, so be sure that you have that installed.

What you need:
Spoiler-A computer to serve as a server (no pun intended)
-A wireless modem to go on the server.
-An advanced computer (this is the client)
-A wireless modem to go on the client.
-A player detector connected to the client.

Download:
Spoiler
pastebin get RdPg0Rmr setup

SETUP SERVER:
Spoiler
  1. Download the server
  2. Edit the server file
  3. Change the side variable to the side of the wirelessss modem.
  4. Save the file
  5. You are done!

SETUP CLIENT:
Spoiler
  1. Download the client
  2. Edit the client file
  3. Change:
    local sID=2
    to "local sID=" and the ID of the server.
  4. Change the side variable to the side of the wireless modem.
  5. Save the file.
  6. You are done!

How to add an account:
Spoiler1) Stop the server computer (if it's running)
2) Edit the server file.
3) Somewhere below the green crap* there is a piece of code that looks like this:
local players = {"NewCoolPC"}
and this:
local pass = {"asdf"}
add a player name to the players list, and their desired password to the password list.
I know that this is a hassle, I will make it to where the account/password list is in a separate file.The code is in the server file, but I need to convert it into a number. I'll also make a program that will automaticly add a user and their password.

How to delete an account:
SpoilerDo the above, but delete a player name, and their corresponding password.

Check it out, tell me what you think, and we'll go from there.
:{)
TheRedcon #2
Posted 15 September 2013 - 09:14 PM
I have set up a server and client and when I open the client file it says 'click on the player detector' and after I do so, 'it says requesting validation info' or something like that and then the program closes.
willwac #3
Posted 16 September 2013 - 06:43 PM
I have set up a server and client and when I open the client file it says 'click on the player detector' and after I do so, 'it says requesting validation info' or something like that and then the program closes.

Sorry, you have to go into the client, and change

local sID=2
to the computer ID of the server.
willwac #4
Posted 16 September 2013 - 07:05 PM
Changed the original post to add setup instructions!