How to setup my Draconic Reactor Control Script for OpenComputers (WIP)
Вставка
- Опубліковано 7 лют 2025
- In this video, I will explain how to set up my draconic reactor control script, from adapter placement, to setting up the flux gate addresses, to finally running the program.
Program download link: pastebin.com/4...
script link?
I updated the description with the pastebin link to download it. Open a file on the computer in minecraft that you want to save the program to. Copy the code from the program to your clipboard (ctrl+c as usual), then on the minecraft computer, use middle click into the empty file to paste the code. Save and close, and you should be good to go (you'll still have to adjust the three variables I went over in the video, of course).
@@AwesomeAlec1 thanks ur script is very easy setup and use
Please note: I will post any updates to the program on top of the current pastebin instead of posting a new one. I have already posted a fix for the temperature not holding properly, and the code is working as intended now.
@@AwesomeAlec1 question do i copy the entire thing?
@@Lilvince3389 yes
just a tip for anyone who plans to use this. Make sure your computer & reactor is in a loaded chunk. you can do so by claiming and chunkloading a chunk on the FTB chunk mod. and also thanks for this wonderful script.
This is awesome! Thank you for sharing! I have no idea about programming in open computers, but I managed to start the program and it worked just fine. I also used another tutorial to have the program run automatically when the computer starts up.
Thanks!
@@AwesomeAlec1 So I understood it to mean that the reactor generates more and more power over time, until it runs out of fuel. So what is the maximum it can produce? I don't know if I should take the risk if I can just use something like Environmental Tech solar cells instead..
@@Amogus-hs5tz As mentioned in the video, there's a multiplier in the mod settings that affects the reactor's output. Assuming it's at its default value of 1, the reactor will generate ~400,000rf/t and can generate up to ~1,300,000+ rf/t when reaching 80-90% fuel consumption.
Note on two things:
1. Don't ever let the reactor reach 100% fuel consumption. If this happens, the reactor's heat dissipation will literally drop to zero, even if you try to shut it down.
2. This power increase is based on how much chaos is in the reactor (which is equal to how much fuel has been consumed). Once the chaos has been removed and the reactor refueled, this power generation bonus is reset back to the base generation rate of ~400,000*reactorOutputMultiplier.
@@AwesomeAlec1 I guess I will set the multiplier to 10 then because it is so expensive and so dangerous. Can your program shut the reactor down automatically when it reaches a high fuel consumption?
@@Amogus-hs5tz Yes it will! Currently, I believe it's set to stop the reactor when it reaches 85% fuel consumption. You can test this in creative mode by only giving the reactor 2 ingots of fuel and then setting the reactor to run at around 10,000 degrees (this temperature will cause the fuel to be consumed at a very high rate so you dont have to wait for hours to see the auto-shutdown).
Great program helps prevent the whole big blowup part of the reactor
i had some dumb problems, but after i fixed them this works great!
How do you install the program tho?
can you help me with opencomputers code?
for some reason when i tray to set the sheild strength to 20% the system ato jumps it back to 50
Is that occurring during charging, or while the reactor is running? If it's happening during charging, that's normal, as you have to do that before you can activate the reactor.
If it's happening while the reactor is running, that's rather strange. If that's the case, is there any more info you could provide? I'll need a little more information to go off of.
I know this is an old video, but any chance you can help me out? I get the following message when i try to run the programme:
(THIS BIT IS IN WHITE TEXT)
Temp Resist for target temp 8000 (40): 42666.67
Temp expo for convLVL -0.30: 55766.67
NegCSat for tempExpo 55766.67: 87.78
(THIS BIT IS IN RED TEXT)
/reactor:59: bad argument #2 to 'format' (number has no integer representation):
stack traceback:
[C]: in function 'string.format'
/reactor:59: in local 'update'
/reactor:122: in main chunk
(...tail calls...)
[C]: in function 'xpcall'
machine:798: in global 'xpcall'
/lib/process.lua:63: in function
/home #
Most common cause for that bug is caused by running the program before running the reactor for the first time. Give it some fuel, press charge and then press shutdown again (on the reactor). That usually fixes it
@@AwesomeAlec1 I have this same issue, I tried running the program after running and shutting down the reactor but I got the same error, should I try anything else?
@@ProGamerDoggo only other thing I could think of would be to make sure your reactor’s connected via an adapter in addition to your flux gates. It attaches to either one of the stabilizers or the injector. If that doesn’t work then maybe try saving, quitting, and restarting
Thanks for the fast reply. I tried the fueling, charging and shutting down trick but unfortunately that didn't work.
I'll try your other suggestion when I can get on it again on Sunday
Im having the exact same error, have you discovered a fix yet?
I keep getting an error about line 59 and 122 and I can't find the issue
What exactly does the error say? I need the full error message
@@AwesomeAlec1 here is exactly what it says: Bad argument #2 to 'format' (not a number in proper range): stack traceback: [C}: in function 'format' /home/reactorTest:59: in function 'update' /home/reactorTest:122: in main chunk: (tail calls) [C}: in function 'xpcall' machine:798: in function 'xpcall' /lib/process.lua:63: in funtion
@@brianakins5016 This seems to be an issue with the target saturation. Have you run your reactor before? Try putting it into a charging state (but not activating it) and then run the program again.
@@AwesomeAlec1 that worked, thanks for the help!
I'm getting a similar error on mine as well, for me it says: bad argument #2 to 'format' (number has no integer representation) [C]: in function 'string.format' and the rest is the same. I tried restarting the reactor a few times and activating while it was charging but it still gave the same error. I also tried using it on an already running reactor in a creative world and it worked perfectly fine. Something to note is that the world I'm getting the errors is on is from a LAN network and I don't have the world files on my pc
If someone can help i whenever i try to start the program it says "syntax error near 'component' " if anyone knows how to fix this please tell me.
Gonna need a bit more info. What’s the full error say and what were you trying to do?
oh sorry I found my mistake I'm playing on 1.7.10 didn't notice it was for 1.12.
will the script work with computer craft?
Unfortunately not. Opencomputers reads code differently than computercraft does, but I may consider making a dedicated computercraft version in the future
@@AwesomeAlec1 there is nothing that explains computercraft settups, so i figured i culd ask :P
@@yogen313 have you tried this? ua-cam.com/video/8rBhQP1xqEU/v-deo.html
@@AwesomeAlec1 yeah, i tested it in a creative world, it blew up, and it lost controll almost instantly i cut off the starting power suply
@@yogen313 yea, cuz you're not supposed to cut off the power supply.. XD You need to keep giving it power for the shield
is this for 1.12.2?
Indeed it is!
@@AwesomeAlec1 does it also work on 1.7.10 / will you make an 1.7. 10 version ??????
@@KeinElektriker no plans for 1.7.10 version, unfortunately, and I don’t know if this version works for 1.7.10
Do you know how to resolve this error? prnt.sc/10rmsxw
Have you run the reactor at least once before activating the script? if not, then the reactor will have a bunch of null values for saturation and field strength and whatnot.
Try this procedure:
1. Start charging the reactor. This is safe as the reactor cannot drain its field strength in this state.
2. Run the script. Charging the reactor causes the reactor's max saturation and max field strength to update to values appropriate to its size, and should therefore fix you error, as I believe this is the cause.
3. If/when the script shows that it's flooding the reactor and doesn't give an error, check that the input flux gate is working, and then activate the reactor fully. The script should take over maintaining the reactor.