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

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

m1337
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Jan 01, 2023 1:46 am
Contact:

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

Post 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.
Last edited by m1337 on Sun Jan 01, 2023 4:16 pm, edited 1 time in total.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: on_train_changed_state error with single train unit mod

Post by Optera »

I'm unable to reproduce.
Position signals for Single Train Units generate fine for me.
m1337
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Jan 01, 2023 1:46 am
Contact:

Re: on_train_changed_state error with single train unit mod

Post by m1337 »

Apparently this happens when AAI Industry is enabled.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: on_train_changed_state error with single train unit mod

Post 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
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

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

Post by Optera »

Added Error processing for not existing position signals in LTN 1.18.2
Post Reply

Return to “Logistic Train Network”