Hi all,
Is it possible to send all the NoAI logging output to a file in Windows. I have tried "> log.txt", "2>> log.txt", and "> log.txt 2>&1" and nothing seems to work.
I'm using Vista Home Premium x64.
I ask because I never seem to have enough space to scroll-back in any of the logging windows, and it would be nice to be able to debug easily without having to spend ages trying to recreate bugs just to see the output.
Thanks very much,
George
Logging to a file in Windows
Moderator: OpenTTD Developers
Logging to a file in Windows
PathZilla - A networking AI - Now with tram support.
Re: Logging to a file in Windows
You need to convert OpenTTD to a console app first.
You can do this using http://devs.openttd.org/~glx/convert.zip.
You can do this using http://devs.openttd.org/~glx/convert.zip.
Re: Logging to a file in Windows
Oh fantastic! That worked perfectly. For reference, after converting the EXE I used the following...
Thanks very much glx. 
Code: Select all
openttd.exe -g -d ai=5 2>> ai_log.txt

PathZilla - A networking AI - Now with tram support.
Who is online
Users browsing this forum: No registered users and 5 guests