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

SAVE | CLOUD STORAGE SOLUTION

Started by Tytan, 04 December 2016 - 07:21 AM
Tytan #1
Posted 04 December 2016 - 08:21 AM
SAVE | A CLOUD STORAGE SOLUTION (kinda)

This is my first actual program, so critisize as much as you want!
Server download: pastebin get 0Edr7vmL startup
Client download: pastebin get bpnDTZ0g save
Recommended server setup: https://postimg.org/image/b32pedrgp/
Recommended client setup: https://postimg.org/image/9wit7cxor/
The client also works with pocket computers ^^

You can also manually send data to the server by using these commands in CraftOS:

lua
rednet.open("side") –Side being the side the modem is on
rednet.braodcast("the message to send","SAVE")

EDIT: Trying to implement a system that allows the user to give a path to a file, and upload that file.
Edited on 05 December 2016 - 12:25 AM
TheRockettek #2
Posted 04 December 2016 - 02:49 PM
both the pictures are the same.
Tytan #3
Posted 05 December 2016 - 01:07 AM
both the pictures are the same.
Oh xD That will be fixed. All you need for the client is a computer with a wifi modem at the back,
Anavrins #4
Posted 05 December 2016 - 06:01 AM

rednet.open("back")
print("START CODING NOW!")
local input = read()
rednet.broadcast(input, "SAVE")
print("Thank you for using SAVE!")
rednet.close()

I'm not sure why you didn't go with the approach of sending a file that had already been coded with "edit", instead of asking the user to obnoxiously code on one single line…
Edited on 05 December 2016 - 07:59 PM
Tytan #5
Posted 05 December 2016 - 10:14 AM

rednet.open("back")
print("START CODING NOW!")
local input = read()
rednet.broadcast(input, "SAVE")
print("Thank you for using SAVE!")
rednet.close()

I'm not sure why you didn't go with the approach of sending a file that had already been coded with "edit", instead of asking the user to obnoxious code on one single line…

Because I'm an idiot. Thanks for reminding me that it was already done in edit xD
Tytan #6
Posted 05 December 2016 - 10:42 AM
I'm going to move to ask a pro, I have no clue whats going on anymore ;_;
Josephnorthy #7
Posted 27 December 2016 - 04:05 PM
Hey I like the idea and had I idea of how you could get the path if your still working on it :-)
roger109z #8
Posted 16 January 2017 - 11:41 PM
after seeing this I'm kind of wanting to recreate an old code of mine and upload it here….