Running FGWALK in WINE

27 July 2020

Testing of version 25 hosted in Source Forge:

Error: the following error producing code was commented out (Python 2.7). The GUI comes up but does not start FG.

os.nice(5)

AttributeError: 'module' object has no attribute 'nice'

The os.system command simply does not work. (Works in Linux though, Python 3.6. Python 3.6 cannot be installed on my WINE.

>>> import os

>>> os.system("dir")

0

Lets try Windows.


7 July 2020

At present FGWALK does not run in WINE and is being debugged. FGWALK can be made to run in WINE without changing any environmental variables or setting the path. This is done by adding the following paths to the fgfs options list.

A batch file containing the following commands works in (to be uploaded)





7 July 2019 ( to be tested and verified)

Running FGWALK in WINE, tested in actual download.

1. Installed Lnux Mint 18

2. Installed WINE from Synaptic Package manager

3. Install Flight Gear version 1.0 Windows intaller .exe (180 MB or so)

4. Install Python Version 2.4.4.msi (right click and allow execution of program in properties first) (2.7 does not install)

5. Copy the FGWALK program folder to your home directory

The Path has to be set, as in Windows:

Z:\home\mycomputer>path

PATH=C:\windows\system32;C:\windows;C:\windows\system32\wbem

set PATH=%PATH%;C:\Python24\

6. Set the path to the FGWALK directory

set PATH=%PATH%;C:\Python24\

This path has to be made permanent

This is done by running REGEDIT : wine REGEDIT and adjusting the

HKEY_CURRENT_USER/Environment

https://wiki.winehq.org/Wine_User%27s_Guide#Using_the_Registry_and_Regedit










25 June 2019

Running in WINE if needed, requires configuration and a work around for the moment. This is for testing purposes only, later versions will run in an .exe.

Here are the steps I follow:

  • Open Terminal

  • Type wine CMD

  • Create a batch file with the following lines: (call it FGW.bat) and place it in home folder

REM This is a batch file

set PATH=%PATH%;C:\Python23\

set PATH=%PATH%;C:\Program Files (x86)\FlightGear\bin\win32

set PATH=%PATH%;C:\Program Files (x86)\FGWALK4\

REM python C:\Program Files (x86)\FGWALK4\fgwlk25M.py

C:

cd Python23

python fgw26.py

REM end of batch file

set PATH=%PATH%;C:\your\path\here\


Reference:

https://stackoverflow.com/questions/9546324/adding-directory-to-path-environment-variable-in-windows


run the batch file


This should bring up the FGwalk program in this case called fgw26.py



( copy files to Python23 folder including image files before running )


Note: you may have to set the path to the Flight Gear folder within the .py program n order to access the fgfs.exe


Not best practice but it works, fix later!