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

Control Panel Suggestion

Started by Zinne, 14 July 2014 - 12:56 PM
Zinne #1
Posted 14 July 2014 - 02:56 PM
Hi there.

I do not know where to write this question, so I do it in this area.



I am looking for a control panel with which I can turn on and off a IC2 nuclear reactor. I also want to see on which temperature it is, how big the output is and how long the uranium cells are working (remaining time). Something like in second 50 in this video: http://youtu.be/iEpdJ-91Hw4?t=50s

I want to associate this IC2 reactor panel with this panel then: http://skcraft.com/attachments/2013-04-28_11-41-43-png.1663
(Link: http://skcraft.com/t...rol-panel.1845/)


How can I do it?



Greets from Germany,
Zinne
Neywiny #2
Posted 14 July 2014 - 06:12 PM
yeah so essentially what you want to do is get a whole bunch of peripheral knowledge. You need to know how to get mfsu info, using "name_of_peripheral".getEUStored() and some basic table creation for easy variable storing. Once you have all the things you want, like reactor info and storage info, you need to use a simple yet useful program for the monitor

mon = peripheral.wrap("side_of_monitor")
while true do
   side,x,y = os.pullEvent("monitor_touch")
   mon.write(x..","..y)
end
that'll write to the monitor the touched coordinates, which you need to write down to map it all out.
After you have a piece of paper that has all the button locations, the hard part comes in. You will have to do a metric butt ton of mon.setCursorPos() and mon.write() and some color changes to be able to display something like that. If this helps let me know and I'll help further
theoriginalbit #3
Posted 14 July 2014 - 06:16 PM
I definitely suggest you have a read of this tutorial to get started with peripherals.