[1.1.104] Diagonal train tracks are too short

Bugs that are actually features.
Post Reply
half a cat
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

[1.1.104] Diagonal train tracks are too short

Post by half a cat »

Diagonal rails are shorter than rectilinear ones, resulting in diagonal rail lines costing more per kilometer. This goes against the intuition that rails are the same regardless of their orientation. The horizontal/vertical rails need to be about 30% shorter, or diagonals need to be about 40% longer, for parity.

Here are 100 diagonal rails and 100 horizontal rails for comparison. You can see that the diagonal tracks are shorter than the horizontal tracks (it helps to use a ruler). With this behavior, you need about 140 diagonal rails to equal the length of 100 horizontal rails.
screenshot-rail-measure2.png
screenshot-rail-measure2.png (1.69 MiB) Viewed 254 times
There was a previous discussion of train cars changing size depending on their orientation (viewtopic.php?f=5&t=17795), however, I haven't seen any report of rails changing size.
Attachments
factorio-current.log
(5.06 KiB) Downloaded 8 times

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2252
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.104] Diagonal train tracks are too short

Post by boskid »

Not a bug.

Since diagonal rails have length of 1.41 per entity and they cost 1 rail while horizontal/vertical straight rails have lenght of 2 per entity and they cost 1 rail and since we have no fractional entity costs or fractional item counts in inventory, it is just not a bug. Going by the proposed logic, building curved rails is also not optimal since they have length of 7.84 (viewtopic.php?p=594090#p594090) while costing 4 items. There will be a lot more cases in 2.0 where cost to build is not proportional to the length provided.

Post Reply

Return to “Not a bug”