-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic Shield Stabilization Not Working #16
Comments
The reactor status has changed. The program is looking for a state of "online" when in reality it's "running" make the appropriate changes to your if statements and it should work. |
To clarify more the status of the reactor is as follows Cold (was offline) And the charged state is now defunct. |
I went in and changed the if statements, however, the program still will not function in automatic mode. Has anyone else gotten it to work and if so, what exactly did you do? I do not need this program as a crutch, but it makes it super useful in outputting large amounts of RF with a single click or two. |
I just tested this out again today and it still works for me, pasted below is the exact reator.lua I'm using: -- modifiable variables local targetStrength = 50 local activateOnCharged = 1 -- please leave things untouched from here on local version = "0.25" -- monitor -- peripherals -- reactor information -- last performed action monitor = f.periphSearch("monitor") if monitor == null then if fluxgate == null then if reactor == null then if inputfluxgate == null then monX, monY = monitor.getSize() --write settings to config file --read settings from file -- 1st time? save our settings, if not, load our settings function buttons() while true do
end function drawButtons(y) -- 2-4 = -1000, 6-9 = -10000, 10-12,8 = -100000 f.draw_text(mon, 2, y, " < ", colors.white, colors.gray) f.draw_text(mon, 17, y, ">>>", colors.white, colors.gray) function update()
end parallel.waitForAny(buttons, update) |
Some other things to point out: make sure your input flux is pointing towards the reactor energy injector, and that your input source is on the other side (the input of the arrow you can see on the side). if you don't have it setup this way, no program is going to be able to control power input because it won't have any. |
I fixed the error on like 178 and got the program itself working, the fix mentioned in the previous posted issue, but now im realizing that the only thing not working is the automatic regulation of the shield. How can I fix this?
The text was updated successfully, but these errors were encountered: