RailBow Refracted


RailBow Refracted provides a configurable selection tool for laying tiles and landfill around rails while removing natural obstacles. Tag words:rail-building railroad-tiles selection-tool multi-mode-placement shift-click-landfill foundation-ice-platform obstacle-removal auto-tree-rock-removal cliff-removal rail-signal-oriented-direction

Utilities
11 days ago
2.0 - 2.1
172
Trains Environment Blueprints

i Support elevated rails, ramps and rail supports in tile placement

2 days ago

Hello,

First of all, thank you for RailBow Refracted — it is already very convenient for decorating rail lines.

I would like to respectfully ask whether it might be possible to add support for elevated rails, ramps and rail supports, and also to add a configurable underlay/foundation option for rail signals.

From my current experience, the mod appears to place tiles as if all rails were on the ground. This works very well for normal rail lines, but it can produce unexpected results around elevated rail sections, especially near ramps and supports. In addition, Signal and Chain Signal entities do not currently seem to have a separate configurable backing/underlay.

If feasible, it would be great if the tool could:

  • detect elevated rails, ramps and rail supports;
  • respect their elevation/footprint when placing decorative tiles;
  • allow different tile-placement rules for ground rails, elevated rails, ramps and supports;
  • add a separate setting to choose what should be placed under Signal and Chain Signal entities, for example: nothing, landfill, foundation, ice platform, concrete, or another suitable tile;
  • make these signal-underlay settings configurable per profile/preset, similarly to the existing shift-left-click landfill/foundation/ice platform behavior;
  • ideally handle signals placed on elevated rails, ramps or supports consistently with the rest of the elevated rail layout.

I understand that this may require additional logic and might not be trivial, so I am only suggesting it as a possible future improvement.

Thank you again for the mod and for considering this request.

a day ago
(updated a day ago)

Hey! Glad you like the mod.

Yes, you are right, Currently the elevated rails have the same tile mask as the ground rails.
Rail ramps have a separate mask.
The signals are just used to determine the direction of the traveling train to place the tile preset correctly.

To your points:

  • elevated rails and ramps are detected, supports are currently not, and I'm currently working on that. No ETA though ^^ The curent tile and maks calculation is setup for a single tileset/preset only.
  • that could be done, I see several caveats with it however:
  • horizontal elevated rails appear higher due to the perspective compared to vertical ones.
    how it is currently solved is in my opinion the best way; place the tiles as if the rail was on the ground, not where it visually is.
    I would welcome a mockup of how you think it could be done differently. I tried a few designs just messing around with manually shifting tiles with blueprints and the current way is the best imo.
  • Different tileset rules can certainly be made. See 1
  • Again see 1 for separate tileset. What is placed under each tile as foundation is however up to the game to decide, the mod only reads what the game says is the default cover tile for the planets ocean/lava/oil. See lua-api
  • Again see 1
  • See 2. It's up to debate what the best way is to handle elevated rails/signals.

I.e.:

I like the idea of adding a separate preset for elevated rails, the supports and signals and it is in the (early) works.
Changing the mask for elevated rails could be done but I currently see no reason why.

23 hours ago

Thanks again for the detailed explanation.

I think my previous wording may have been a bit ambiguous, so let me clarify my preference.

In my opinion, elevated rails probably should not generate ground decoration by default. The reasoning is quite simple: elevated rails are physically above the ground, so there is no real need to place ballast, landfill, foundation, ice platform or other decorative tiles underneath their ground projection. In a real-world sense, an elevated track does not require a prepared trackbed under the entire alignment — only the supporting structures, piers, ramps and ground-level sections need ground treatment.

So the default behavior I would prefer is:

  • do not place tiles under/around elevated rails themselves;
  • process only entities that actually touch or interact with the ground:
  • normal ground rails;
  • ramps;
  • rail supports;
  • ground-placed Signal / Chain Signal entities;
  • if an elevated rail passes over ground rails, the ground-rail decoration should have priority.

At the same time, I understand that some players may still want a continuous visual “path” under elevated lines. For that case, an optional separate preset/mode for the ground projection of elevated rails could be useful, but I think it should be disabled by default and should not override existing ground-rail decoration.

Regarding signals: when I mentioned an underlay/foundation, I mostly meant the decorative surface tile directly under Signal / Chain Signal entities, not necessarily the planet-dependent foundation/cover tile. For example, being able to choose whether to place nothing, concrete, stone path, landfill, foundation, ice platform, or another suitable tile under a ground-placed signal.

So my main suggestion is not to change the current elevated-rail mask globally, but rather to make the default behavior more “ground-aware”: elevated rails should not automatically cause ground decoration unless the user explicitly selects an optional projection preset.

Hope this clarifies my use case. Thanks again for considering it!

New response