Allow changing the pump<->train connection distance

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
rude_grass
Inserter
Inserter
Posts: 20
Joined: Tue May 01, 2018 3:29 pm
Contact:

Allow changing the pump<->train connection distance

Post by rude_grass »

Before the 0.17.55 update, it was possible to change the width of rail bounding boxes, and thereby allow pumps to connect to fluid wagons from a larger distance. Since this mechanic has been removed, it´d be nice to have the ability to set the connection distance of pumps via its prototype definition.

Usecase: Allow pumps to conect to tank ships from the cargo ships mod from a distance that doesnt cause them to graphically overlap with the ship.

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Allow changing the pump<->train connection distance

Post by Bilka »

Just make the pump bigger?

Image

Image
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

rude_grass
Inserter
Inserter
Posts: 20
Joined: Tue May 01, 2018 3:29 pm
Contact:

Re: Allow changing the pump<->train connection distance

Post by rude_grass »

Bilka wrote:
Mon Jul 15, 2019 10:50 am
Just make the pump bigger?
I was thinking about that, but the thing is, that i only want one side (the one pointing towards the train) to be larger, but depending on the pumps orientation this can be either the input or the output.

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Allow changing the pump<->train connection distance

Post by Bilka »

How do you imagine this would be defined on the pump?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

rude_grass
Inserter
Inserter
Posts: 20
Joined: Tue May 01, 2018 3:29 pm
Contact:

Re: Allow changing the pump<->train connection distance

Post by rude_grass »

Bilka wrote:
Mon Jul 15, 2019 11:05 am
How do you imagine this would be defined on the pump?
Well i have no idea how the pump-train connections work internally, so i dont know if that feasible, but having an attribute like "train_connection_offset" in the ptotoype definiton, which is "0" for vanilla pumps and "1" or "2" for my modded pumps, and results in the decribed bahaviour would be what i am thinking of.

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

Re: Allow changing the pump<->train connection distance

Post by darkfrei »

Bilka wrote:
Mon Jul 15, 2019 11:05 am
How do you imagine this would be defined on the pump?
Shift the side of the connection hose only (same way as it's done by the offshore pump)

Code: Select all

collision_box = {{-0.29, -1.79}, {0.29, 0.79}}

It can be the entity that is just twice bigger, I saw 2x2 pipes, why not pumps?

Post Reply

Return to “Modding interface requests”