Re: Friday Facts #377 - New new rails
Posted: Wed Jun 05, 2024 7:08 pm
All rail pieces are buildable on a 2x2 grid so it is not possible to have them misaligned by 1 tile.
All rail pieces are buildable on a 2x2 grid so it is not possible to have them misaligned by 1 tile.
I'm not quite sure what's happening, but there won't be 30- and 60-degree rails, but 22.5, 45, and 67.5 degrees. You can also use https://mods.factorio.com/mod/fake-new-rails to test layouts, but it will let you build 45-degree rails on a 1x1 grid, instead of the 2x2 that it is supposed to be. I'm not sure if the elevated rails are accurate though. There is no collision simulated in the mod either way.glenjimen wrote:
There are no contradictions there. Entity being buildable on 2x2 grid means that the entity snaps to positions that repeat every 2 tiles in X and Y direction but that does not restrict if X and Y coordinates are even or odd, up to being an even+odd pair or change depending on the direction of entity being built. Straight rails are buildable on 2x2 grid with X and Y both being odd, 45deg straight is buildable on 2x2 grid with X and Y being even. "22.5" straights are buildable on 2x2 grid where both X and Y are odd. Curve-B shape is buildable on 2x2 grid where X and Y are odd. Curve-A shape is buildable on 2x2 grid where one coordinate is even and one is odd (which one is even depends on the direction of the piece being built). There is also one piece you are missing which is where exactly i decided to locate the rail piece centers.glenjimen wrote: Mon Jul 01, 2024 9:20 pmHow can the new new rails follow the rule of only being built on a 2x2 grid if the individual puzzle pieces are an odd numbers of tiles tall & wide?
With an additional straight piece before starting the curve from the bottom you can connect the paths.glenjimen wrote: Fri Jun 14, 2024 5:27 pm The track seemed to be offset by half it's width without a way to make them line up. I had to stare at it a while before I realized I was just looking at overlapping parallel tracks at 30 degrees. The same thing exists at 60 degrees, and at 45 degrees they're right up against each other, not quite overlapping.
Unless I miscounted, with 2.0 there'll be no intermediate tracks for 45° S-bends, while in 1.1 we have 3 intermediate tracks, so I'd call this an improvement. For 26.6° and 63.3° orientations, it depends on the direction you make the S-bend in. If you transition to 0° or 90° you'll have two intermediate tracks, transitioning to 45° you'll only have a one track gap. But building 26.6° or 63.3° tracks directly adjacent has very limited usefulness as trains will collide; not sure whether a one track gap will work. Thus, limiting yourself to one out of every 2 (or 3) possible tracks saves rails with no throughput lost and should remove the need for most awkward S-bends.Honestly this problem looks pretty close to the original issue you were trying to solve, just rotated 30 degrees.
Two intermediate tracks that the S-Bend cannot connect.
Is my analysis flawed? How does your development build handle this so far? I don't have a good solution in mind, hopefully someone will reply back and point out a boneheaded mistake I made. I really like your new new rail plan so far, and I hope it can be as good as possible on release!
This one is Curve-A? Just looking at your picture the position of reference point feels weird, as it's the only one with a dark lab tile to the top right. Combined with the even/odd coordinate depending on direction, wouldn't it make sense to move the reference point one tile to the right? That'd make both coordinates odd for all eight rotations, possibly simplifying the code, and match up with a "mirrored" version of Curve-B. Or is there a technical reason why that can't be done?boskid wrote: Mon Jul 01, 2024 11:48 pm Curve-A shape is buildable on 2x2 grid where one coordinate is even and one is odd (which one is even depends on the direction of the piece being built).
This image from the FFF makes it seem like it's fairly possible to have more than three directions. Did you read the article?BrainlessTeddy wrote: Sat Sep 23, 2023 10:46 amBoth of that is not really possible the way I understand it. They can have a rail segment only go in three directions maximum. Having different radius rails would increase the amount of directions to 5 or 7.coppercoil wrote: Sat Sep 23, 2023 10:08 am May I ask for very large radius rail curves, for aesthetic purposes? They look more natural.
Also, current curves might require significant train slowdown, so large radii would be useful.
And I'd like to have very small radius curves (excl. half diagonals for simplicity), and trains would pass them super slowly.
You are mistaken here. Limit of 3 directions still applies in game, however you missed one important detail: it applies when rail pieces have their ends overlapping at the same map position. Picture you linked has multiple splits but they are at different map positions so the limit applies to each split separately.sarcolopter wrote: Sun Apr 13, 2025 4:16 am This image from the FFF makes it seem like it's fairly possible to have more than three directions. Did you read the article?