Pause the sessions execution through a driver command

TRS17985

Member
Hi all,

Is there a way to interrupt (pause) a running session in driver with a driver command. I would like to interrupt the game and trace the behavior of a specific driver in a long running session.

Any hints?

Thanks a lot
 
Do you mean something like debugging code by stepping through each command or something else. I don't know of any driver command that can pause everything happening in a session like the pause button. You can use Wait commands but that only stops the one train that is running the command sequence. Everything else continues to move through time.
 
There is a rule that ends the session. I would like to have a rule that pauses the session until I unpause the session with Ctrl P.

Can this be done via a script?
 
There is a rule that ends the session. I would like to have a rule that pauses the session until I unpause the session with Ctrl P.

Can this be done via a script?
I have seen it done but that was on the Razorback Railway and the scenarios were all coded with Trainzscript rather than using driver commands. So I would say it is possible or at least was possible back in 2004. Trainzscript has changed a lot since then. I would ask the mod to move this thread to the scripting forum. The guys who know Trainzscript inside and out hang out there.
 
The Message Popup rule has an option to pause session while the message window is open. I would think that hitting "P" to pause the session would be the most effective for what you want to do.
 
I need to pause the game after 2 hours of run time, to correct a situation. I would like a driver can do this. I allways miss the Exact moment. Frustrating after such a long wait.
 
I need to pause the game after 2 hours of run time, to correct a situation. I would like a driver can do this. I allways miss the Exact moment. Frustrating after such a long wait.
You can enable the debug option in Trainz to allow you to speed up sessions by holding the shift-key. You can speed through most of the run until shortly before the two hour mark and see what's occurring. This may or may not work, since it does affect scripts, but it's worth a try.

While in Trainz, click on the 3-bar menu located in the upper left corner and hidden. Choose settings and it's located under General settings.
 
Back
Top