Control your rods


Reactor overhaul. Adds fuel and control rods, allowing you to build highly energy dense reactors.

Content
2 months ago
1.1 - 2.0
960
Circuit network Power

b Bug [fixed 0.2.10] count must be positive

3 months ago

I have a save file that reliably reproduces the following error:
Error while running event control-your-rods::on_tick (ID 0)
count must be positive
stack traceback:
[C]: in function 'insert'
control-your-rods/scripts/rods.lua:788: in function 'update_fuel_rod'
control-your-rods/control.lua:90: in function <control-your-rods/control.lua:56>

3 months ago

I am able to avoid the crash by adding an extra condition to the if. However, I think this is not the right fix - I do not get the depleted uranium fuel cell which is obviously not intended.

        if output and output.count > 0 or fuel.buffered_out > 0 then
            print("cyr o.c="..output.count)
            print("cyr f.bo="..fuel.buffered_out)
            local insertable = math.min(output.count, fuel.buffered_out)
            print("cyr ins="..insertable)
            fuel.buffered_out = fuel.buffered_out - insertable
            print("cyr wp="..waste_product)
            print("cyr f.bo="..fuel.buffered_out)
            output.inventory.insert{name=waste_product, count=insertable}
3 months ago

I got the error too.

2 months ago

This should be fixed in 0.2.10

New response