Wednesday, June 4, 2008

Stubbs the Zombie on Linux

Stubbs the Zombie is plagued with a dinput bug in WINE that causes the mouse to move off the window. There is a patch that fixes this, but because of where the bug is, it could possibly break many other apps by fixing it for just a few games that are affected by this bug (like Rainbow Six: Raven Shield, Lineage II, Postal 2, etc...)

Here is how to fix it. You first need to get the patch:


You then need to build the dependencies for WINE and get the sources:

sudo apt-get build-dep wine

Once you have the sources, untar them, then patch WINE with the mouse patch.

untar xvjf wine-1.0-rc3.tar.bz2
cd wine-1.0-rc3/
patch -p0< ~/stubbs.patch

Now, we build WINE. This will take a while (like 45 minutes on my machine). Go grab some food or run some errands:

make depend && make

Once that is done, you can install it your newly built WINE. You have to uninstall any other WINE installations:

sudo apt-get remove --purge wine
sudo make uninstall
sudo make install

Now, you have to start Stubbs the Zombie with WINEFORCEWOUSEWRAP (I play Stubbs through Steam, but it is the same for the standalone game, I am sure)

cd ~/.wine/drive_c/Program\ Files/Steam
WINEFORCEMOUSEWARP=yes WINEDEBUG="-all" wine steam.exe

You should now have a fully functioning Stubbs the Zombie! Rock!

No comments:

Post a Comment