Show Max Underground Distance

by ltab

Shows maximum range indicators to help you place underground belts and pipes.

Utilities
5 months ago
0.18 - 2.1
134K

b Incorrect behaviour for outlet part

6 years ago
(updated 6 years ago)

When placing the outlet part of underground belt, the ghost suddenly rotates 180 deg. and shows wrong direction, as if I were placing the inlet part.
https://imgur.com/a/3jEz3Fd
This might be due to working together with Picker Extended mod, though

6 years ago

Known, and while it is a bug, it's not something that can be fixed unless the modding api changes. The indicator is always "in front" of the belt, so when placing an exit, it'll end up on the wrong side. It does not happen with pipes, which do not have a defined entrance/exit.

6 years ago

Hrm. Could the indicator somehow temporarily be turned off for such cases?

6 years ago
(updated 6 years ago)

Unfortunately not. This mod doesn't use dynamic rendering at runtime, since there is no way to follow, or even find, the cursor position. Instead, the indicator sprite is added to the belt entities at startup, and cannot be changed after that. It uses the same system that shows the radius of mining drills, turrets, or substations and the like, which is also why it unfortunately renders behind most other things, another thing I'd love to fix.

I asked for a change to the api to allow it to be done live, which would make it infinitely more flexible, but have been told by a dev it isn't going to happen. So it's an annoyance we're all stuck with.

6 years ago

maybe just show in two directions?

6 years ago

Could be done, but a) it would still look weird I think, just all the time instead of just when placing belt exits, and b) it wouldn't be able to adjust based on other mods changing the distance, so you'd need to customize it to your personal mod configuration every time.

a month ago
(updated a month ago)

This still happens in Factorio 2.1, is it still not possible to fix without runtime scripting? The underground belt graphic "in the hand" changes when it links up to another underground, and the indicator switches positions, but can the indicator be turned off for exit undergrounds? As far as I know you can't hold them in hand directly (i.e. they are always linked up), so they don't really need an indicator (though on that points backwards could be nice).

Edit: I just realized that you don't modify the underground graphics directly, as the placed undergrounds don't all have the green squares, so I don't know how your mod works, and if my idea will work.

a month ago

The mod works by modifying the underground prototype and adding the indicator to that using the same system that is used to show turret ranges. So it can't manage anything that dynamic. Some of the other threads have a bit more detail on other explored options and why they don't work IIRC.

New response