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

Request for testing - HimCo Industries Experimental OS v0.8 and Network

Started by Himself12794, 19 February 2014 - 12:39 AM
Himself12794 #1
Posted 19 February 2014 - 01:39 AM
So I have been working for quite awhile on my own network and OS system. So far I have it at what I deem an acceptable level to ask if people could test it. I have done testing, but I can only do so much for that. If anyone could test it, it would be much appreciated, and if anyone could critique the coding, that would be very much appreciated as well.

Right now, all I've really done is made a master server, router, passwords server, a file server, and a nice GUI for the client computer.
All of the computers start with rednet modems on the top, since I have not done a config program yet.

The code for the master server just has to be downloaded and run on the computer.
It's found here:

http://pastebin.com/zeZyS1fd

The routers help bridge the gap when distance is too far. There has to be at least one router, as the clients will not connect to the master server. After running the router startup, just put in the id of the master server.

The code for the routers are here:

http://pastebin.com/ZZ0zdH1x

There is the password server, which is supposed to control authentication. You register the sub-servers the same way as a router.

Password server is here: (sorry for inconvenient location, ran out of pastebin pastes)

http://philip.whitin...0server/startup

You can use below to download.
Spoiler

You can use function download(url,file)
  local content = http.get(url).readAll()
  if not content then
	error("Could not connect to website")
  end
  f = fs.open(file,'w')
  f.write(content)
  f.close()
end

The file server allows the client to save files remotely, where anyone can access it. Password server provides protection to user specific files.

Code is here: (again, sorry for wonky location)

http://philip.whitin...0server/startup

Finally, the client code. This one has the most files, and the one mostly likely to be littered with mistakes.

http://philip.whitin...craft/installer

That one has an installer, so you just download and run it.

I believe that's everything. If anyone is willing to try it out, I hope you are able to tell me about any errors or weak coding you find.

Thanks!
morgancentral #2
Posted 01 December 2014 - 03:43 AM
Hello, I was just wandering if you know a way to fix the password server currently its saying as soon as i boot it that the function api functions:226: index expected, got nil