[boskid] Deconstruction planner lets you remove rail supports without removing the supported rails

This subforum contains all the issues which we already resolved.
stokastic
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon May 13, 2019 3:41 am
Contact:

[boskid] Deconstruction planner lets you remove rail supports without removing the supported rails

Post by stokastic »

Reproduction is simple - build elevated rails, and then use a deconstruction planner with only the supports specified (or use alt-d and manually only highlight the supports individually). The entire rails will be left floating in mid air and is still fully usable. Copy pasting the floating rails produces a ghost which cannot be built until the supports are placed back.
Screenshot from 2024-12-04 17-53-07.png
Screenshot from 2024-12-04 17-53-07.png (501.96 KiB) Viewed 799 times
video of repro:
Screencast from 2024-12-04 17-50-23.webm
(5 MiB) Downloaded 15 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3458
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Deconstruction planner lets you remove rail supports without removing the supported rails

Post by boskid »

Thanks for the report. Can you reproduce this without usage of editor?
stokastic
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon May 13, 2019 3:41 am
Contact:

Re: Deconstruction planner lets you remove rail supports without removing the supported rails

Post by stokastic »

I cannot, it seems to only occur in the editor where the deletion happens instantly
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3458
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Deconstruction planner lets you remove rail supports without removing the supported rails

Post by boskid »

Given that this is only under editor i am considering this to be a minor issue since the rail supports code was made in a slightly forgiving way in terms of what editor and script can do. The only suspicious part that suggests it is not a complete "not a bug" is that the highlight of the selection tool (deconstruction planner) suggests that rails will also get removed however they are not removed which is suspicious that may need to be handled and which makes me not move this to minor issues for now.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3458
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid] Deconstruction planner lets you remove rail supports without removing the supported rails

Post by boskid »

Thanks for the report. For 2.0.25 i changed the deconstruction planner logic slightly so it correctly processes dependant entities even if entities are immediately destroyed.
Post Reply

Return to “Resolved Problems and Bugs”