Page 1 of 1

[2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 5:45 pm
by Globetrotteur
for some reason this traffic light refuses to seperate the section when this rail is in place, no matter what i try it won't seperate when the rail is placed, even tho the rail is seemingly not preventing it

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 7:14 pm
by Loewchen
The signal is not connected to rail.

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:22 pm
by Globetrotteur
it is connected to it, has seen in picture 2 idk if he only connect if the other rail is gone or if there is someting else going on

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:24 pm
by boskid
Still not a bug. Signal has status: "Cannot divide segments". Rail in front of the signal and in the back of the signal are forced to be in the same rail block due to other rails that are overlapping. There is nothing to be done on the game side, rails are too tight and it is not possible to split rails into smaller blocks.

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:27 pm
by Globetrotteur
here is a video, might help visual it better

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:28 pm
by boskid
Not a bug. That rail you are adding collides with rail in front and in the back causing the signal to become meaningless.

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:31 pm
by Globetrotteur
i still don't see why, unless the hitbox of the rail is slightly bigger than it's sprite ? visually the traffic light split the section before the other rail connect, is there a way to turn on hitbox view via comand ?

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:33 pm
by Muche
My first guess would be the crossing rail is overlapping the vertical one. See similar occurrences in 116415 Nearby rail blocks are considered one / 123653 Rail signal placed on green rectangle not working.

For local rails debugging purposes by yourself the show-rail-segment-collision-boxes F4 debug setting could be used.
For remote debugging by forumites/devs a blueprint or savefile would be helpful.

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:34 pm
by Globetrotteur
thanks for the command

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:36 pm
by boskid
In debug settings you can enable `show-rail-segment-collision-boxes`. You will see this:
12-22-2024, 21-35-05.png
12-22-2024, 21-35-05.png (353.91 KiB) Viewed 351 times
Rail signal wants to split rail A from rail B, however rail C wants to be in the same rail block as rail A and in the same block as rail B. Because of this, rail A and B are forced to be in the same rail block and there is no way to split them anymore.

Re: [2.0.28] Rail signal fails to separate section

Posted: Sun Dec 22, 2024 8:37 pm
by Globetrotteur
ah yes, indeed the collission is barely hitting the section and so it can't split it, i'll have to rethink the entire train network on this blueprint, thanks for responding to my post tho