Skip to content

OCTGN on non Windows systems

joeyccha edited this page May 21, 2013 · 31 revisions

Warning this is currently experimental.

With 3.1+ versions of OCTGN, it's possible to run it on non-Windows systems using Wine and Winetricks.
The install only takes a few minutes if you are a bit familiar with the command line.
This page will try to help you through it step by step but some parts might be different for your distro.

Prerequisites.

Linux:
wine 1.5.5+ (download here)
winetricks svn826+ (comes bundled with wine)

Mac OSX 10.5.3+:
wine 1.5.29+
winetricks svn826+
(both are available via MacPorts, Fink, or Brew. Preferably not Brew.)

Install wine.

Linux:
Follow the guide on the wine website on how to download the wine 1.5 beta.

MacPorts:

sudo port install wine-devel winetricks

After install:
Make sure you set it up as a 32 bit prefix:

WINEARCH=win32 winecfg

Optionally (preferrably), put it in its own prefix:

WINEARCH=win32 WINEPREFIX=~/.wine-octgn winecfg

Set up dependencies:

WINEPREFIX=~/.wine-octgn winetricks -q vcrun2010 dotnet40

Install octgn.

Go to http://www.octgn.net and download the latest version. Run the install with wine from the terminal:

WINEPREFIX=~/.wine-octgn wine OCTGN-SETUP-VERSION-STRING.exe

When that completes you should be able to start octgn:

WINEPREFIX=~/.wine-octgn wine ~/OCTGN/OCTGN/OCTGN.exe

If it starts go to options and disable hardware acceleration for a much smoother operation of the program.

Troubleshooting

Wine's implementation of WPF doesn't play well with multiple monitors. Use virtual desktop instead.

WINEPREFIX=~/.wine-octgn wine /desktop=1440x900 ~/OCTGN/OCTGN/OCTGN.exe

Or make it permanent by setting it in winecfg.
Unusable/blank interfaces on first-run can also be mitigated by using virtual desktop so you can disable acceleration once you're in. Worst case scenario: Create (not edit; existing file has different changes) a bare config file with acceleration disabled.
~/OCTGN/Config/settings.xml

<Dictionary name="Root" type="System.Collections.Hashtable, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  <Items>
    <Item>
      <Simple type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="UseHardwareRendering" />
      <Simple type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="False" />
    </Item>
  </Items>
</Dictionary>

Old notes

At the moment only games hosted from the server work. (Needs testing; unsure if still true)

You might have to install a file called gacutil.exe and its config file to the winetricks cache to get .net to work property. I will include this link at a later point.(But google is your friend here). Deprecated. Wine 1.5.5+ and Winetricks svn826+ fixes this.