Editing Running Orbiter under Wine

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
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.
+
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)
  
 
= Preparation =
 
= Preparation =
Line 7: Line 7:
  
 
<pre>
 
<pre>
# cd into your Orbiter2016 directory (where you extracted Orbiter)
+
# cd into your Orbiter2016 directory
  
 
# We will be operating on a specialized Wineprefix
 
# We will be operating on a specialized Wineprefix
mkdir -p $HOME/.local/share/wineprefixes/orbiter2016
 
 
echo "$HOME/.local/share/wineprefixes/orbiter2016" > wineprefix.txt
 
echo "$HOME/.local/share/wineprefixes/orbiter2016" > wineprefix.txt
 
export WINEPREFIX=`cat wineprefix.txt`
 
export WINEPREFIX=`cat wineprefix.txt`
Line 17: Line 16:
 
WINEARCH=win32 winecfg
 
WINEARCH=win32 winecfg
  
# Install VC++ runtimes (the base install and many addons need them)
+
# Install VC++ runtimes
 
winetricks vcrun2005 vcrun2008 vcrun2010 vcrun2012 vcrun2013 vcrun6 vcrun6sp6 corefonts
 
winetricks vcrun2005 vcrun2008 vcrun2010 vcrun2012 vcrun2013 vcrun6 vcrun6sp6 corefonts
 
winetricks vcrun2015 # This may fail under older winetricks/wine
 
winetricks vcrun2015 # This may fail under older winetricks/wine
Line 23: Line 22:
  
 
== 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 35: Line 30:
 
# A direct link
 
# A direct link
 
#wget https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe
 
#wget https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe
 +
 +
# It should be possible to install DX9 via the following command, but it doesn't seem to satisfy all dependencies:
 +
# winetricks d3dx9
  
 
# Adjust your DX9 extraction directory
 
# Adjust your DX9 extraction directory
Line 49: Line 47:
 
Create the following two scripts in your Orbiter2016 directory to and run them with:
 
Create the following two scripts in your Orbiter2016 directory to and run them with:
 
<pre>
 
<pre>
sh run-wine-orbiter-ng.sh # DirectX9
+
bash run-wine-orbiter-ng.sh # DirectX9
sh run-wine-orbiter.sh    # DirectX7
+
bash 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
Line 64: Line 62:
 
== run-wine-orbiter.sh ==
 
== run-wine-orbiter.sh ==
 
<pre>
 
<pre>
#!/bin/bash
+
#!/bin.bash
  
 
killall orbiter.exe
 
killall orbiter.exe
Line 80: Line 78:
 
(info borrowed from http://devio.us/~dv/linux-orbiter.html#sec-9 )
 
(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]]

Please note that all contributions to OrbiterWiki are considered to be released under the GNU Free Documentation License 1.2 (see OrbiterWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)