Hi,
I have been working on a session for the Mojave Sub built in route in TS12 B61388 and I have encountered a scrip error that I have been unable to fix :n: so I turn to you good people for some help.
Page 1
WaitUntilSVariableCommand : Thread Exception: ER_NativeCallError, line -1, file waituntilsvariablecommand.gs (3)
Page 2
Thread Exception: ER_NativeCallError, line -1, file waituntilsvariablecommand.gs
Stack dump:
function $int@GameObject::GetId(), line -1
function $void@WaitUntilSVariableCommand::CheckSchedule(Variables,Train), line 13
the problem is that I have set up session variables and an Input Table with the svar change states.
I have an AI Driver with a schedule to start in rotabile invisible the at svar=1 move to a loco in MJ Yard, move a consist and stop. next as the player approaches the consist the AI Driver uncouples from the consist and moves around to couple a different consist of tankers waiting in the Yard.
All of that works well but then I have wait 10 seconds move to loco (rotable invisible) wait 20 seconds then delete train.
This final sequence works but at the start of the 20 second wait the dreaded red bug appears every time.
I have tried changing the invisible loco for a parked loco, I have replaced the loco's to which the AI Driver moves and later leaves. I have checked the tankers and they are all OK no errors and the loads are all built in and and they are all installed. I have tried a force updating the script cache as suggested by NS37 in an older thread.
I have also checked the operation with the Player stationary and no other trains active with the Player train doing it's routine in the session and the bug always appears at the same point.
This evening I have searched the TS12 directory for waituntilsvariablecommand.gs but all the Windows Explorer searches indicate that there is no such file I have also looked in both jetlog files and there is no indication of a problem with the commands and rules I am using or with the rolling stock involved in the schedule.
Any suggestions would be very much appreciated because this is the last glitch preventing us Ettore48 and myself uploading the sessions to the DLS.
Cheers,
Bob:Y:
I have been working on a session for the Mojave Sub built in route in TS12 B61388 and I have encountered a scrip error that I have been unable to fix :n: so I turn to you good people for some help.
Page 1
WaitUntilSVariableCommand : Thread Exception: ER_NativeCallError, line -1, file waituntilsvariablecommand.gs (3)
Page 2
Thread Exception: ER_NativeCallError, line -1, file waituntilsvariablecommand.gs
Stack dump:
function $int@GameObject::GetId(), line -1
function $void@WaitUntilSVariableCommand::CheckSchedule(Variables,Train), line 13
the problem is that I have set up session variables and an Input Table with the svar change states.
I have an AI Driver with a schedule to start in rotabile invisible the at svar=1 move to a loco in MJ Yard, move a consist and stop. next as the player approaches the consist the AI Driver uncouples from the consist and moves around to couple a different consist of tankers waiting in the Yard.
All of that works well but then I have wait 10 seconds move to loco (rotable invisible) wait 20 seconds then delete train.
This final sequence works but at the start of the 20 second wait the dreaded red bug appears every time.
I have tried changing the invisible loco for a parked loco, I have replaced the loco's to which the AI Driver moves and later leaves. I have checked the tankers and they are all OK no errors and the loads are all built in and and they are all installed. I have tried a force updating the script cache as suggested by NS37 in an older thread.
I have also checked the operation with the Player stationary and no other trains active with the Player train doing it's routine in the session and the bug always appears at the same point.
This evening I have searched the TS12 directory for waituntilsvariablecommand.gs but all the Windows Explorer searches indicate that there is no such file I have also looked in both jetlog files and there is no indication of a problem with the commands and rules I am using or with the rolling stock involved in the schedule.
Any suggestions would be very much appreciated because this is the last glitch preventing us Ettore48 and myself uploading the sessions to the DLS.
Cheers,
Bob:Y: