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

Networkless file sharing

Started by thecrimulo, 16 July 2016 - 08:36 PM
thecrimulo #1
Posted 16 July 2016 - 10:36 PM
So, I have a computer and on its side, another one, lets say I don't want to use pastebin or any other service to copy the file. Neither Rednet, modems or cables. How would I share the file? Is it possible?
H4X0RZ #2
Posted 16 July 2016 - 10:39 PM
Maybe they would be able to transmit the data using redstone (one is setting the output on the side, the other one listens) but that would be 1) slow af and 2) hard(er) to code because you have to translate everything into binary, transmit is, and then convert it back.
Lupus590 #3
Posted 16 July 2016 - 10:47 PM
If you have access to the server files then you could use system- and hard-links to link a file together in each of the computers. You will have to do this for every computer though.
TYKUHN2 #4
Posted 16 July 2016 - 11:38 PM
Project Red cables can transmit 16-Bits per cable. With 6 sides you can crate a 96-Bit transmission line. As for getting it to Binary,

function charToBin(char)
	num = string.byte(char)
	bin = ""
	repeat
		 temp = num%2
		 bin = bin .. string.format("%d", temp) --Ensures no decimal
		 num = (num - temp) / 2
	until num == 0
	return bin
end
function binToChar(bin)
	return string.char(tonumber(bin, 2))
end

Just wrap that into some reading and transmitting code. Transmission code depends on bit-width of the cable(s).

If this isn't close to what you were asking please elaborate.
Edited on 16 July 2016 - 09:40 PM
thecrimulo #5
Posted 17 July 2016 - 01:33 AM
Well, in the post I say that I don't want to use cables. I was finding for a way side-to-side, like if i was using a diskdrive
KingofGamesYami #6
Posted 17 July 2016 - 02:08 AM
Well if you have a disk & drive you can just copy the file onto and off of it.
InDieTasten #7
Posted 17 July 2016 - 07:21 AM
So no. The redstone approach might work. but there is no direct way to communicate to a computer just by having it as touching block. You can turn it on and off, read the id and such, but there is no way of creating actual communication unless you want to send the shutdowns and turn on's at specific world times, but that would be ridiculous.
TheRockettek #8
Posted 18 July 2016 - 07:12 AM
In the olden says everyone used redstone to transfer data. It was slow. So that why rednet was created. :D/>