Trouble in locating rods on Opencomputer
estriene opened this issue Β· 17 comments
on Opencomputer, all the rods are in a same component name, only can use uid to discriminate them.
and that's maybe better to have a way to locates rods, or it'll be a big problem to form a completely reactor on the computer
I've made a wonky prototype of reading fuel from rods, just I haven't gotten around to locating them
you can shift-control-right click on a rod with an opencomputers analyzer to copy it's id, then use component.proxy
in case you're using an adapter, simply Don't. use a cable instead
so it's impossible to write a program can use for every reactor without troublesome setups in these versions?
sure we can register(? rods by analyzer, but isn't it very pesky to setup a big reactor?
Yeah, you really can't tell where each rod is located without an analyzer.
However, you can use component.list to get a list of, say, fuel rods, if you don't care for where the rod is.
that's exactly the thing is.
most of reactors use not only one type of the fuel (i think(?.
so it's important to know which rod keep what type of the fuel or the locate of the rod
but it could be done by a crane kepping a fuel to test where the rod is and mate the id one by one.
(terrible.
You can use a simple line of code to loop through each rod and add it to an array of rods. Example:
for x in component.list("put rod name here") do table.add(rod_list, x) end
Currently looking into adding coordinate reading into the RBMK OC compatibility, however for now, the rods don't particularly have to be sorted, unless you're trying to keep fuel, which I'm also planning to add.
You can also make an initiation system of sorts to find which fuels correspond to which rods by removing fuels from rods, then checking if the fuel values equal "N/A", then storing those fuel rods in an array with a specified index. Example:
for x in component.list("rbmk_fuel_rod") do while component.invoke(x, "getDepletion") != "N/A" do end table.add(rod_table_sorted, x) end
so sorting rods can't be full-automatically now, it's simple to deal with for a single reactor. but I'm looking for a way to control a reactor full-automatically, and can be used for every reactor. this meas the code can just be installed to run without pesky setups
It might be possible to do so after I fix my new OC compat code, as it'll be possible to read fuel types and coordinates of RBMK columns.
On my fork of NTM there's a branch called 'BallOfEnergy1-OC-Test-1', which should have the ability to grab the fuel type. However, I need somebody to test it, so if anyone can grab, build, and test it, that'd be great.
i didnt really think about locating rods that much for some reason, i'll code that soon
I'm slowly getting around to coding it in, however it's taking a while as I'm currently sick. (It will come eventually)