Search the Community
Showing results for tags 'Code'.
Hello everyone, I'm trying to set up a Opencomputers energy monitoring system that will control the energy level of an Industrialcraft2 mfsu by turning on 1 to 6 reactors but I'm having problems at the energy reading part. Here is my code so far: https://pastebin.com/654kRYaf (ignore that getEnergyStored is commented out, I was testing something and uploaded to pastebin wrong version), but here is an abbreviated version with comments: -------------start of script---------- local fill = 0 --predefine variable fill local cap = 0 --predefine variable capacity require
How it Works: Write some code and use a spoiler and code that [spolier][code]Insert Lua code Here[/code][/spoiler] Then, the other people have to guess the output based on the code. If the code requires vars to run, put them as a comment at the end of the code as you would run the program with it (--Vars: XXX, XXX, Cake, Pie) The responding questions shall be as shown for strings or for numbers
Hello, I'm working on a program to run my Big Reactor (ala Direwolf20's recent CC program) I started yesterday knowing very little about writing code and have managed to program the basic function which I wanted to start out with. I'm hoping to add more monitoring and adjustment functions later as I learn more, but this what I need to start off. I want my reactor to shut off when the energy buffer is at 90% and restart when the buffer is down to 10%. My buffer is currently 10mil RF. It works, once. If I run when the buffer is near full, it will shut down, and if I run the prog