Warband in Linux

Users who are viewing this thread

Thallian said:
I could try to describe all the steps needed to build wine from source (it is actually not that hard). But you would have to wait untill I am at home (around 7 PM).

Thalian! It's great!!! But use english words simple to understand. I from rus, my own language not english )))) many words that's say you and others in this topic i must translate with dictionary) (My eng skill growing up :lol: )

I will wate your answer!

I think, information about hungs and lags with video card (and direct-x options), will be aded to the first post. It will be useful for noobs such like me!
 
So, I tried to describe the whole process. It makes mainly use of the terminal (all commands in italics takes place in the terminal). I can't guarantee that it will work, just ask when you have questions. I also want to point out that I am not really an experienced Linux user, so maybe I do things plain wrong. Any help from more advanced users is highly appreciated =)

Open a terminal and run the following commands.
Not all of the packages in the first command are
necessary for warband but this way you are sure to have all of the additional stuff (except OpenCl). In my opinion it should work with just
the packages till 'libopenal-dev', so if you want to reduce the downloadsize just remove the ones you don't want.


sudo apt-get install gcc flex bison libxi-dev libfreetype6-dev libgl1-mesa-dev libopenal-dev libpng-dev libjpeg-dev libxslt-dev  libxrender-dev prelink libldap-dev libmpg123-dev libtiff-dev libgsm1-dev libcapi20-dev liblcms-dev libgphoto2-dev libv4l-dev libsane-dev libgnutls-dev libxrandr-dev libxcomposite-dev libxinerama-dev libXxf86vm-dev libxcursor-dev libcups2-dev libfontconfig-dev libgstreamer0.10-dev libclutter-gst-0.10-dev libncurses-dev libhal-dev libglu-dev libssl-dev
cd Downloads
wget http://prdownloads.sourceforge.net/wine/wine-1.3.10.tar.bz2
bzip2 -cd wine* | tar xfv -
cd wine*
wget -O "xinput2.patch"  http://bugs2.winehq.org/attachment.cgi?id=31863
patch -p1 < xinput2.patch
./configure
make
sudo make install
winecfg


- In the upcoming window goto libraries
- In 'New override for library' look for 'quartz' and click on the 'Add' button.
  Now click on 'Edit' and select 'Builtin (Wine).
  Then look for 'mmdevapi', add it, click on edit and set it to 'disabled'
- Close winecfg ('Ok')

Now you should be able to run the m&b setup like on windows. After the install
just run it from the installation directory or from the desktop link.
Test if it works. if you have performance problems, try the following additional steps:


cd ~/.wine
wget http://www.kegel.com/wine/winetricks
sudo chmod +x ./winetricks
./winetricks d3dx9
wine regedit


- Open the key 'HKEY_CURRENT_USER\Software\Wine'
- Add a new key 'Direct3D'
- In this new key add the following strings:
  “DirectDrawRenderer”=”opengl”
  “Nonpower2Mode”=”repack”
  “OffscreenRenderingMode”=”fbo”
  “RenderTargetLockMode”=”auto”
  “UseGLSL”=”readtex”
  “VertexShaderMode”=”hardware”
  “VideoDescription”=”NVIDIA GeForce 8400 GS”  (Change this to your current Graphics card setting)
  “VideoDriver”=”nv4_disp.dll”
  “VideoMemorySize”=”500″  (Use your current video memory size)
 
  For ATI GPU use : "VideoDriver"="ati2dvag.dll"
 
Thallian said:
So, I tried to describe the whole process. It makes mainly use of the terminal (all commands in italics takes place in the terminal). I can't guarantee that it will work, just ask when you have questions. I also want to point out that I am not really an experienced Linux user, so maybe I do things plan wrong. Any help from more advanced users is highly appreciated =)

Open a terminal and run the following commands.
Not all of the packages in the first command are
necessary for warband but this way you are sure to have all of the stuff (except OpenCl). In my opinion it should work with just
the packages till 'libopenal-dev', so if you want to reduce the downloadsize just remove the ones you don't want.


sudo apt-get install gcc flex bison libxi-dev libfreetype6-dev libgl1-mesa-dev libopenal-dev libpng-dev libjpeg-dev libxslt-dev  libxrender-dev prelink libldap-dev libmpg123-dev libtiff-dev libgsm1-dev libcapi20-dev liblcms-dev libgphoto2-dev libv4l-dev libsane-dev libgnutls-dev libxrandr-dev libxcomposite-dev libxinerama-dev libXxf86vm-dev libxcursor-dev libcups2-dev libfontconfig-dev libgstreamer0.10-dev libclutter-gst-0.10-dev libncurses-dev libhal-dev libglu-dev libssl-dev
cd Downloads
wget http://prdownloads.sourceforge.net/wine/wine-1.3.10.tar.bz2
bzip2 -cd wine* | tar xfv -
cd wine*
wget -O "xinput2.patch"  http://bugs2.winehq.org/attachment.cgi?id=31863
patch -p1 < xinput2.patch
./configure
make
sudo make install
winecfg


- In the upcoming window goto libraries
- In 'New override for library' look for 'quartz' and click on the 'Add' button.
  Now click on 'Edit' and select 'Builtin (Wine).
  Then look for 'mmdevapi', add it, click on edit and set it to 'disabled'
- Close winecfg ('Ok')

Now you should be able to run the m&b setup like on windows. After the install
just run it from the installation directory or from the desktop link.
Test if it works. if you have performance problems, try the following additional steps:


cd ~/.wine
wget http://www.kegel.com/wine/winetricks
sudo chmod +x ./winetricks
./winetricks d3dx9
wine regedit


- Open the key 'HKEY_CURRENT_USER\Software\Wine'
- Add a new key 'Direct3D'
- In this new key add the following strings:
  “DirectDrawRenderer”=”opengl”
  “Nonpower2Mode”=”repack”
  “OffscreenRenderingMode”=”fbo”
  “RenderTargetLockMode”=”auto”
  “UseGLSL”=”readtex”
  “VertexShaderMode”=”hardware”
  “VideoDescription”=”NVIDIA GeForce 8400 GS”  (Change this to your current Graphics card setting)
  “VideoDriver”=”nv4_disp.dll”
  “VideoMemorySize”=”500″  (Use your current video memory size)
 
  For ATI GPU use : "VideoDriver"="ati2dvag.dll"

ok! I will try it.
Old wine i must to delete i think?
 
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for cpp... cpp
checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

I have 64-bit Ubuntu , maybe error about it?
 
Oh s***, just realised I recently changed my system architecture to x86, so thats why it worked for me. I think you need to build wine with 32-bit compatibility packages. But as at the moment I have no access to a x64 system it is not easy for me to help you there. When I find the time I will setup a x64 system and try to build wine on it.
If you manage to get the compatibility packages then maybe the rest will run fine, but thats just an assumption.
I am really sorry that I forgot about that :oops:

Maybe we should communicate through pms so that we don't spam the thread?

EDIT: try to use 'sudo apt-get build-dep wine' as the first command
 
Thallian said:
Oh s***, just realised I recently changed my system architecture to x86, so thats why it worked for me. I think you need to build wine with 32-bit compatibility packages. But as at the moment I have no access to a x64 system it is not easy for me to help you there. When I find the time I will setup a x64 system and try to build wine on it.
If you manage to get the compatibility packages then maybe the rest will run fine, but thats just an assumption.
I am really sorry that I forgot about that :oops:

Maybe we should communicate through pms so that we don't spam the thread?

ok!!!
 
Full manual for 64-bit Ubuntu, by Thallian and tested by me!
I ask for adding it in 1st post!

sudo apt-get install gcc flex bison libxi-dev libfreetype6-dev libgl1-mesa-dev libopenal-dev libpng-dev libjpeg-dev libxslt-dev  libxrender-dev prelink libldap-dev libmpg123-dev libtiff-dev libgsm1-dev libcapi20-dev liblcms-dev libgphoto2-dev libv4l-dev libsane-dev libgnutls-dev libxrandr-dev libxcomposite-dev libxinerama-dev libXxf86vm-dev libxcursor-dev libcups2-dev libfontconfig-dev libgstreamer0.10-dev libclutter-gst-0.10-dev libncurses-dev libhal-dev libglu-dev libssl-dev
cd Downloads
wget http://prdownloads.sourceforge.net/wine/wine-1.3.10.tar.bz2
bzip2 -cd wine* | tar xfv -
cd wine*
wget -O "xinput2.patch"  http://bugs2.winehq.org/attachment.cgi?id=31863
patch -p1 < xinput2.patch

sudo apt-get build-dep wine  (если у вас 64 битная система)

./configure
make
sudo make install
winecfg

- In the upcoming window goto libraries 
- In 'New override for library' look for 'quartz' and click on the 'Add' button.
  Now click on 'Edit' and select 'Builtin (Wine).
  Then look for 'mmdevapi', add it, click on edit and set it to 'disabled'
- Close winecfg ('Ok')

Now you should be able to run the m&b setup like on windows. After the install 
just run it from the installation directory or from the desktop link.
Test if it works. if you have performance problems, try the following additional steps: 


cd ~/.wine
wget http://www.kegel.com/wine/winetricks
sudo chmod +x ./winetricks
./winetricks d3dx9
wine regedit

- Open the key 'HKEY_CURRENT_USER\Software\Wine'
- Add a new key 'Direct3D'
- In this new key add the following strings:
  “DirectDrawRenderer”=”opengl”
  “Nonpower2Mode”=”repack”
  “OffscreenRenderingMode”=”fbo”
  “RenderTargetLockMode”=”auto”
  “UseGLSL”=”readtex”
  “VertexShaderMode”=”hardware”
  “VideoDescription”=”NVIDIA GeForce 8400 GS”  (Change this to your current Graphics card setting)
  “VideoDriver”=”nv4_disp.dll” 
  “VideoMemorySize”=”500″  (Use your current video memory size)

  For ATI GPU use : "VideoDriver"="ati2dvag.dll"
 
Hey,

I spent the last two day trying to get Warband running smooth with Wine and today I finally made it, it all works, thanks for the tutorial (:
But however, i got some Perfomance Issues, wich i didnt have in Windows.

So I tried everything i could find, but that hasnt really helped, so I saw that a lot of people say they have higher framerates with Directx7 mode, so I wanted to try it.
But i have no Mode to choose in the Launcher Configuration Menu o.o
I can only choose blood,cheats,version check and language, no directx mode.

Is that because my Installation of Wine has no Directx 7? I installed it just like in the Tutorial above.
But there is no Directx7 libary.

And if thats the Problem, then how do I install Directx 7? I googled a lot but I couldnt find anything to this subject.

I hope somebody here can help me with my Problem. (:
 
http://muladin.mu.funpic.de/Bildschirmfoto.png

Normally the DirectX7 Option is in the Launcher ==> Configuration ==> Video ==> Render Option.
I don't know, but i can remember that in the INgame options is a option for DirectX7 too.
 
Well for me it looks like this http://www.imagebanana.com/view/ovafqrl2/Bildschirmfoto3.png

But thats only in Linux, when I start it in Windows its just like its on your Screen.
Could that be an "Error" of Wine? And if it is, how do I fix it? I would really like to try it with Directx 7.


edit: Okay, allowing the Window Manager to take control has solved the problem o_O

edit2: Okay, well i believe directx 7 may helped a little, but i still have huuuge perfomance issues, its really no fun to play.. i have done everything i read so far (The perfomance tips in the guide above, directx 7 mode, graphic settings to the lowest ) still i cant even fight like 50v50 without laggs, siege's are totally unplayable.

It's been some time but I do remember that it ran a lotttt better on Windows, but there are people that say it runs even better in Wine than in XP, so why's that?
Is anyone here who has some tips for me? I really want to play that game..
 
Dilettante said:
I uploaded my rebuilt library, if someone is interested:
- http://smwk10.1fichier.com/dinput.dll.so.tar.gz - lib32
- http://8qhwln.1fichier.com/dinput.dll.so.tar.gz - lib64
Since Wine 1.3.12 (possibly 1.3.11 - not tested) that patch doesn't work anymore, possibly the libraries as well. I modified it to work with this version:
http://glb-b5.cjoint.net/get/y4t629/Patch_warp_mouse.patch

To apply it: extract the wine source, rename the 'wine-<version>' directory simply to 'wine' and apply it from the directory where it was extracted with `patch -Np0 -i Patch_warp_mouse.patch` then build Wine normally.
---

The libraries built by me:
32bit: http://glb-b4.pjointe.com/get/11v4fd/dinput.dll.so
64bit: http://glb-b4.megadl.fr/get/m9bnxq/dinput.dll.so
 
Vornne said:
With recent versions of wine like 1.3.12, as long as you have a recent version of X, use the XInput2 patch rather than any mouse warp patches; it's much better - almost like how it works in windows.
Thank you for the info, I'm now building Wine with this patch and test. Note that the correct patch for the latest versions is: http://bugs.winehq.org/show_bug.cgi?id=6971#c434
---

However, I will leave the other solution in place, in case this fix won't work for some people, like when their distro uses an older Xorg or if they don't know/want to patch and build Wine - this xinput modification seems to affect more than just one dll.
 
Can anyone give me a hand plz? im trying everything to get it to run but the exe wont run warband, i installed it with win and everything but when i click warband.exe.....just nothing..
 
Back
Top Bottom