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

Updating information

Started by tysciman7, 06 February 2014 - 09:40 PM
tysciman7 #1
Posted 06 February 2014 - 10:40 PM
Hello, I am a decent programmer in lua. But I still have trouble. I am currently setting up a nuclear reactor console monitor. With the help of open peripherals. My problem is that I do not know how to update the heat and eu/t for it to constantly display the information in real time. My code for the receiver is where I am going to display the information. He is the reactor console(the sender connected to the reactor) http://pastebin.com/aaUDricv
And here is the receiver in the control room. http://pastebin.com/4sPcFVtD
Himself12794 #2
Posted 06 February 2014 - 10:54 PM
To constantly update it, I recommend placing the line
eu = p.getEUOutput()
in your while loop, right at the beginning. If you don't do that, then eu will always be what it was when you started the program. Adding to the while loop allows it to constantly update.
tysciman7 #3
Posted 06 February 2014 - 10:55 PM
Okay, but thats not the true problem, thank you for that. But I asking how to fix the update