Posted 29 October 2013 - 11:25 AM
Hey all,
I am making my first steps in automating my reactor (and possibly other installations) in tekkit
But currently I am stuck while trying to utilize bundled cable instead of standard red alloy wire
So I can make my reactor more compact.
My first code looked like this:
Now my goal is to replace the red alloy wire with insulated wires and bundled cable and only use the back side of the computer so I can hide it in a wall.
My adapted code looks like this:
Now as you can see I haven’t found a suitable replacement for shell.run(“redpulse”,….) (places where XXXXXXXXX). I did some research on google and on this forum and I came across some other topics but from what I can see they all want to send a constant signal instead of pulses like I need.
I also had a look at the wiki but it doesn’t mention anything about pulses.
Am I missing some way to do this? Or am I forced to use a bunch of sleep commands between me turning the signal on and off?
Kind regards,
Enforcer4100
I am making my first steps in automating my reactor (and possibly other installations) in tekkit
But currently I am stuck while trying to utilize bundled cable instead of standard red alloy wire
So I can make my reactor more compact.
My first code looked like this:
function flush()
shell.run("redpulse", "right", "64", "0.5")
end
function rebuild()
shell.run("redpulse", "top", "46", "0.5")
sleep(5)
shell.run("redpulse", "left", "7", "1")
sleep(5)
shell.run("redpulse", "top", "1", "5")
end
while true do
if rs.getInput("bottom") then
rs.setOutput("back", true)
flush()
rebuild()
rs.setOutput("back", false)
end
shell.run("redpulse", "left", "1", "0.5")
end
Now my goal is to replace the red alloy wire with insulated wires and bundled cable and only use the back side of the computer so I can hide it in a wall.
My adapted code looks like this:
Function flush()
XXXXXXXXX
End
Function rebuild()
XXXXXXXXX
Sleep(5)
XXXXXXXXX
Sleep(5)
XXXXXXXXX
End
While true do
If rs.testBundledInput (“back”, 1) then
Rs.setBundledOutput(“back”, colors.lightBlue, true)
Flush()
Rebuild()
rs.setBundledOutput(“back”, colors.lightBlue, false)
end
XXXXXXXXX
end
Now as you can see I haven’t found a suitable replacement for shell.run(“redpulse”,….) (places where XXXXXXXXX). I did some research on google and on this forum and I came across some other topics but from what I can see they all want to send a constant signal instead of pulses like I need.
I also had a look at the wiki but it doesn’t mention anything about pulses.
Am I missing some way to do this? Or am I forced to use a bunch of sleep commands between me turning the signal on and off?
Kind regards,
Enforcer4100