Transparent elevated rails


Provides the option to make elevated rails see through and allows to select object behind the elevated rails.

Utilities
4 months ago
2.0
541
Trains

b [Solved] Error when highlighting elevated rail ghosts

5 months ago
The mod Transparent elevated rails (0.2.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event transparent-elevated-rails::on_player_selected_area (ID 55)
Entity is not rail.
stack traceback:
    [C]: in function '__index'
    __transparent-elevated-rails__/control.lua:46: in function 'replace_rail'
    __transparent-elevated-rails__/control.lua:134: in function 'replace_rail_handler'
    __transparent-elevated-rails__/control.lua:139: in function <__transparent-elevated-rails__/control.lua:138>

I get the above error if I select any elevated ghost rails with the 'Transparent rail tool'. Hover mode seems unaffected.

5 months ago

Thanks for your report! I was not able to reproduce this error but I added an extra check that should catch this scenario. Should be fixed in latest version, could you test this?

5 months ago

Still seems to be happening:

The mod Transparent elevated rails (0.2.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event transparent-elevated-rails::on_player_selected_area (ID 55)
Entity is not rail.
stack traceback:
    [C]: in function '__index'
    __transparent-elevated-rails__/control.lua:46: in function 'replace_rail'
    __transparent-elevated-rails__/control.lua:154: in function 'replace_rail_handler'
    __transparent-elevated-rails__/control.lua:159: in function <__transparent-elevated-rails__/control.lua:158>
5 months ago

I was able to reproduce the error now and I made a better error handler. Should be solved in the latest release!

5 months ago

Seems to be working fine now, thanks!

New response