Page 1 of 1

[0.14.21] Chest on rails

Posted: Mon Dec 12, 2016 10:50 pm
by Jusgast
Hey there!
I found that I can place chests on rails. See attached image.
Image

Removed all mods and still. Also tried other types of chest and other items. Only chests work, but I have not tried EVERY single item.
Image

Trains do ride over it, the image of the chest dissapears under the train but comes back between wagons.

If you need more info, please respond.

Jusgast

Re: [0.14.21] Chest on rails

Posted: Tue Dec 13, 2016 12:12 am
by Rseding91
Yep, but the trains won't hit it. If you don't want them there don't build them there. They aren't colliding with the rails. If you enable the collision box debug option you can see they don't actually collide.

Re: [0.14.21] Chest on rails

Posted: Tue Dec 13, 2016 1:06 am
by Jusgast
Well, why can't other items be placed at that location then?

Re: [0.14.21] Chest on rails

Posted: Tue Dec 13, 2016 2:18 am
by Rseding91
Jusgast wrote:Well, why can't other items be placed at that location then?
They could if they had tiny collision boxes. Small electric poles are one such entity. It's a quirk of the curved rail actually being 2 rotated bounding boxes and not a real curved collision box.

It's *the* most annoying entity in the game when it comes to collisions. To change it at all breaks rail signals and rail connection logic all over the place.

Re: [0.14.21] Chest on rails

Posted: Tue Dec 13, 2016 12:33 pm
by HanziQ
This is definitely a bug, the collision detection code is flawed and only checks the left top point, which normally works, but not in this case. Moved back to bug reports.

Re: [0.14.21] Chest on rails

Posted: Tue Dec 13, 2016 2:56 pm
by Rseding91
HanziQ wrote:This is definitely a bug, the collision detection code is flawed and only checks the left top point, which normally works, but not in this case. Moved back to bug reports.
Wow, you're right :) This is something completely different than what I was thinking. The logic was just completely wrong.

Fixed for 0.15.