Howto:Showing the FlightGear console on Windows: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 37: Line 37:
   }}</ref>
   }}</ref>


The reason is that a console window opened by an application (e.g. running  fgfs --console) is not the same as a native windows command window from which an application (e.g. fgfs) is started typing a command at the prompt.. It was discovered that  error reports were not being sent to a console window that was opened with the --console option. Also it was not possible to pipe output to a file from the window that was opened by the fgfs <code>--console</code> method. For historical reasons the [[Fgfs.log|fgfs log file]] is not (as many folk believe) the same as the log printed in the console window.<ref>{{cite web
The reason is that a console window opened by an application (e.g. running  fgfs --console) is not the same as a native windows command window from which an application (e.g. fgfs) is started typing a command at the prompt.. It was discovered that  error reports were not being sent to a console window that was opened with the --console option. Also it was not possible to pipe output to a file from the window that was opened by the fgfs <code>--console</code> method. For historical reasons the [[Fgfs.log|fgfs log file]] is not (as many folk believe) the same as the log printed in the console window.
 
 
'''Alternative, simpler method, thanks to wllbrag.
'''
Make a windows batch file with code similar to:-
 
 
rem use just one of these 3 command line examples
 
"C:\Flightgear\install\msvc140-64\bin\fgfs.exe"
 
rem or this , depending upon where fg is installed, and what options you want.
 
"C:\Program Files\FlightGear 2016.3.0\bin\fgfs.exe" --launcher
 
rem or this if you want to use fgrun
 
"C:\Flightgear\install\msvc140-64\bin\fgrun.exe"
 
rem this line pauses the batch file when fg quits (or crashes) so you can see the console output.
 
pause
 
 
Save it in a file on the desktop for easy access. The file should be saved as type .bat or .cmd. e.g. runflightgear.bat.
 
<ref>{{cite web
   |url    =  https://forum.flightgear.org/viewtopic.php?p=293574#p293574  
   |url    =  https://forum.flightgear.org/viewtopic.php?p=293574#p293574  
   |title  =  <nowiki> Re: Running FlightGear with console showing </nowiki>  
   |title  =  <nowiki> Re: Running FlightGear with console showing </nowiki>  
6

edits

Navigation menu