Page 1 of 1
[0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 10:40 am
by SkiCarver
The update to the hitbox (show-collision-rectangles displayed in image) on the curved rail causes the situation where the highlighted inserter cannot be place even though it is farther away from the rail than the one already placed. (before you ask, yes, it broke a blueprint, albeit in a minor way)
Obviously this is a minor issue but it is odd behaviour from a logical PoV ..... an inserter that is farther way should be placeable.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 12:18 pm
by tehfreek
I hit this the other day when I built a rail line too close to water. "Cannot build on shallow water"... I'm nowhere near the water with that piece :/ I finally landfilled a bit of water just a bit further away and got it to work.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 12:30 pm
by Rseding91
Thanks for the report however these things aren't worth looking into. It will never be perfect because the game only supports rectangular bounding boxes.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 12:43 pm
by SkiCarver
Rseding91 wrote: ↑Sat Jul 06, 2019 12:30 pm
Thanks for the report however these things aren't worth looking into. It will never be perfect because the game only supports rectangular bounding boxes.
No Problem, I understand.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 2:42 pm
by darkfrei
Rseding91 wrote: ↑Sat Jul 06, 2019 12:30 pm
Thanks for the report however these things aren't worth looking into. It will never be perfect because the game only supports rectangular bounding boxes.
Why not a list of rectangles, now we have two, why not 5-6 bounding boxes?
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 2:48 pm
by kovarex
But we could probably extend the first bounding box a bit, so both of them are not buildable, that would look more consistent.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 2:52 pm
by SkiCarver
kovarex wrote: ↑Sat Jul 06, 2019 2:48 pm
But we could probably extend the first bounding box a bit, so both of them are not buildable, that would look more consistent.
I would prefer that, even though I would need to update my blueprints again!!
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 2:53 pm
by Rseding91
kovarex wrote: ↑Sat Jul 06, 2019 2:48 pm
But we could probably extend the first bounding box a bit, so both of them are not buildable, that would look more consistent.
We both know how this ends
If you want to do another 3 minor versions of "fixed that we broke X with the last update" then have at it.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Sat Jul 06, 2019 8:50 pm
by darkfrei
Is it the right collision area for all 1x1 entities?
Re: [0.18.10] Curved rail hit-box leads to odd behaviour
Posted: Wed Mar 04, 2020 11:21 pm
by KrazyTygr
I guess that this is the cause of a couple of problems that I am having, and would like you to revisit this problem.
I occasionally (quite often) have a stub of straight rail at the start of a curved rail. It is usually almost impossible to mine the straight stub without mining the curved rail first. This shows how far the hitbox is away from the curved rail:
- 2020-03-04_225016.png (454.5 KiB) Viewed 3235 times
This shows the cursor over the only part of the straight rail not covered by the curved rail - but again the curved rail hitbox takes precedence:
- 2020-03-04_225036.png (444.12 KiB) Viewed 3235 times
On this occasion I could not find any part of the straight rail's hitbox, so was forced to mine the curved rail first, then replace it. This happens often and is quite tedious.
I also have great trouble opening a train's GUI when it is stopped on a curved rail. It takes a lot of fiddling to find the train hitbox rather than the curved rail - is it possible to give the train hitbox priority over the rail hitbox (curved or straight)? When a train is present there is no point in selecting the rail hitbox as there is nothing you can do with the rail anyway - selecting the train should take precedence over selecting the rail.
- 2020-03-04_225215.png (651.81 KiB) Viewed 3235 times
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Wed Mar 04, 2020 11:44 pm
by Rseding91
You can easily select that rail piece and the train in those cases. When I reproduce those setups it all works correctly and everything selects easily as I want it to. I don't know if you're running a modded game but those aren't real issues.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Posted: Wed Mar 04, 2020 11:59 pm
by KrazyTygr
Rseding91 wrote: ↑Wed Mar 04, 2020 11:44 pm
You can easily select that rail piece and the train in those cases. When I reproduce those setups it all works correctly and everything selects easily as I want it to. I don't know if you're running a modded game but those aren't real issues.
Yes, I have a few mods installed - I'll work through them and see if I can find which one is causing the problem. Thanks for the quick reply