[0.17.54-2] Curved rail hit-box leads to odd behaviour

Things that we don't consider worth fixing at this moment.
SkiCarver
Fast Inserter
Fast Inserter
Posts: 166
Joined: Sat Apr 06, 2019 9:36 am
Contact:

[0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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.
Attachments
cr.png
cr.png (1.22 MiB) Viewed 3651 times
tehfreek
Filter Inserter
Filter Inserter
Posts: 391
Joined: Thu Mar 17, 2016 7:34 am
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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.
If you want to get ahold of me I'm almost always on Discord.
SkiCarver
Fast Inserter
Fast Inserter
Posts: 166
Joined: Sat Apr 06, 2019 9:36 am
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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?
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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.
SkiCarver
Fast Inserter
Fast Inserter
Posts: 166
Joined: Sat Apr 06, 2019 9:36 am
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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!! :)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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 :P

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.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post by darkfrei »

Is it the right collision area for all 1x1 entities?
Attachments
2019-07-06T19_46_19-Window_01.png
2019-07-06T19_46_19-Window_01.png (835.18 KiB) Viewed 3587 times
KrazyTygr
Inserter
Inserter
Posts: 41
Joined: Fri Apr 13, 2018 8:39 pm
Contact:

Re: [0.18.10] Curved rail hit-box leads to odd behaviour

Post 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
2020-03-04_225016.png (454.5 KiB) Viewed 3152 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
2020-03-04_225036.png (444.12 KiB) Viewed 3152 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
2020-03-04_225215.png (651.81 KiB) Viewed 3152 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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.
Attachments
rail-on-curve.PNG
rail-on-curve.PNG (212.2 KiB) Viewed 3143 times
If you want to get ahold of me I'm almost always on Discord.
KrazyTygr
Inserter
Inserter
Posts: 41
Joined: Fri Apr 13, 2018 8:39 pm
Contact:

Re: [0.17.54-2] Curved rail hit-box leads to odd behaviour

Post 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 :D
Post Reply

Return to “Won't fix.”