Difference between revisions of "Running Orbiter under Wine"

From OrbiterWiki
Jump to navigation Jump to search
m (Category added)
(Added category.)
 
(25 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This article explains how to run Orbiter2016 with DirectX9 client under Wine. Use only stable version of Wine for this (tested on 1.6.2)
+
This article explains how to run [[Orbiter|Orbiter 2016]] with DirectX9 client under Wine. Use only stable version of Wine for this (tested on 1.6.2). Otherwise Orbiter will be crashing upon switching views, etc.
  
 
= Preparation =
 
= Preparation =
 
== Installing the base environment ==
 
== Installing the base environment ==
 +
 +
Install the latest STABLE version of [https://www.winehq.org/download Wine] and [https://wiki.winehq.org/Winetricks Winetricks] in your system.
 +
 
<pre>
 
<pre>
# Install the latest STABLE version of Wine and Winetricks in your system. See:
+
# cd into your Orbiter2016 directory (where you extracted Orbiter)
# https://www.winehq.org/download
 
# https://wiki.winehq.org/Winetricks
 
 
 
# cd into your Orbiter2016 directory
 
  
 
# We will be operating on a specialized Wineprefix
 
# We will be operating on a specialized Wineprefix
echo ".local/share/wineprefixes/orbiter2016" > wineprefix.txt
+
mkdir -p $HOME/.local/share/wineprefixes/orbiter2016
export WINEPREFIX=~/`cat wineprefix.txt`
+
echo "$HOME/.local/share/wineprefixes/orbiter2016" > wineprefix.txt
 +
export WINEPREFIX=`cat wineprefix.txt`
  
 
# Create the Wineprefix for Orbiter 2016. Select Windows 8.1 as the supported operating system.
 
# Create the Wineprefix for Orbiter 2016. Select Windows 8.1 as the supported operating system.
 
WINEARCH=win32 winecfg
 
WINEARCH=win32 winecfg
  
# Install VC++ runtimes
+
# Install VC++ runtimes (the base install and many addons need them)
winetricks vcrun2005 vcrun2008 vcrun2010 vcrun2012 vcrun2013 vcrun2015 vcrun6 vcrun6sp6
+
winetricks vcrun2005 vcrun2008 vcrun2010 vcrun2012 vcrun2013 vcrun6 vcrun6sp6 corefonts
 +
winetricks vcrun2015 # This may fail under older winetricks/wine
 
</pre>
 
</pre>
  
 
== Installing DX9 ==
 
== Installing DX9 ==
 +
Search the [http://orbiter-forum.com forum] to get the latest DX9 Client for Orbiter 2016. Once we reach a stable Orbiter release, the DX9 Client link might get fixed. Currently a stable version is available at [http://users.kymp.net/~p501474a/D3D9Client/ Jarmonik's private page]
 
<pre>
 
<pre>
export WINEPREFIX=~/`cat wineprefix.txt`
+
export WINEPREFIX=`cat wineprefix.txt`
 +
 
 +
# It should be possible to install DX9 via the following command, but it doesn't seem to satisfy all dependencies:
 +
# winetricks d3dx9
  
 
# Download page of the DX9 runtimes
 
# Download page of the DX9 runtimes
Line 40: Line 45:
 
wine $DX9_EXTRACTED_DIR/DXSETUP.exe
 
wine $DX9_EXTRACTED_DIR/DXSETUP.exe
 
</pre>
 
</pre>
 
  
 
= Run scripts =
 
= Run scripts =
Create the following two scripts in your Orbiter2016 directory and run them with:
+
Create the following two scripts in your Orbiter2016 directory to and run them with:
 
<pre>
 
<pre>
bash run-wine-orbiter-ng.sh # DirectX9
+
sh run-wine-orbiter-ng.sh # DirectX9
bash run-wine-orbiter.sh    # DirectX7
+
sh run-wine-orbiter.sh    # DirectX7
 
</pre>
 
</pre>
  
 
== run-wine-orbiter-ng.sh ==
 
== run-wine-orbiter-ng.sh ==
 
<pre>
 
<pre>
#!/bin.bash
+
#!/bin/bash
  
 
killall orbiter.exe
 
killall orbiter.exe
export WINEPREFIX=~/`cat wineprefix.txt`
+
export WINEPREFIX=`cat wineprefix.txt`
 
wine Orbiter_ng.exe
 
wine Orbiter_ng.exe
 
</pre>
 
</pre>
Line 60: Line 64:
 
== run-wine-orbiter.sh ==
 
== run-wine-orbiter.sh ==
 
<pre>
 
<pre>
#!/bin.bash
+
#!/bin/bash
  
 
killall orbiter.exe
 
killall orbiter.exe
export WINEPREFIX=~/`cat wineprefix.txt`
+
export WINEPREFIX=`cat wineprefix.txt`
 
wine orbiter.exe
 
wine orbiter.exe
 
</pre>
 
</pre>
  
= Remarks =
+
= Running Orbiter =
The typical Ctrl+F1-4 combinations don't work under Linux. Use the upper pane of the Orbiter window to invoke these special functions.
+
* click Modules, and click Expand all twice. Select addons you want to use. In case of running run-wine-orbiter-ng.sh, enable the D3D9Client checkbox.
 +
* click Video, and switch to full screen
 +
* click Parameters, uncheck Focus follows mouse
 +
* click Scenario and pick something.
 +
* click Launch Orbiter
 +
* The typical Ctrl+F1-4 combinations don't work under Linux. Use the upper pane of the Orbiter window to invoke these special functions.
 +
(info borrowed from http://devio.us/~dv/linux-orbiter.html#sec-9 )
 +
 
 +
Full screen mode works faster for the same resolution as in the windowed mode, but it may block keyboard entirely when you operate on dialog boxes. In that case, you have to kill the orbiter.exe process by switching to another virtual console via Ctrl+Alt+F1, logging in and typing:
 +
<pre>
 +
killall orbiter.exe
 +
</pre>
 +
next switch back to X via Ctrl+Alt+F7
 +
 
 +
= Tips =
 +
 
 +
If you have missing textures with DX9 client and orbiter crashes with DX7 client, you maybe have missing dxtn library. It outputs following on console:
 +
 
 +
fixme:d3d:wined3d_dxtn_init Wine cannot find the txc_dxtn library, DXTn software support unavailable.
 +
 
 +
On Fedora, you need to install <tt>libtxc_dxtn.i686</tt> package.
  
 +
[[Category: Articles]]
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Latest revision as of 12:17, 15 October 2022

This article explains how to run Orbiter 2016 with DirectX9 client under Wine. Use only stable version of Wine for this (tested on 1.6.2). Otherwise Orbiter will be crashing upon switching views, etc.

Preparation[edit]

Installing the base environment[edit]

Install the latest STABLE version of Wine and Winetricks in your system.

# cd into your Orbiter2016 directory (where you extracted Orbiter)

# We will be operating on a specialized Wineprefix
mkdir -p $HOME/.local/share/wineprefixes/orbiter2016
echo "$HOME/.local/share/wineprefixes/orbiter2016" > wineprefix.txt
export WINEPREFIX=`cat wineprefix.txt`

# Create the Wineprefix for Orbiter 2016. Select Windows 8.1 as the supported operating system.
WINEARCH=win32 winecfg

# Install VC++ runtimes (the base install and many addons need them)
winetricks vcrun2005 vcrun2008 vcrun2010 vcrun2012 vcrun2013 vcrun6 vcrun6sp6 corefonts
winetricks vcrun2015 # This may fail under older winetricks/wine

Installing DX9[edit]

Search the forum to get the latest DX9 Client for Orbiter 2016. Once we reach a stable Orbiter release, the DX9 Client link might get fixed. Currently a stable version is available at Jarmonik's private page

export WINEPREFIX=`cat wineprefix.txt`

# It should be possible to install DX9 via the following command, but it doesn't seem to satisfy all dependencies:
# winetricks d3dx9

# Download page of the DX9 runtimes
#https://www.microsoft.com/en-us/download/confirmation.aspx?id=8109

# A direct link
#wget https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe

# Adjust your DX9 extraction directory
DX9_EXTRACTED_DIR=../../orbiter-clean/install/dx9_jun2010/

# Extract the redistrubutable to the directory, that you entered above
wine directx_Jun2010_redist.exe

# Let wine install it in your prefix
wine $DX9_EXTRACTED_DIR/DXSETUP.exe

Run scripts[edit]

Create the following two scripts in your Orbiter2016 directory to and run them with:

sh run-wine-orbiter-ng.sh # DirectX9
sh run-wine-orbiter.sh    # DirectX7

run-wine-orbiter-ng.sh[edit]

#!/bin/bash

killall orbiter.exe
export WINEPREFIX=`cat wineprefix.txt`
wine Orbiter_ng.exe

run-wine-orbiter.sh[edit]

#!/bin/bash

killall orbiter.exe
export WINEPREFIX=`cat wineprefix.txt`
wine orbiter.exe

Running Orbiter[edit]

  • click Modules, and click Expand all twice. Select addons you want to use. In case of running run-wine-orbiter-ng.sh, enable the D3D9Client checkbox.
  • click Video, and switch to full screen
  • click Parameters, uncheck Focus follows mouse
  • click Scenario and pick something.
  • click Launch Orbiter
  • The typical Ctrl+F1-4 combinations don't work under Linux. Use the upper pane of the Orbiter window to invoke these special functions.

(info borrowed from http://devio.us/~dv/linux-orbiter.html#sec-9 )

Full screen mode works faster for the same resolution as in the windowed mode, but it may block keyboard entirely when you operate on dialog boxes. In that case, you have to kill the orbiter.exe process by switching to another virtual console via Ctrl+Alt+F1, logging in and typing:

killall orbiter.exe

next switch back to X via Ctrl+Alt+F7

Tips[edit]

If you have missing textures with DX9 client and orbiter crashes with DX7 client, you maybe have missing dxtn library. It outputs following on console:

fixme:d3d:wined3d_dxtn_init Wine cannot find the txc_dxtn library, DXTn software support unavailable.

On Fedora, you need to install libtxc_dxtn.i686 package.