Realistic Reactors


Add realistic nuclear reactors including a breeder reactor type and cooling tower. The reactors must be controlled through integrated circuit interface signals. The thermal energy output is dynamic and depends on reactor core temperature. The reactors require sophisticated designs of their cooling system and heat-pipe network. If the operational conditions aren't met then a reactor core meltdown with dangerous consequences occurs

Content
6 months ago
0.16 - 1.1
23.5K
Power

g Crash on removing solars or heat pipes from "Thermal Solar Power (Lite)"

10 months ago

Hi!

Using the Thermal Solar Power (Lite) mod, I get the following crash upon trying to remove one of its heat pipes or solars:

Error while running event RealisticReactors::on_pre_player_mined_item (ID 11)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__RealisticReactors/scripts/heat/math.lua:47: in function 'calculate_score'
RealisticReactors/scripts/heat/math.lua:59: in function <RealisticReactors/scripts/heat/math.lua:52>
(...tail calls...)
RealisticReactors/scripts/heat/math.lua:271: in function 'callback'
RealisticReactors/scripts/heat/math.lua:211: in function 'neighbour_cells'
RealisticReactors/scripts/heat/math.lua:265: in function 'inside_linked_entities'
RealisticReactors/scripts/heat/math.lua:315: in function 'get_linked_entities'
RealisticReactors/scripts/heat/network.lua:307: in function 'split_heat_network_cell'
RealisticReactors/scripts/heat/network.lua:526: in function 'remove_entity_from_network_cell'
RealisticReactors/scripts/heat/network.lua:607: in function 'remove_reactor'
RealisticReactors/scripts/events/destruct.lua:116: in function 'entity'
RealisticReactors/control.lua:61: in function <RealisticReactors/control.lua:59>

It doesn't happen consistently in all situations, but some configurations of solars and heat pipes can crash the game always. I have a cluster of solars and pipes which are literally impossible to remove.

I hope this is of use to you!

New response