Running Continuum under Wine

From ASSS Wiki

Jump to: navigation, search

Contents

Quick Start

If you want to run Continuum on your Linux machine as quickly as possible, download a pre-compiled version of a patched Wine from wine.getcontinuum.com.

Patching Wine

To run Continuum under Wine, you need to apply a patch to Wine's source code. Copy the text block below into a file, such as cont.diff, and follow the patching instructions below.

For versions >= 0.9.38 or so:

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 33f9ee1..d50cb7d 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -2460,6 +2464,7 @@ HANDLE WINAPI OpenProcess( DWORD access,
     OBJECT_ATTRIBUTES   attr;
     CLIENT_ID           cid;
 
+if (access & PROCESS_VM_WRITE) return NULL;
     cid.UniqueProcess = ULongToHandle(id);
     cid.UniqueThread = 0; /* FIXME ? */

For versions <0.9.38 (until somewhere in the 20s):

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 33f9ee1..d50cb7d 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -2460,6 +2464,7 @@ HANDLE WINAPI OpenProcess( DWORD access,
     OBJECT_ATTRIBUTES   attr;
     CLIENT_ID           cid;
 
+if (access & PROCESS_VM_WRITE) return NULL;
     cid.UniqueProcess = (HANDLE)id;
     cid.UniqueThread = 0; /* FIXME ? */

Alternatively, the following changes may be necessary in Wine 0.9.12: @@ -2325,6 +2325,7 @@

For "File to patch?" errors, replace kernel32 with kernel throughout the patch.

Place your new cont.diff file inside the topmost directory of Wine's source code (that which includes the LICENSE file), and run cat cont.diff | patch -p1 to apply the patch. Follow with the usual ./configure && make depend && make to build Wine. If you'd wish to have this replace your current Wine installation or to install it globally, run make install as root.

Winecfg.png

It is important to run winecfg, select the Drives tab, click C:, Show Advanced, and set the Serial: value to a random number higher than 2000. If you do not, you cannot connect to catid billers, or may cause other issues on the SSC biller.

Common problems

If you have a binary version of Wine installed from a .rpm, .deb, etc., it's recommended to remove it before installing and setting up Wine from source, so as not to cause confusion.

Make sure you are running Continuum in a color depth of at least 16 ( View > Options > Graphics > Color Depth: ). Using 8-bit color depth is possible, but you have to check your /etc/X11/xorg.conf (etc.) file to make sure you have 8-bit Depth/Modes configured. Usually, a simple way to verify if you can safely use 8-bit color depth is to check whether you can set your desktop environment to use it.

If having problems with sound, use winecfg to enable (check) ALSA Driver (Audio tab) and set Hardware Acceleration: to Emulation.

Chat window will not appear when you task out. This is because Continuum under Wine doesn't understand that it is minimized, so it will never start the chat window. You can use a Chatnet Client to provide a chat-only interface to servers that run ASSS (and the chatnet module), which you don't need to emulate in Wine.

If you get a libwine.so.1 error when trying to run Wine globally (instead of running the application from its source directory), add the following lines to your /etc/ld.so.conf file: /usr/local/lib and /usr/local/lib/wine. If problems still occur, copy libwin.so.1 to those locations from the winesource/libs directory.

ALT key does not function properly if it is bound to another XIM like kinput2 (e.g. tried to bring up map).

If connecting to a zone causes you to login as ^Banned, please run winecfg, select the Drives tab, select C:, Show Advanced, and make sure the Serial: value is set to a random number greater than 2000.

Why it works

When Continuum runs, one of the first things it does is create another process of itself with some privileges restricted, such as the ability to call OpenProcess. When the child process attempts to repeat this step, it receives an error that OpenProcess failed, which tells the process that it is the child. The child process then proceeds to run the game.

Since Wine does not properly emulate this parent-child security, this source modification is necessary to get Continuum to run under Wine.

Performance Enhancements

Verified: N
Within the windows registry, create string [HKEY_CURRENT_USER\Software\Wine\Direct3D\DirectDrawRenderer] = "opengl"

Examples


Download the following: wine-0.9.21, winetools, cont32.diff, contiuum038setup.exe, and contiuum039pr1.zip.

Ubuntu users will need to first install some other packages to be able to build Wine. To do so, in a terminal window type sudo apt-get install build-essential bison flex fontforge libgl1-mesa-dev libgtk1.2 xorg-dev to install all the needed packages.

$ tar jxvf wine-0.9.21.tar.bz2
$ cd wine-0.9.21
$ ./configure
$ cat ../cont32.diff | patch -p1
$ make
$ sudo make install
$ cd ..
$ tar zxvf winetools-0.9jo-III.tar.gz
$ cd winetools-0.9jo-III
$ sudo ./install
$ cd ..
$ wine contiuum038setup.exe
$ unzip contiuum039pr1.zip
$ mv menu039pr1.dll ~/.wine/drive_c/Program\ Files/Continuum/
$ mv Contiuum039pr1.exe ~/.wine/drive_c/Program\ Files/Continuum/
$ winecfg

To run Continuum 0.39, create a launcher for: wine "C:\Program Files\Continuum\Continuum039pr1.exe"

Personal tools