Train Network for Players

by leeh

QoL and advanced functionality for players using trains for transport, including improved destination selection dialog and automated train calling.

Content
1 year, 7 months ago
0.17 - 1.1
5.97K
Transportation

b Crash when calling train with selection tool

3 years ago
(updated 3 years ago)
The mod Train Network for Players (0.12.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event TrainNetworkForPlayers::on_train_changed_state (ID 23)
Entity is not train-stop.
stack traceback:
    [C]: in function '__index'
    __TrainNetworkForPlayers__/tnp/action_trainstate.lua:47: in function 'tnp_action_trainstate'
    __TrainNetworkForPlayers__/tnp/action.lua:455: in function 'tnp_action_train_statechange'
    __TrainNetworkForPlayers__/tnp/event.lua:381: in function <__TrainNetworkForPlayers__/tnp/event.lua:371>

I think the cause could be that no train is in that network available but ghost rails where placed to a network where a train is available.

3 years ago

Thanks for the info, on a no path event it was checking the destination to see if it had a stop limit without seeing if it was a train stop or rail first.

I've released 0.12.2 with a fix

Cheers, Lee H

New response