Page 1 of 1

[bug in other mod] on_train_changed_state error with single train unit mod

Posted: Sun Jan 01, 2023 1:53 am
by m1337
With LTN version 1.18.1 this happens randomly but frequently when visiting LTN stations with locomotives from single train unit mod.

Code: Select all

The mod LTN - Logistic Train Network (1.18.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event LogisticTrainNetwork::on_train_changed_state (ID 25)
Unknown virtual-signal name: ltn-position-single_train_unit-double_end-cargo-loco
stack traceback:
        [C]: in function '__newindex'
        __LogisticTrainNetwork__/script/stop-update.lua:478: in function 'UpdateStopOutput'
        __LogisticTrainNetwork__/script/train-events.lua:178: in function 'TrainArrives'
        __LogisticTrainNetwork__/script/train-events.lua:362: in function <__LogisticTrainNetwork__/script/train-events.lua:358>
Edit: needs AAI Industry for the bug to happen.

Re: on_train_changed_state error with single train unit mod

Posted: Sun Jan 01, 2023 10:01 am
by Optera
I'm unable to reproduce.
Position signals for Single Train Units generate fine for me.

Re: on_train_changed_state error with single train unit mod

Posted: Sun Jan 01, 2023 3:06 pm
by m1337
Apparently this happens when AAI Industry is enabled.

Re: on_train_changed_state error with single train unit mod

Posted: Tue Jan 03, 2023 8:00 pm
by Optera
I checked with other train mods alongside AAI Industy and virtual signals where generated for every one in data-final-fixes.
Please redirect the bug report to the author of Single Train Unit. His entity prototypes don't exist in data-final-fixes when loaded alongside AAI Industry.

Edit: updated title with status

Re: [bug in other mod] on_train_changed_state error with single train unit mod

Posted: Thu Jan 05, 2023 6:20 am
by Optera
Added Error processing for not existing position signals in LTN 1.18.2