Jump to content




[v0.1 - Beta] disknet


  • You cannot reply to this topic
43 replies to this topic

#41 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 07 October 2014 - 04:31 PM

I really want to use disknet to use a private chatroom to communicate with other people in LuaLand. I really like the server, and I want to use rednet programs (tarnchat, tron, file transfer, remote desktop) from 3000 meters away. I was going to make a wired cable over to a friend's house, but then I looked at his coordinates compared to mine. I don't have that much redstone or cobble.

#42 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 15 October 2014 - 02:11 PM

I screwed up the program again, and now it doesn't even ping anymore. It used to, which proves disknet works. Please, please just make it work! I can't do it at all. If only fs.open() and all the other fs things were simpler!

#43 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 15 October 2014 - 02:17 PM

View PostLDDestroier, on 15 October 2014 - 02:11 PM, said:

I screwed up the program again, and now it doesn't even ping anymore. It used to, which proves disknet works. Please, please just make it work! I can't do it at all. If only fs.open() and all the other fs things were simpler!

fs is easy.

local handle = fs.open( "filename", "mode" ) --#mode is "r" if you want data, "w" if you want to change the data
handle.write( "string" ) --#writes a string to the file you previously opened
handle.writeLine( "string" ) --#adds a newline character to the end of write.
handle.close() --#saves the file and deletes the handle
handle.readAll() --#returns the data inside the file

I usually use the variable "file" for the handle.

#44 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 15 October 2014 - 02:21 PM

View PostLDDestroier, on 15 October 2014 - 02:11 PM, said:

I screwed up the program again, and now it doesn't even ping anymore. It used to, which proves disknet works. Please, please just make it work! I can't do it at all. If only fs.open() and all the other fs things were simpler!

UPDATE: I might have fixed it, but I can't test it now.

I used the variable 'fyle' to remove the chance of a conflict.

Hey, mind testing the disknet router again? If it doesn't work, then I don't know what to do.

EDIT: Going through my comments in 2019 is causing me to cringe something awful!
I got a working version of disknet that works really nice, though. Tested in 1.12.2 CC:Tweaked.

https://github.com/L...ter/disknet.lua

Edited by LDDestroier, 02 May 2019 - 05:36 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users