Script Error - TrainDispatchDisplay

chrisjohn

Chemin de fer
Marzipans Traindispatchdisplay rule displays an error viz.

Error: traindispatchdisplay.gs(284) : function IsStillInJunction not declared in class Train or derivative, line 284.
Error: traindispatchdisplay.gs(312) : invalid if expression, line 312.

I have puzzled over this without success.

The rule confers responsibilty on common.gs, but does not confer with train.gs, where "IsStillInJunction" is formally declared.

I have added include "train.gs" to the rule, by that induces further errors.
Question:
Is there a replacement or corrected rule in the offing?

Has anyone else found a work around in this script? I cannot see it, as the above function is in the first "if" in the particular loop, and needs to verify the presence of a train in a junction before then taking the "else" solutions that follow.
 
Last edited:
This rule is faulty in later versions, due to a change in the game script code.

I'm not sure if there is any safe workarounds, but I will have a look.

Shane

EDIT - New Information: This asset is on the DLS Cleanup project and has been claimed for repair by another user. Keep an eye on the DLS for any updates.
 
Last edited:
Thanks for that - Do to discrepancies in the search parameters I see this had been reported before. The original author has had knowledge and has so far not presented a solution.
 
Back
Top