Rail Signal Planner


[QoL] Automatically place rail signals on rails and intersections.

Utilities
5 months ago
0.17 - 2.0
37.1K
Logistics Trains

b Error while running event RailSignalPlanner::on_player_selected_area (ID 53)

9 months ago

Мод Rail Signal Planner (2.0.1) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event RailSignalPlanner::on_player_selected_area (ID 53)
RailSignalPlanner/scripts/rail_utility.lua:41: Unsupported rail type legacy-straight-rail (legacy-straight-rail)
stack traceback:
[C]: in function 'error'
RailSignalPlanner/scripts/rail_utility.lua:41: in function 'rail_length'
RailSignalPlanner/scripts/objects/rail.lua:123: in function 'initialize_signals'
RailSignalPlanner/scripts/objects/rail.lua:31: in function 'construct'
RailSignalPlanner/scripts/objects/rail.lua:16: in function 'new'
RailSignalPlanner/scripts/logic/build_graph.lua:38: in function 'add_block'
RailSignalPlanner/scripts/logic/build_graph.lua:81: in function 'initialize_rails'
RailSignalPlanner/scripts/logic/build_graph.lua:178: in function 'build_graph'
RailSignalPlanner/control.lua:66: in function 'build_signals'
RailSignalPlanner/control.lua:170: in function 'on_player_selected_area'
RailSignalPlanner/control.lua:204: in function <RailSignalPlanner/control.lua:203>

9 months ago

Same here :(

8 months ago

same here as well.

8 months ago

I got this today
Built a new section of rail to test this mod on

The mod Rail Signal Planner (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event RailSignalPlanner::on_player_selected_area (ID 53)
RailSignalPlanner/scripts/rail_utility.lua:41: Unsupported rail type legacy-straight-rail (legacy-straight-rail)
stack traceback:
[C]: in function 'error'
RailSignalPlanner/scripts/rail_utility.lua:41: in function 'rail_length'
RailSignalPlanner/scripts/objects/rail.lua:123: in function 'initialize_signals'
RailSignalPlanner/scripts/objects/rail.lua:31: in function 'construct'
RailSignalPlanner/scripts/objects/rail.lua:16: in function 'new'
RailSignalPlanner/scripts/logic/build_graph.lua:38: in function 'add_block'
RailSignalPlanner/scripts/logic/build_graph.lua:81: in function 'initialize_rails'
RailSignalPlanner/scripts/logic/build_graph.lua:178: in function 'build_graph'
RailSignalPlanner/control.lua:66: in function 'build_signals'
RailSignalPlanner/control.lua:170: in function 'on_player_selected_area'
RailSignalPlanner/control.lua:204: in function <RailSignalPlanner/control.lua:203>

8 months ago

I found the loose part of legacy rail that caused this, it would have come from a blueprint from an older version of Factorio

8 months ago

what did you fix to correct it?

8 months ago

Just delete the rail then replace it. (when you hover over the rail it tells you in the info box top right of the screen.
I found quite a few differences between latest and older versions such as the curve radius is now larger so some old blueprints I could not recreate unless I copied and pasted them.
Led to me deciding to build all my own rail sections and grid templates from scratch but I forgot I used BP's from a couple of old unloaders during my testing.

8 months ago

oh I see. I get this error when I build by hand or select the tracks

8 months ago

I know Wube is awesome for supporting legacy rails, but I can't guarantee they work with this mod.
I've added support for them in 2.0.2, please let me know if they still don't work properly.

Apologies for the delay

8 months ago

Thanks for the update @LeonSkills and no need to apologise
Not sure when ill have a chance to test but ill update when I do

8 months ago

Re run it on all my rail sections and bar a couple of additional repeaters working really well.

If you have legacy rail it will not place any signals on those tracks. so crashing is now prevented but fair warning to people using old blueprints that this mod wont work well for you.

New response