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:
error cut from log:
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:
[Genhis] [1.1.55] Crash with deconstruction order by backwards smart-dragging cross-force
Re: [1.1.55] deconstruction order by backwards smart-dragging cross-force crash
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.
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.
- Attachments
-
- pipe_crash_snip.txt
- (6.55 KiB) Downloaded 221 times
I have mods! I guess!
Link
Link
-
- Long Handed Inserter
- Posts: 77
- Joined: Tue Dec 01, 2020 6:57 pm
- Contact:
Re: [1.1.55] Crash with deconstruction order by backwards smart-dragging cross-force
edit: they are the same vids provided in the opening post; I just missed them there;
small pocs vids
- Attachments
-
- crash_super_underpipe__2022-03-06_f1.1.53.mp4
- (884.95 KiB) Downloaded 275 times
-
- crash_super_underground__2022-03-06_f1.1.53.mp4
- (1.14 MiB) Downloaded 276 times
Re: [Genhis] [1.1.55] Crash with deconstruction order by backwards smart-dragging cross-force
Thanks for the report. It's now fixed for the next release.