I'm running build 103369. I have a session where I have set up a shunt in a power station and used session variables to control it
I have used the Input Table rule kuid2:131986:1012:1 to define the variables and operators to be used on them, and the Variable Modify rule kuid:-25:1050 to allocate initial values to them (to represent a partly-unloaded train, with some wagons still in the LWS (Loaded Wagon Sidings) and some already transferred to the EWS) - both as top-level rules run at session startup.
I then use a series of Set S-Variable kuid2:160293:101005:5 and ChangeSVariables kuid:131986:1005 DriverCommands to control the AI shunting loco, and Variable Modify child rules (as the player-train brings in a loaded and takes away an empty consist) to adjust the values as the session progresses.
This worked as expected in TANE, but failed in TRS19.
I have found out this failure is because during the initial setup the Variable Modify rule doubles the values allocated to the variables to represent the number of wagons in the LWS and EWS, so confusing the AI shunting loco. All the other operations are OK.
Is this doubling a bug - in TRS2019 or in the Input Table rule?
Any ideas before I put in a bug report?
Thanks
Edit:- Bug report submitted
I have used the Input Table rule kuid2:131986:1012:1 to define the variables and operators to be used on them, and the Variable Modify rule kuid:-25:1050 to allocate initial values to them (to represent a partly-unloaded train, with some wagons still in the LWS (Loaded Wagon Sidings) and some already transferred to the EWS) - both as top-level rules run at session startup.
I then use a series of Set S-Variable kuid2:160293:101005:5 and ChangeSVariables kuid:131986:1005 DriverCommands to control the AI shunting loco, and Variable Modify child rules (as the player-train brings in a loaded and takes away an empty consist) to adjust the values as the session progresses.
This worked as expected in TANE, but failed in TRS19.
I have found out this failure is because during the initial setup the Variable Modify rule doubles the values allocated to the variables to represent the number of wagons in the LWS and EWS, so confusing the AI shunting loco. All the other operations are OK.
Is this doubling a bug - in TRS2019 or in the Input Table rule?
Any ideas before I put in a bug report?
Thanks
Edit:- Bug report submitted
Last edited: