Hooray wrote:I am not really using fgrun, and I don't think fgrun provided any such option the last time I checked, but why can't you just run fgfs from a console?
Because I change options all the time, and fgrun is convenient
That said, I did try, and wasn't able to redirect the console output to a file.
Used to engines having an console.log (or equivalent) file that mirrors the windows console output, as it's a well known difficutly on win32 to redirect a built-in console's output at runtime
While there was a related feature request posted on the fgrun tracker almost 4 years ago:
http://sourceforge.net/tracker/index.ph ... tid=510696 I am not really sure if that's the right way to do it, it would be far better to simply have an additional option to optionally save console output to a file from within fgfs. This would probably also address latency issues related to excessive console output. This could be something like --log-file=problem.txt
If console window is dropped, then make fgfs behave as one would expect, and leave it to the user to redirect output. Fgrun can then set itself up to capture it. Adding a rich text control to capture the output on win32 to fgfs is not a good idea imho.
If that much effort goes into it, might as well use one of the de-facto standards on win : keep the console at least in debug builds, if not release, plus by default send its output to a console.log file (enabled by default and non blocking)
I think this would also be better than an idea mentioned on the wiki:
Add an additional command line parameter --log-startup=file.log to automatically log all startup messages at maximum log (bulk) level until main loop is running, this will make it easier for users to provide useful debug information
Because this idea would only be specific to logging info during startup, while simply logging all info would be way more generic and informative.
If you are only interested in startup log info, one could simply terminate the process after startup.
Agreed, as if it's done right, it's not going to lead to performance degradation : many twitch games have file logging of console output enabled by default, or easily toggled on, and it's not just for startup