Fast-replace pipe with modded storage tank

Place to get help with not working mods / modding interface.
Post Reply
PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Fast-replace pipe with modded storage tank

Post by PFQNiet »

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?

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Fast-replace pipe with modded storage tank

Post by eradicator »

PFQNiet wrote:
Thu Oct 29, 2020 1:23 pm
Is there something else needed to add the "pump can replace two pipes" behaviour to my entity?
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.

PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Re: Fast-replace pipe with modded storage tank

Post by PFQNiet »

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.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Fast-replace pipe with modded storage tank

Post by darkfrei »

eradicator wrote:
Thu Oct 29, 2020 3:35 pm
PFQNiet wrote:
Thu Oct 29, 2020 1:23 pm
Is there something else needed to add the "pump can replace two pipes" behaviour to my entity?
No. Fast replace only works for same-size same-group entities.
Same for splitters and belts?

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Fast-replace pipe with modded storage tank

Post by eradicator »

PFQNiet wrote:
Tue Nov 03, 2020 6:49 am
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.
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.

Post Reply

Return to “Modding help”