Fake New Rails

by sparr

Adds simple non-rail entities shaped like the new Space Age / Factorio 2.0 rails.

a month ago
1.1
595

g Support spacing?

1 year, 5 days ago

Any way you can make the support spacing get checked?

1 year, 5 days ago

That's possible but technically challenging.

1 year, 5 days ago

My hope is that by getting the ball rolling on this mod, some interested folks might step up to improve some functionality.

11 months ago
(updated 11 months ago)

For reference, here's the latest from a dev on spacing: https://forums.factorio.com/viewtopic.php?p=592880#p592880

  • elevated-straight-rail has a length of 2 (equals to 2.00 required support distance)
  • elevated-half-diagonal-rail has a length of 4.472135955 (equals to 4.48 required support distance)
  • elevated-curved-a-rail has a length of 5.132284556 (equals to 5.14 required support distance)
  • elevated-curved-b-rail has a length of 5.077891568 (equals to 5.08 required support distance)
  • rail-ramp provides support distance of 9. Since rail-ramp is a rail itself, this value is measured from the upper rail connection point. Visually you may see the rail support baked into rail ramp graphics, its center is 2 tiles away from the elevated connection point, so that means when counting support distance from visible baked in support center, it would be 11 tiles support distance (2 is immediately consumed by the rail ramp, only 9 distance is remaining)
  • rail-support provides support distance of 11 measuring from the rail support center.

Now that all the numbers are given, the mechanic as i implemented it for elevated rails is following:
A rail is considered supported when traveling from either of its ends (without reversing at junction points) a support is found within a distance so that "my required support distance"(aka "my length") + "support distance of rails between the support position" is lower that the support provided. That can be more easily read as: "there exists a support for which my entire length is within support distance".

New response