Running Continuum under Wine

From ASSS Wiki
Revision as of 11:28, 22 June 2006 by Akai (talk | contribs) (copyedit)
Jump to: navigation, search

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.

diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c
index 33f9ee1..d50cb7d 100644
--- a/dlls/kernel/process.c
+++ b/dlls/kernel/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, in Wine 0.9.12: @@ -2325,6 +2325,7 @@

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.

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.

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.