TrainzUtil in TRS19
I have a technical question about the operation of TrainzUtil under TRS19. I hope I am in the right place.
It's my understanding that TrainzUtil is an interface for external tools to request information from Trainz (among other things) in a controlled way.
In TRS19 settings, I have advanced debug tools enabled, so I think I have properly enabled the use of TrainzUtil. If I open a command line window and go to the path where TU is installed, I expect to be able to issue commands to it.
So, I enter a command like "@tuquery.txt > turesponse.txt", where tuquery.txt contains a series of STATUS commands, with the KUIDs all enclosed in double quotes. In response, I get the message "TANE.EXE is not running." Interesting, because this is TRS19. Puzzling, because it's also my understanding that TrainzUtil should be "standalone", in a sense. In other versions of Trainz, I don't have to start anything else running, I only have to issue the command to TrainzUtil.
If I double-click my TRS19 icon on the desktop so that the Launcher is displayed, then return to the command line window and repeat the above command, it works fine.
So... what am I not understanding and/or what am I doing wrong? I will be most happy to be told I am missing something basic here.
Thanks and Regards,
Mike
EDIT: I see now, on the TrainzUtil page, that the T:ANE message should be fixed in SP3, and that it does state that the main TRS19 exe also needs to be running to use TrainzUtil. So I guess, in my application, I'm going to have to tell the user to perform a manual step, rather than being able to do things in a fully automatic way.
Last edited by ModelerMJ; September 3rd, 2021 at 07:30 PM.
606026 / TRS19 114800 / TRS22 SP1 119451
W11 Pro 64 21H2 / i7-11800H 2.3GHz, 64GB DDR4, NVidia GeForce RTX 1060 6GB