[2.0.19] Crash flipping modded pump: flipResult.direction != Direction::None

Post your bugs and problems so we can fix them.
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 423
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

[2.0.19] Crash flipping modded pump: flipResult.direction != Direction::None

Post by Stringweasel »

What happened
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
Reproduction
  • 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!
The modded pumps
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 }
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
Attachments
factorio-current.log
(14.49 KiB) Downloaded 18 times
valves_1.1.3.zip
(342.26 KiB) Downloaded 14 times
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 423
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: [2.0.19] Crash flipping modded pump: flipResult.direction != Direction::None

Post by Stringweasel »

For easy reproduction try to flip a modified pump with the following pipe connections:

Code: Select all

  pipe_connections =
  {
    { connection_type = "linked", flow_direction = "output", linked_connection_id=31113 },
    { direction = defines.direction.south, position = {0, 0.5}, flow_direction = "input" }
  }
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration
StormTAG
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Wed Feb 10, 2016 12:40 pm
Contact:

Re: [2.0.19] Crash flipping modded pump: flipResult.direction != Direction::None

Post by StormTAG »

Also ran into this issue. Was not actually connected to any pipes.

Attached a minimum-steps save file.

1. Load save file
2. Copy valve
3. Flip
Attachments
Minimum Valve Failure Save.zip
(1.31 MiB) Downloaded 10 times
Krydax
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Jul 09, 2021 6:18 pm
Contact:

Re: [2.0.19] Crash flipping modded pump: flipResult.direction != Direction::None

Post by Krydax »

I am running into this HARD CRASH as well. All you need to do is copy a valve with ctrl+c and flip with H or V and boom, crash to desktop.

It's extra frustrating because you can't copy blueprints without living in fear you might have accidentally grabbed a valve and will crash your game. Hoping the devs can fix this one soon!

(this is also my second time writing this comment. My previous one seems to have been deleted by some unknown factor with no notification/explanation and I'm very confused by that)
Post Reply

Return to “Bug Reports”