1 (edited by Silmerias 2013-12-13 14:17:15)

Topic: [Linux] how-to fix wine for Perpetuum

Dear Linux users,

As you probably saw, since month now there is an issue with the graphics when you're using wine.
And you can see things like this: http://imgs.frogswarm.fr/data/kFKcCKFKepCFo.png

I talked to my friend David who know wine like a boss, then he found multiple solution regarding the version that you want to use.

This issue didn't occur for wine version from 1.3.16 to 1.3.32 then he found the guilty fix and made a fix for this. (fix on fix yay !)

Here we go !
--------------------------------------------------------------------------------
From 1.3.16 to 1.3.32
No patch is required, you just have to compile one of thoses versions and will works

From 1.3.33 to 1.5.9
You have to reverse this patch as following

cd wine-1.X.YZ
wget "http://source.winehq.org/git/wine.git/p … abe486c418" -O - | patch -p1 -R

For 1.5.10 use the following update

cd wine-1.X.YZ
wget "http://source.winehq.org/git/wine.git/p … abe486c418" -O - |  sed -e "s:gl:gl_info->gl_ops.gl.p_gl:g" |patch -p1 -R

If you don't know how compile wine under Linux 64bit, there is the method: http://wiki.winehq.org/WineOn64bit

When wine will be installed use wintricks to get and install the mandatory librairies.
- sudo wget http://winetricks.org/winetricks -O /usr/local/bin/winetricks
- sudo chmod +x /usr/local/bin/winetricks
- winetricks vcrun6sp6 d3dx9
- Set library oleaut32.dll to native using winecfg.

That it, start your game and it works ! Have fun !
--------------------------------------------------------------------------------
Original sources from his blog: http://www.davidgis.fr/blog/index.php?2 … uum-online
He also added his contribution to perpetuum wineHQ.

Thanks to David !

2 (edited by Ravow 2013-12-15 08:17:21)

Re: [Linux] how-to fix wine for Perpetuum

Any hope to get this working on a decent version of wine?

Wine 1.5 is way deprecated and the patch do not apply on Wine 1.7.x. I tried to adapt it, it compile but same graphics corruption.

Just re-subbed after more than one year and can't play hmm

Edit: I read http://www.davidgis.fr/blog/index.php?2 … uum-online and I found a patchset for Wine 1.5.11 I ported it, same issue.

I also note that d3dx9 or d3dx9_36 is not required anymore and the oleaut32 trick, idem, partial support "in wine" is sufficient. I did try with these things too, but no differences. Maybe Wine is now using a different code-path so that patch is totally useless??

3 (edited by rboxeur 2013-12-15 21:29:43)

Re: [Linux] how-to fix wine for Perpetuum

Hi there,

I am the orignial author of the link shared by Silmerias smile

INSTRUCTIONS FOR PLAYING PO ON LINUX WITH WINE 1.7

For Wine 1.7 I wrote a installer that you can use to fix the graphical issue  (transparent texture).

Here is a Youtube video to show that the graphical issue is fixed (tested for Wine 1.7.8)

http://www.youtube.com/watch?feature=pl … p6r6eeL8do

If I am not mistaken this installer should be the only prerequisite to play PO on Linux smile. This way you don't have to patch Wine 1.7

Instructions to build the installer yourselft (optionnal) are provided in this post (see below)

Here are the instructions.

1) Generate a new WINEPREFIX -- to avoid any problem with your current WINEPREFIX --

export WINEPREFIX=/some/path

winecfg

1) Just download it at http://www.mediafire.com/download/rjxtf … taller.exe

2) then run

wine PerpetuumOnline-WineD3D-Linux-installer.exe

3) Go to the directory where your game is installed

cd  /the/path/to//Games/Perpetuum

4) Launch the game

wine Perpetuum.exe

Notes

  • d3dx9_36 is still required by this game. This library is provided by the installer. BTW this is the only natiive DLL required by this game from orignal DirectX

  • All DLL are directly set to "native" by the installer

  • The other libraries are WineD3D libraries  -- crosscompiled for Windows -- for wine 1.5.11 and patched as expected.

I decided to this way because I was not able to fix this issue over wine 1.5.12

OPTIONAL: INSTRUCTIONS IF YOU WANT TO GENERATE THE INSTALLER YOURSELF

...Understandable if you think there is a virus or a malware if the installer provided above big_smile

a) Download wine 1.5.11 at http://prdownloads.sourceforge.net/wine … 11.tar.bz2

b) Decompress the folder

tar xvjf wine-1.5.11
cd wine-1.5.11

c) Patch wine-1.5.11

wget "http://source.winehq.org/git/wine.git/p … e349ddb764" -O - | patch -p1 -R
wget "http://source.winehq.org/git/wine.git/p … 59227e6c3b" -O - | patch -p1 -R
wget "http://source.winehq.org/git/wine.git/p … 42ae8a7d6b" -O - | patch -p1 -R
wget "http://source.winehq.org/git/wine.git/p … 371a8b6804" -O - | patch -p1 -R
wget "http://source.winehq.org/git/wine.git/p … abe486c418" -O - |  sed -e "s:gl:gl_info->gl_ops.gl.p_gl:g" |patch -p1 -R

d)  Rename 'wine-1.5.11' to 'wine-git'. Apply instructions provided at http://wiki.winehq.org/WineD3DOnWindows

e) Go to crossdlls folder

cd $HOME/wine-wine32/crossdlls

f) Install nsis package

apt-get install nsis

g) Download d3dx9_36.dll somewhere from Internet and put it in that directory

h) You can download the sources I use to write this installer at http://www.mediafire.com/download/i5i91 … es.tar.bz2

File source is 'wined3d_installer.nsi's . Just run the command below to generate the installer

makensis wined3d_installer.nsis

4 (edited by Doek 2014-03-04 16:07:43)

Re: [Linux] how-to fix wine for Perpetuum

It works for me with the patch (it looks like it should), but the framerate makes it unplayable (15 fps in terminal, 6 fps on terrain). I'll try some stuff, see if I can get it run faster.

edit: works well with latest beta driver.