path calculation

martinvk

since 10 Aug 2002
Is there a way to see the calculations that are done by the AI path finding process? Perhaps a log file?

When trying to diagnose why a certain AI train takes a certain track to reach its destination, it would be helpful if I could see how it came to make that decision. Then I could add just the right conditions to prevent that behavior without a lot of trial and error
 
Trainzoptions -enablescriptmessagelogging

Hi Martin - Adding the option -enablescriptmessagelogging
to trainzoptions.txt will dislay all the script messages. It doesn't display the calculations however, but you can see which junctions are selected.

Have you tried my suggestion of using priority markers to block entry to paths which are not on the main line? (See the thread on "Variable track resistance")

Trevor
 
Hi Martin - I use a text editor called Scintilla Text Editor from Source Forge (free download) and a syntax highlighter that I made myself by modifying the lua highlighter.

It makes the various parts of the log file stand out by coloring the background or the text color for junctions, trackmarks and triggers etc.

Regards - Trevor
 
Back
Top