I have what is effectively an inline storage tank (it has some script behaviour but that's not important). It's 2x1 just like the Pump. I'd like for the player to be able to fast-replace pipes with this entity just like you already can with pumps, however just setting its "fast_replaceable_group" doesn't seem to be cutting it. I can fast-replace a pump with my inline tank just fine since they're both 2x1, but attempting to place it over pipes just gives "Pipe is in the way".
Is there something else needed to add the "pump can replace two pipes" behaviour to my entity?
Fast-replace pipe with modded storage tank
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Fast-replace pipe with modded storage tank
No. Fast replace only works for same-size same-group entities.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: Fast-replace pipe with modded storage tank
Except that you can place a pump over two pipes and fast-replace them that way. I was hoping to get that behaviour with my entity.
Re: Fast-replace pipe with modded storage tank
Same for splitters and belts?eradicator wrote: ↑Thu Oct 29, 2020 3:35 pmNo. Fast replace only works for same-size same-group entities.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Fast-replace pipe with modded storage tank
Uhm...no? I just tested in 1.0.0 and that doesn't work for me. And the 2-belts to splitter thing is most likely hardcoded to entity type.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.