Page 1 of 1

[0.14.5] [Rseding91] Rail Floor Placement Bug

Posted: Mon Sep 12, 2016 9:06 am
by CentricArts
Theses two rails are in the same vertical axis, but the top rail pointing down has a different hotbox compared to the one on the bottom rail pointing up.
this bug doesn't work in any other rail direction*

Re: [0.14.5] Rail Floor Placement Bug

Posted: Mon Sep 12, 2016 9:14 am
by Loewchen
Please upload the save.

Re: [0.14.5] Rail Floor Placement Bug

Posted: Mon Sep 12, 2016 11:57 am
by CentricArts
Loewchen wrote:Please upload the save.
The lamps represent where I can place around the rails.
The 'hitboxes' are broken.

http://www.mediafire.com/download/l6i31 ... w/0.14.zip

Re: [0.14.5] Rail Floor Placement Bug

Posted: Mon Sep 12, 2016 11:58 am
by kovarex
CentricArts wrote:
Loewchen wrote:Please upload the save.
The lamps represent where I can place around the rails.
The 'hitboxes' are broken.

http://www.mediafire.com/download/l6i31 ... w/0.14.zip
This is what the building collision box was for, which Rseding91 removed saying we don't need it anymore. I'm curious how will he solve this.

Re: [0.14.5] Rail Floor Placement Bug

Posted: Mon Sep 12, 2016 3:51 pm
by Rseding91
kovarex wrote:
CentricArts wrote:
Loewchen wrote:Please upload the save.
The lamps represent where I can place around the rails.
The 'hitboxes' are broken.

http://www.mediafire.com/download/l6i31 ... w/0.14.zip
This is what the building collision box was for, which Rseding91 removed saying we don't need it anymore. I'm curious how will he solve this.
The top issue is easy, just reducing the already-broken bounding box of the curved rail by a few pixels would "fix" it. The bottom thing isn't an issue. The train won't hit those lamps and if you don't want the weird visual just don't build them there.

There's 1 root issue at play: We're attempting to simulate a curved bounding box with 2 imperfect rotated bounding boxes which themselves are then rotated based off the direction of the curved rail. No system we can put in place will solve it perfectly short of a pixel perfect bounding box (which Factorio doesn't support at the core). All solutions have some fault - minor visual oddities like the lamps slightly overlapping the rail don't break gameplay compared to the alternatives.

Re: [0.14.5] [Rseding91] Rail Floor Placement Bug

Posted: Mon Sep 12, 2016 4:38 pm
by CentricArts
I don't really want to make you guys go out of your way to do something extreme like perfect bounding boxes, there are tons of other important shit you can be doing within that time. It's just the top image which is the main problem, like you said. Just because consistency and symmetricalness.