Page 1 of 1

[Genhis] [1.1.55] Crash with deconstruction order by backwards smart-dragging cross-force

Posted: Sat Mar 05, 2022 10:14 pm
by Honktown
smart dragging over an entity belonging to another force seems to cause an error, but only in the reverse direction. Applies to belts, and I am trying to reproduce with pipes.

Visual example:
crash_super_underground__2022-03-06_f1.1.53.mp4
(1.14 MiB) Downloaded 190 times

error cut from log:
error_snippet.txt
(6.85 KiB) Downloaded 93 times

Multiple steps required:
1. Place a single belt as player force facing north
2. /c game.player.force = "neutral"
3. clear cursor or not, doesn't matter
4. select belt, this time direction opposite to the existing belt
5. place and drag "backwards", over the first belt
6. crash as undergrounds are substituted

Expectation: ...not crash.

Pipe example, trying to reproduce:
crash_super_underpipe__2022-03-06_f1.1.53.mp4
(884.95 KiB) Downloaded 90 times

Re: [1.1.55] deconstruction order by backwards smart-dragging cross-force crash

Posted: Sat Mar 05, 2022 10:28 pm
by Honktown
Pipe crash: reproduction.
1) place pipes in a line, as one force
2) change force
3) place or ghost-place the first underground pipe on the long-end, on the nearest tile, facing away. If on the nearest tile, as the opposite underground is moving along the line, the pipes will have a reddish box instead of the normal yellowish selection box.
4) The other end of the underground must be ghost placed. Confirm placing the pipe at the shortest distance i.e. in the tile immediately after the end of the length of pipes. If done right, the game will crash.

Note: image does not show second pipe being ghost-placed. Normal entity placement succeeds at replacing the other pipes, which is an additional bug, as it is cross-force mining when the entities cannot be mined normally.
pipe_crash.jpg
pipe_crash.jpg (64.95 KiB) Viewed 2560 times

Re: [1.1.55] Crash with deconstruction order by backwards smart-dragging cross-force

Posted: Sat Mar 05, 2022 10:35 pm
by KeepResearchinSpoons
edit: they are the same vids provided in the opening post; I just missed them there;
small pocs vids

Re: [Genhis] [1.1.55] Crash with deconstruction order by backwards smart-dragging cross-force

Posted: Tue Mar 08, 2022 1:42 pm
by Genhis
Thanks for the report. It's now fixed for the next release.