Heat-resistant Pipes

by NOiZE

Heat-resistant Pipes required for molten fluids (lava, molten metals). Regular pipes/tanks/pumps are instantly destroyed by molten fluids. Heat-resistant Pipes have smaller network size (default: 32 segments). Settings for max network size (1-320) and player collision. Licensed under MIT.

Content
2 days ago
2.0
1.97K
Logistics

g [fixed]Lava + pump = crash

15 days ago

3808.135 Error MainLoop.cpp:1468: Exception at tick 51369420: The mod Heat-resistant Pipes (2.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event HotPipesFork::on_nth_tick(30)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__HotPipesFork
/scripts/scanner.lua:453: in function 'check_entity_compatibility'
HotPipesFork/scripts/scanner.lua:485: in function <HotPipesFork/scripts/scanner.lua:461>

Was testing this for compatibility with a mod set I'm putting together and had this when I went to place a normal pump against a full underground tank full of lava. I was making sure it blew up as intended and it crashed.

can I provide anything else that would help?

15 days ago

can you narrow down to as little other mods as possible, and then provide steps so i can reproduce?

i think you whitelisted the underground tank? (which is a mod?)

15 days ago
(updated 15 days ago)

Yes I believe the relevant mods are

Assembler pipe throughput
Hardened pipes
Elevated pipes
Underground storage tank

Mods specifically touching the pump:
Cargo ships
Squeak Through 2
Combat mechanics overhaul
PlanetsLib

White list:
underground-storage-tank
PCHP-hardened-pipe
PCHP-hardened-pipe-to-ground**** edited

Place down normal water pump >hardened pipe > underground tank > foundry (lava>molten iron> underground tank
This should all work normally

Placing the pump on a third connection to the lava tank, the pump actually explodes first and then the game immediately crashes

Here is a screenshot if it helps (right before placing pump/right after)

https://drive.google.com/file/d/1pw7WnSVc_eZ3TBuN6OkrJ29wrWQTfHGa/view?usp=drivesdk
https://drive.google.com/file/d/1GGKr1bwxyjYqzxwQU3RwavO9TlVMQxn5/view?usp=drivesdk

14 days ago

This is an easy fix, just swap lines 452 and 453 in scanner.lua. The crash is happening because of trying to read properties of the entity after killing it (which invalidates the entity).

14 days ago

Thanks again for the report, this should now be fixed.

14 days ago

Thanks!

New response