Posted 08 July 2014 - 03:31 AM
ended up fixing it on my own nvm
Alright, before I get into this, let me warn you this is some pretty complex stuff.
Anyway, I'm making a program that will allow you to use wired modems hooked up to drives as storage space for computers that are hooked up. This works by splitting programs across disks(you will see how this is done when I show the code)then having a seperate network that has computers hooked up that communicate with the server to see files, write files, and pretty much general FS stuff. The client overwrites FS with a modified library that uses this communication but allows access to ROM.
Server code:
http://pastebin.com/nope
Client code:
http://pastebin.com/nope
Hook them up with a wired network and then edit the programs and edit the config at the top to the side of the 2 modems for the drive & computers. You might be able to figure it out just by looking at the problematic client code, but I've provided both. The error is on the first command, and it's "Attempt to index nil"
The issues are:
Client side:
fs.open doesn't work with read (lines ~40-50, at the if statement mode=="r")
-Shell locks up(you'll need to use the Lua prompt to see the other bugs for now)
-Shell APIs get sqrewed up
-fs opening doesn't work(I need help figuring out how to handle fs.open better)
-No binary read/write(actually I'm going to implement this on my own)
Server side:
None!
Alright, before I get into this, let me warn you this is some pretty complex stuff.
Anyway, I'm making a program that will allow you to use wired modems hooked up to drives as storage space for computers that are hooked up. This works by splitting programs across disks(you will see how this is done when I show the code)then having a seperate network that has computers hooked up that communicate with the server to see files, write files, and pretty much general FS stuff. The client overwrites FS with a modified library that uses this communication but allows access to ROM.
Server code:
http://pastebin.com/nope
Client code:
http://pastebin.com/nope
Hook them up with a wired network and then edit the programs and edit the config at the top to the side of the 2 modems for the drive & computers. You might be able to figure it out just by looking at the problematic client code, but I've provided both. The error is on the first command, and it's "Attempt to index nil"
The issues are:
Client side:
fs.open doesn't work with read (lines ~40-50, at the if statement mode=="r")
-Shell APIs get sqrewed up
-fs opening doesn't work(I need help figuring out how to handle fs.open better)
-No binary read/write(actually I'm going to implement this on my own)
Server side:
None!
Edited on 13 December 2014 - 07:52 PM