[0.17.54-2] Curved rail hit-box leads to odd behaviour
[0.17.54-2] Curved rail hit-box leads to odd behaviour
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.
Obviously this is a minor issue but it is odd behaviour from a logical PoV ..... an inserter that is farther way should be placeable.
- Attachments
-
- cr.png (1.22 MiB) Viewed 3633 times
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
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
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.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
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
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
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.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
Is it the right collision area for all 1x1 entities?
- Attachments
-
- 2019-07-06T19_46_19-Window_01.png (835.18 KiB) Viewed 3569 times
Re: [0.18.10] Curved rail hit-box leads to odd behaviour
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: 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: 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.
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: 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: 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.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
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.
- Attachments
-
- rail-on-curve.PNG (212.2 KiB) Viewed 3125 times
If you want to get ahold of me I'm almost always on Discord.
Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour
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