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

Easy "wireless" file sharing. Literally three steps. (Creative Mode)

Started by The_King_JAZ, 17 October 2014 - 09:13 PM
The_King_JAZ #1
Posted 17 October 2014 - 11:13 PM
Hey! There is a very easy way to make two computers completely identical, including files created or deleted on either computer. Here's how:

1. Upon booting the computer, type "lua" then type the command

2. os.setComputerLabel("<computer label here>")

3. when you're done, you can close the computer. If you are in creative mode, you can simply center-click the computer to give yourself an identical computer.

But there's more! Any new programs created on this new computer will be created on the original, and any programs deleted will be deleted on the original (and vice versa). There is an upside and a downside to this. The upside: This is very useful for creating a bank. You can have files created and edited by a program to keep track of money, and the user can retrieve their money from any ATM. The downside: If the data on any duplicate computer becomes corrupt, there goes everything on every computer. Use wisely!
Dog #2
Posted 17 October 2014 - 11:22 PM
Hey The_King_JAZ,

Why go into the lua prompt to set the label? Why not just type

label set "computer name here"

Is setting the label via Lua prompt required?
Engineer #3
Posted 19 October 2014 - 12:24 AM
Hey The_King_JAZ,

Why go into the lua prompt to set the label? Why not just type

label set "computer name here"

Is setting the label via Lua prompt required?
Definitely not, label set x calls setComputerLabel