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

Machine State Reporter

Started by elmarko98, 03 October 2012 - 06:50 PM
elmarko98 #1
Posted 03 October 2012 - 08:50 PM
Hi

I'm trying to make a program that tells me the state of all my machines, it all seems to work but I have to refresh the program for it to tell me the state the machines actually in.
Also the way I get the state of the machine is redstone pipes which isn't ideal. How do I get a redstone signal from the machine (macerator) I'm using, is there a better way?
Thanks and sorry if I'm being stupid or posting wrongly, this is my first post after all :(/>/>
PixelToast #2
Posted 03 October 2012 - 09:16 PM
try CCsensors, it has abunch of sensors that might be able to detect the state of it
if you want something less complex you could try using a bud switch and a flip flop gate
elmarko98 #3
Posted 03 October 2012 - 09:20 PM
I'm not sure if I was doing it right but when I used ccsensors it didn't actually give me the state it just said how much power it had etc.
I just want a big monitor with the state of all my code by the way

mon = peripheral.wrap("right")
mon.clear()
mon.setCursorPos(8,1)
mon.setTextScale(1)
mon.write("El's Co. Power Control")
if
rs.testBundledInput("back", colors.white)
then
mon.setCursorPos(8,5)
mon.setTextScale(1.5)
mon.write("Macerator = ON")
else
mon.setCursorPos(8,5)
mon.write("Macerator = OFF")
end
end

And I'm not sure what a budswitches and flip flop gates are sorry
hego555 #4
Posted 04 October 2012 - 07:27 AM
Does peripheral work with IC2 machines?

Also CCSensors is very buggy!
PixelToast #5
Posted 04 October 2012 - 06:21 PM
http://www.minecraft...update_detector
(see T-BUD at the end of the page)

http://www.minecraft...its#T_Flip-Flop