[2.0.19] Crash flipping modded pump: flipResult.direction != Direction::None
Posted: Sun Nov 17, 2024 8:27 pm
What happened
If you flip some of the modded pumps (the valves from the Valves mod mod) the game crashes with
Reproduction
I believe it's caused by the linked + normal connection. The two pumps that crash's pipe connections look like this, or the inverse of this where the normal connection is the input, and the linked the output.
It's probably due to this combination. The one-way valve has two linked connections and doesn't cause a crash, but it doesn't mirror correctly, instead it sort-off rotates.
Ref.: 125146
If you flip some of the modded pumps (the valves from the Valves mod mod) the game crashes with
Code: Select all
76.354 Error Entity.cpp:2337: flipResult.direction != Direction::None was not true
- Install mod
- Go into /editor (need editor to flip pumps which are set as operable=false)
- Place a Overflow or Top-Up valve (any direction)
- Flip (any direction, H or V)
- Crash!
I believe it's caused by the linked + normal connection. The two pumps that crash's pipe connections look like this, or the inverse of this where the normal connection is the input, and the linked the output.
Code: Select all
{ direction = defines.direction.south, position = {0, 0}, flow_direction = "output" },
{ connection_type = "linked", flow_direction = "input", linked_connection_id=31113 - 1 }
Ref.: 125146