Posted 23 April 2014 - 08:40 PM
I want to make a program that checks 2 resonant energy cells (thermal expansion) using the integration from openperipherals and turns my reactor (big reactors) on and off.
I have successfully made a program that does all this.
This is what I currently have:
https://www.dropbox....%2021.18.39.png
http://pastebin.com/2DjWvL49
It checks if the power level in the energy cell that drains the last (left in the picture) is below 10%, and then turns on the redstone signal. If the power raises above 90% in the other cell (meaning that both are nearly full) it disables the redstone signal, and vice versa. The variable "mode" is crucial to this system, because it allows the program to toggle like a flip-flop.
Now I want to make a modification that allows the program to save it's current mode into a file and reuse it when the computer reboots.
http://pastebin.com/UucRgcYs
But for some reason something keeps setting mode to true, and I can't find the reason.
Eg:
I just manually changed the mode file to false, and I reboot the computer:
https://www.dropbox....%2021.41.42.png
There is no reason for it to become true!
Anyone knows what's going on?
I have successfully made a program that does all this.
This is what I currently have:
https://www.dropbox....%2021.18.39.png
http://pastebin.com/2DjWvL49
It checks if the power level in the energy cell that drains the last (left in the picture) is below 10%, and then turns on the redstone signal. If the power raises above 90% in the other cell (meaning that both are nearly full) it disables the redstone signal, and vice versa. The variable "mode" is crucial to this system, because it allows the program to toggle like a flip-flop.
Now I want to make a modification that allows the program to save it's current mode into a file and reuse it when the computer reboots.
http://pastebin.com/UucRgcYs
But for some reason something keeps setting mode to true, and I can't find the reason.
Eg:
I just manually changed the mode file to false, and I reboot the computer:
https://www.dropbox....%2021.41.42.png
There is no reason for it to become true!
Anyone knows what's going on?