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

connecting peripherals between dimensions

Started by Filyx20, 11 February 2015 - 10:27 PM
Filyx20 #1
Posted 11 February 2015 - 11:27 PM
i got a big reactor in the compact machines dimension that i would like to control via the direwolf20 reactor program i would like to have all of the components in the overworld except the reactors and turbines.

i know that interdimensions computercraft isint a ting that is posible but i know that we can transfer data via rednet using the binary 0's and 1's. is it posible to trasfer methodes via rednet and may i have help with the code i will have to change so the program work with rednet.

i ame not a expert with lua but i learn quick so if you make the code i will be able to intrgrate it into the direwolf program.

Thanks a lot for any help

P.s. if there is a easyer way to tranfer methodes i would grandly apprecheate it.
HPWebcamAble #2
Posted 12 February 2015 - 01:52 AM
i know that interdimensions computercraft isint a ting that is posible but i know that we can transfer data via rednet using the binary 0's and 1's

You can transfer strings, tables, and numbers with modems.
I don't think you can send functions, but you shouldn't have to.

Perhaps you could use wireless redstone, since that does work through different dimensions.
(Is that what you meant by binary 0's and 1's?)

I think the only way to really do it is to use several channels to relay info back and forth between computers in the overworld and the other dimension. You would need to modify Dire's program to send and receive signals that way instead of through the wired modems.
KingofGamesYami #3
Posted 12 February 2015 - 02:17 AM
I think, given time, I could create a program allowing you to use two disk drive, a disk, two turtles, and an enderchest to remotely wrap a peripheral.

I'd design something along these lines, if I were to make it

turtleA
-wraps the peripheral and disk drive
-checks every half second if disk is in enderchest.
-if disk is in enderchest, it removes it and places it in the disk drive, then reads the reqest, calls the method on the peripheral, writes the result to disk, removes it and places in enderchest.
turtleB
-compiles a table of functions that send the arguments they were called with through the enderchest/disk communication, and return the results.
-runs code normally
Bomb Bloke #4
Posted 12 February 2015 - 04:27 AM
I'd suggest looking around for (or writing!) a script that can make use of a Reactor Redstone Port.
digitalEntity #5
Posted 13 February 2015 - 10:41 PM
@KingofGamesYami I'm pretty sure Enderchests don't work like that… last time I checked, the "Contents" of an enderchest were stored in a special portion of the player's inventory data, instead of data for the specific chest, and I doubt a turtle can access that. It's the same programming that allows person A and person B to both use the same Enderchest, and person A sees a screen of diamonds, while person B sees a screen of gold.
Dog #6
Posted 13 February 2015 - 11:17 PM
I guess it depends on which ender chests we're talking about. With chickenbones ender chests KingofGamesYami's suggestion should work just fine. I've never seen an individual ender chest show two different inventories to two different people, but I've never used vanilla ender chests. Is that what you're referring to, digitalEntity?
Edited on 13 February 2015 - 10:19 PM
Quintuple Agent #7
Posted 13 February 2015 - 11:20 PM
Vanilla minecraft ender chests are special to each player, Enderstorage ender chests (the ones with the 3 color dye on top) are ones that can be shared, depends on which one you use.
digitalEntity #8
Posted 13 February 2015 - 11:38 PM
yes, I was referring to vanilla enderchests.
KingofGamesYami #9
Posted 14 February 2015 - 07:12 AM
I was referring to the triple dyed enderchests, yes. I usually assume that mod (I don't even remember what it is) is added, since there are very few modpacks without it.