Posted 01 September 2016 - 04:20 AM
Hey everyone, So I am working on a very ambitious warehouse for a couple servers im on, normally I would just use logistics pipes and be done with it, however I wanted to be fancy, this include using a "navigation system" where lights are built into the floor and when locating an item the computer will trigger said lights (which are set in blocks of sorts) and navigate you to your destination, the light part isnt the problem im having, right now I am trying to use a main computer to send a bool variable or even just something to trigger an event on the receiving pc to run its program and activate the lights,
the code I have for the receiving pc is
local modem = peripheral.wrap("right")
modem.open (1)
local event, message = os.pullEvent("modem_message")
if message == 1 then
redstone.setOutput("left", true)
redstone.setOutput("front", true)
sleep(.1)
redstone.setOutput("left", false)
redstone.setOutput("front", false
the code for the master pc is
local modem = peripheral.wrap("back")
modem.transmit (1, 1, 1)
So the end result as of right now, the receing pc program ends but there is not output to start my redstone monstrosity.
also as a side note, this is just a test program to make sure it works the rest of the program will be done up later, more looking at this as a test for the functions later on.
any input is greatly appreciated.
the code I have for the receiving pc is
local modem = peripheral.wrap("right")
modem.open (1)
local event, message = os.pullEvent("modem_message")
if message == 1 then
redstone.setOutput("left", true)
redstone.setOutput("front", true)
sleep(.1)
redstone.setOutput("left", false)
redstone.setOutput("front", false
the code for the master pc is
local modem = peripheral.wrap("back")
modem.transmit (1, 1, 1)
So the end result as of right now, the receing pc program ends but there is not output to start my redstone monstrosity.
also as a side note, this is just a test program to make sure it works the rest of the program will be done up later, more looking at this as a test for the functions later on.
any input is greatly appreciated.