Showing posts with label wine. Show all posts
Showing posts with label wine. Show all posts

Sunday, April 11, 2010

Fable the last chapters under wine

Hi Everyone,

So I am attempting to set up fable using wine v 1.1.37. During the install, I get the error message "Error loading the PID generator DLL. The DLL could not be found!".

To fix, get the winetricks script.


wget http://www.kegel.com/wine/winetricks


Then, we need to run the script to install MFC42 package.


winetricks vcrun6


And voila, the installer runs no problem

Saturday, April 10, 2010

Oblivion in Wine : Bypass Securom

Installing Oblivion under linux wine Ubuntu



Attempting to install oblivion in linux to run under wine causes some problems for me. The problem is securom, or saferom. When you attempt to install oblivion under wine (I am using Ubuntu) the installer fails. We need to find a method to bypass securom so we can use wine to play the game.

Since the install files are ultimately just tucked away inside some cab files, installation without using the actual installer is possible. All you have to do is use a tool called "Unsheild".

Users who are using playonlinux should still be able to use this guide, and install the game. Later use playonlinux to actually run the game.

What you will need to set up Oblivion



You will only need an open terminal and an ISO version of the disk. You could try this method with the DVD itself in the drive.

Mounting the ISO



I had to try this method in my attempt to install oblivion from some ISOs I had saved on my hard drive. What I ended up doing was mounting the ISO to my cdrom mount point:


sudo mount -o loop /path/to/oblivion.iso /media/cdrom


replacing /path/to/oblivion.iso with the path to the actual ISO file.

Setting up Unsheild



Then you need to install "Unsheild"


sudo apt-get install unsheild


Installing Oblivion



Then you run the command to "install" the game


unshield -d /path/to/install/to x /media/cdrom/data1.cab


replacing /path/to/install/to with the path you wish to install the game. This will extract all the cab contents to the specified folder.

Running the Game



Next we run the game


wine /path/to/install/to/Oblivion/OblivionLauncher.exe


Enjoy!

Tuesday, February 23, 2010

Compiling wine with processor optimizations

Hi everyone,

Just thought I would show you all a quick trick to compile wine to be as fast as it can be!

You need to look into your compiler (GCC) and which flags it will support for your processor. Since I have an AMD Phenom II, I used -march=amdfam10 for GCC.

Here is a link where you can find out which -march to use :

http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD

Note that link is for AMD not sure where intel info is.


CFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
export CFLAGS
export CXXFLAGS
./configure --disable-test
make depend && make
sudo make install


And we're done!

Thursday, February 11, 2010

Mass Effect 2 Runs in Wine in Ubuntu Linux

Mass Effect 2 using Linux in Wine



Get Wine



So I got mass effect 2 working in wine. Man is it a great game. To get it to work in wine:

go here and download wine (latest version as of now 1.1.38) http://sourceforge.net/projects/wine/files/Source/wine-1.1.38.tar.bz2/download

(note I would recommend 1.1.38 if you want to use the patches below)

extract and enter the directory in the terminal. Now we need to run the configure script:

./configure


Or to speed up compilation:

./configure --disable-tests


Which will skip compiling the wine test suite which generally you won't need.

Patching



Two patch files are located at:
http://bugs2.winehq.org/attachment.cgi?id=15638 for the mouse warping

http://bugs.winehq.org/attachment.cgi?id=26032 for crashes (I didnt seem to need this patch)

Next, you will need to apply some patches. There is one for crashing, and another to fix the mouse warping. I don't have these on hand at the moment. I couldn't get my mouse warping to work properly, so I edited mouse.c under dlls/dinput/ and made it so mouse button 3 would toggle mouse warp (on / off) which is a pain but makes the game more playable. To apply patches to a source, under the source tree, type:

#patch -p1 < NAMEOFPATCHFILE


Afterwards you can compile as shown below.

Compile


Ensure that you have XML support compiled in, as well as openal. You can determine this through the final output of the configure script. If you don't have the xml and openal dev packages, install them with your favourite package editor.


make
sudo make install


Again, an interesting way to speed up compilation on a multi core machine is to use:


make -j 4
sudo make install


You can replace "-j 4" with the number of processors you have (I have a quad core).

Finally



now run "winecfg" and set up a virtual desktop (I have to using nvidia latest binary driver geforce 9600).

Also, we need to install packages with winetricks to get this to work


wget http://www.kegel.com/wine/winetricks
sh winetricks d3dx9 d3dx10 vcrun2005 physx


Now run the installer, and finally run the game. I am able to play on full settings with 1900x1080 resolution :D

Enjoy!