Page 1 of 1
Allow changing the pump<->train connection distance
Posted: Mon Jul 15, 2019 10:34 am
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.
Re: Allow changing the pump<->train connection distance
Posted: Mon Jul 15, 2019 10:50 am
by Bilka
Just make the pump bigger?
Re: Allow changing the pump<->train connection distance
Posted: Mon Jul 15, 2019 11:00 am
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.
Re: Allow changing the pump<->train connection distance
Posted: Mon Jul 15, 2019 11:05 am
by Bilka
How do you imagine this would be defined on the pump?
Re: Allow changing the pump<->train connection distance
Posted: Mon Jul 15, 2019 11:18 am
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.
Re: Allow changing the pump<->train connection distance
Posted: Wed Jul 17, 2019 7:15 am
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?