Hi,
I am looking for a way to export some data aggregated using GameScript for external analysis. In order to do so, I wish I could export the content of the AI/SG debug window or, even better, directly write to filesystem from GS. Any information welcome !
Export data from GameScript
Moderator: OpenTTD Developers
Re: Export data from GameScript
From IRC: apparently not possible for GScript to write to filesystem, copy/paste the AI/GS debug neither.
However, running with `-dscript=4` will dump the AI/GS debug to standard output
However, running with `-dscript=4` will dump the AI/GS debug to standard output
Re: Export data from GameScript
I think the currently only supported method would be the Admin Port feature. That requires a special client, and only works in multiplayer games.
Re: Export data from GameScript
Eventually I used the `-dscript=4 -l 127.0.0.1:<port>` along with a (python) script listening to that port and filtering output to show only my GScript output. Works great
Re: Export data from GameScript
openttd -d script=5 2>&1 | tee /var/tmp/ttdlog.txt
Who is online
Users browsing this forum: No registered users and 19 guests