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.
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
  |url    =  https://forum.flightgear.org/viewtopic.php?p=293574#p293574
  |title  =  <nowiki> Re: Running FlightGear with console showing </nowiki>
  |author =  <nowiki> Alant </nowiki>
  |date  =  Sep 3rd, 2016
  |added  =  Sep 3rd, 2016
  |script_version = 0.40
  }}</ref>
 
 




'''Alternative, simpler method, thanks to wllbrag. '''
'''Alternative, simpler method, thanks to wllbrag''' <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=293572#p293572
  |title  =  <nowiki> Re: Running FlightGear with console showing </nowiki>
  |author =  <nowiki> wlbragg </nowiki>
  |date  =  Sep 3rd, 2016
  |added  =  Sep 3rd, 2016
  |script_version = 0.40
  }}</ref>
 
Make a windows batch file with code similar to:
Make a windows batch file with code similar to:


Line 61: Line 78:
</syntaxhighlight>
</syntaxhighlight>


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.
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
  |title  =  <nowiki> Re: Running FlightGear with console showing </nowiki>
  |author =  <nowiki> Alant </nowiki>
  |date  =  Sep 3rd, 2016
  |added  =  Sep 3rd, 2016
  |script_version = 0.40
  }}</ref>




Navigation menu