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

RedTech Os

Started by Mikee251, 03 February 2013 - 07:26 PM
Mikee251 #1
Posted 03 February 2013 - 08:26 PM
RedTech OS V1

Info:
Spoiler

RedTech OS is a new OS made by me, its logins are handled by a server which uses a diffrent set of code. All the commands in the OS work, but commands such as send file and message require a computer to receive it. The messaging system is not complete, but I do have code for a file receiver that I will also post. To set up an account, when you activate the server computer, you need to make a file, the name will be the username you want and put in the password you want as its data.
Example:
edit Mikee251
(Editing)
RedTech251
(close)
Then when you login, your username would be Mikee251
and your password would be RedTech251

Also if you make a file, name it message or something, then put some text in it and send it back and forth, send file can be used as a messaging system if you do not want to use the message command.

Also you have to add a startup code to the server and the client to auto open the rednet and to run it!
rednet.open("top,left etc etc")
shell.run("RedTech") (or RedTechServer)

If you want to play the game that is included, you must download it as a file, you can get the file down below!

Code:

SpoilerAuto installer for Client & game: pastebin get p6bfRumQ RTinstall

Server: http://pastebin.com/YU4MkeLC
or
pastebin get YU4MkeLC RedTechServer

File receiver: http://pastebin.com/SzUgKhXR
or
pastebin get SzUgKhXR RedTechReceiver


Screenshots:
SpoilerAdventuregame screenshots





Sorry I did not get pictures of everything, and also that I have the adventuregame shots on imgur instead of direct, and that adventurecraft is not included in one code!


Updates:


SpoilerV.1- Os released
jllloyd #2
Posted 03 February 2013 - 10:49 PM
This is really cool
Skullblade #3
Posted 04 February 2013 - 06:42 AM
Cool looking great for a "company" so that the computers have more controlled access. One recommendation though, make a auto installer that installs the game and the OS so the user only has to download one thing
Mikee251 #4
Posted 04 February 2013 - 07:06 AM
Okay I will in a few minutes
Mikee251 #5
Posted 04 February 2013 - 07:11 AM
Added it
Mailmanq! #6
Posted 04 February 2013 - 09:36 AM
Looks great, I normally don't like graphical "OSes", but this one is pretty good :)/>

Okay, now that I have tried it you need to fix a few things :

SpoilerTo open all modems do this :


for k, v in pairs(rs.getSides()) do
  if peripheral.getType(v) == "modem" then
    rednet.open(v)
  end
end

It cannot create accounts, so if you want that, do this :



if fs.exists(username) then
  local password = fs.open(username, "r")
  pass = password[i]
  password.close()
else
  password = fs.open(username, "w")
  password.write(retreivedPass) --You probably should have it sent the password and username in one message and split the string
  password.close()
  pass = retrievedPass
end

Mikee251 #7
Posted 04 February 2013 - 11:19 AM
Looks great, I normally don't like graphical "OSes", but this one is pretty good :)/>/>

Okay, now that I have tried it you need to fix a few things :

SpoilerTo open all modems do this :


for k, v in pairs(rs.getSides()) do
  if peripheral.getType(v) == "modem" then
    rednet.open(v)
  end
end

It cannot create accounts, so if you want that, do this :



if fs.exists(username) then
  local password = fs.open(username, "r")
  pass = password[i]
  password.close()
else
  password = fs.open(username, "w")
  password.write(retreivedPass) --You probably should have it sent the password and username in one message and split the string
  password.close()
  pass = retrievedPass
end

Oh I forgot about the open all one, at first it was just for me, then I ported it. Also you are not supposed to be able to create accounts using the client in case of spam, it is more of a private server kind of thing! you are supposed to add the accounts into the server manually
NeptunasLT #8
Posted 09 February 2013 - 10:21 AM
Not bad.