Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mass Effect 2 on Gentoo - works!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
kollapse
n00b
n00b


Joined: 24 Jul 2009
Posts: 14
Location: Brasov, Romania

PostPosted: Fri Feb 05, 2010 8:21 am    Post subject: Mass Effect 2 on Gentoo - works! Reply with quote

With great joy in my heart I am happy to announce that Mass Effect 2, just like the first game, works very well on Linux (via wine):

http://i67.photobucket.com/albums/h299/VMAN-Vercetti/me2.jpg

A little mouse warping problem (resolvable with patch), some strange-looking (but not ugly) shaders and a little below-average FPS now and there are all the problems I have encountered.

For this you have to set the following via the registry:


HKEY_CURRENT_USER\Software\Wine\Direct3D
"OffscreenRenderingMode"="fbo"
"PixelShaderMode"="enabled"
"UseGLSL"="enabled"
"VertexShaderMode"="hardware"
"VideoMemorySize"="896"

This resolves mouse warping issues but makes menu navigation using mouse impossible.

HKEY_CURRENT_USER\Software\Wine\DirectInput
"MouseWarpOverride"="force"

Make sure to do sh winetricks d3dx9 d3dx10 vcrun2005 physx

For optimum performance (you'll need it), disable any compositing (running the game without a WM/DE is best) and use WINEDEBUG="-all"
_________________
"Faith is the strength by which a shattered world shall emerge into the light." ~ Helen Keller
Back to top
View user's profile Send private message
judyderkeithal
n00b
n00b


Joined: 10 Feb 2010
Posts: 1

PostPosted: Thu Feb 11, 2010 5:07 am    Post subject: Reply with quote

Nice, my Xbox360 red-ringed again few months ago so I was going to have to either get another or get Mass Effect 2 for my desktop

:D
_________________
james prevette
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 157

PostPosted: Sat Feb 13, 2010 6:40 pm    Post subject: Reply with quote

Mass Effect 2 has been rather frustrating for me because of the mouse issues.

It seems I cannot navigate the menus at all with the mouse warping. I can select menu items with the arrow keys on the keyboard, but after making my selection pressing ENTER etc has no effect. I know no way other than clicking on them to advance past the menus, so I cannot begin playing the game with mouse warping on.

At http://appdb.winehq.org/objectManager.php?sClass=version&iId=19125&iTestingId=48873 they describe a few different patches to address this issue. Not one of them worked for me. I think someone is misreporting what version of WINE they successfully used with these patches. Several of the comments seem to be speaking of an older version of WINE and for me, not one of the mouse-warp patches worked. The most-cited one just disabled mouse warping for me entirely, instead of disabling it only for the menus.

So for now, this is a situation where I can painstakingly follow all instructions perfectly, and it still doesn't work. Anyone have a solution?
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 157

PostPosted: Sat Feb 13, 2010 6:58 pm    Post subject: Reply with quote

Update (that was quicker than I thought!): I finally got this to work correctly.

This is with WINE version 1.1.38. I have applied the following two patches to the source code:

http://bugs.winehq.org/attachment.cgi?id=26032

That one fixes the frequent crashes. And...

http://bugs2.winehq.org/attachment.cgi?id=15638

That one corrects the mouse issues. Basically it makes mouse warping wait until the cursor is closer to the edge of the screen, where normally it hardly deviates from the center.

Both of those did not work for me before. There was one other change I had to make before that mouse-warp patch had any effect. I had to DISABLE WINE's virtual desktop and configure the game (through its in-game menus) to run in Windowed Mode. Then and only then did mouse warping work correctly.

Previously I was running the game in full-screen mode but with WINE's virtual desktop so that it was not actually full-screen. This never caused problems for me with other games, like the original Mass Effect or Fallout 3. Then I switched the game to windowed mode, but neglected to disable WINE's virtual desktop. This also never caused problems for me before. Yet in both cases, it had the effect of totally disabling mouse warping no matter what registry settings or environment variables (i.e. running it as "WINEFORCEMOUSEWARP=yes wine MassEffect2.exe") were set.

I hope this can save somebody all the time I took trying a patch, recompiling WINE source, wash, rinse, repeat. No other forum, including winehq.org, seems to mention (or I failed to find it) that the virtual desktop has an effect on whether the mouse patch works correctly.
Back to top
View user's profile Send private message
kollapse
n00b
n00b


Joined: 24 Jul 2009
Posts: 14
Location: Brasov, Romania

PostPosted: Sat Feb 13, 2010 7:49 pm    Post subject: Reply with quote

If anyone still has problems with the mouse, there is a guaranteed fix with this patch: http://bugs2.winehq.org/attachment.cgi?id=19267

It was originally made to fix Mass Effects 1's mouse issues but works just as great with the second installment. Please note that it may break other games.
_________________
"Faith is the strength by which a shattered world shall emerge into the light." ~ Helen Keller
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1427

PostPosted: Sun Feb 14, 2010 11:43 am    Post subject: Reply with quote

Oooh, nice :D

Does the copy protection need 'dealing with' or does it just 'work'?
Back to top
View user's profile Send private message
kollapse
n00b
n00b


Joined: 24 Jul 2009
Posts: 14
Location: Brasov, Romania

PostPosted: Sun Feb 14, 2010 1:01 pm    Post subject: Reply with quote

Cyker wrote:
Oooh, nice :D

Does the copy protection need 'dealing with' or does it just 'work'?


It needs, well, to be dealt with... you know how.
_________________
"Faith is the strength by which a shattered world shall emerge into the light." ~ Helen Keller
Back to top
View user's profile Send private message
Dorsai!
Apprentice
Apprentice


Joined: 27 Jul 2008
Posts: 239
Location: Bavaria

PostPosted: Wed Feb 17, 2010 6:45 pm    Post subject: Reply with quote

I've trouble installing the thing.
At the point where the setup asks for disc two nothing happens.
I can press retry but it doesn't see the inserted and mounted (same folder /mnt/cdrom) disc 2.

I called the Setup with
Code:
WINEPREFIX=~/.wine/ME2 /home/dorsai/bin/wineME2/bin/wine E:/Setup.exe


Edit: Found a way.
Basicly both Discs had to be in a Drive and mounted when I started the setup.
I made an .iso image of one of the DVDs and mounted it via cdemu. There are several other ways that should get the same result.
Back to top
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Wed Feb 17, 2010 7:48 pm    Post subject: Reply with quote

Dorsai! wrote:
I've trouble installing the thing.
At the point where the setup asks for disc two nothing happens.
I can press retry but it doesn't see the inserted and mounted (same folder /mnt/cdrom) disc 2.

I called the Setup with
Code:
WINEPREFIX=~/.wine/ME2 /home/dorsai/bin/wineME2/bin/wine E:/Setup.exe


Edit: Found a way.
Basicly both Discs had to be in a Drive and mounted when I started the setup.
I made an .iso image of one of the DVDs and mounted it via cdemu. There are several other ways that should get the same result.


Another solution is to just copy the contents of both discs to the hard drive into the same directory.
For those of us who don't have two disc drives, this is a good solution.

The .iso one sounds good though, and I've never thought of it.
Back to top
View user's profile Send private message
arterius
n00b
n00b


Joined: 03 Nov 2006
Posts: 39

PostPosted: Wed Feb 17, 2010 8:03 pm    Post subject: Reply with quote

A simpler way is to use:
Code:
wine eject


Took me a while to find it but the way around it with isos of the disks works well too.
Back to top
View user's profile Send private message
Dorsai!
Apprentice
Apprentice


Joined: 27 Jul 2008
Posts: 239
Location: Bavaria

PostPosted: Wed Feb 17, 2010 9:27 pm    Post subject: Reply with quote

arterius wrote:
A simpler way is to use:
Code:
wine eject


Took me a while to find it but the way around it with isos of the disks works well too.


I didn't even know something like that existed... Thanks!

Edit: Another Problem: I couldnt install the DLCs (Installer always crashed before doing anything) so I copied them over from my Windows Installation. Now it says "Unauthorized DLC Log in into Cerberus and buy the DLCs" :roll:

Any Ideas?
Back to top
View user's profile Send private message
ChrisJumper
Veteran
Veteran


Joined: 12 Mar 2005
Posts: 1636
Location: Germany

PostPosted: Thu May 27, 2010 1:39 pm    Post subject: Reply with quote

Dorsai!

For the Download-Contend there is a hint on the wine Page:

Quote:
DLC for Mass Effect 2 seems to work okay. You need an EA account & Bioware account. You have to link your bioware account to your EA master account.

When done, you can login to http://social.bioware.com/user_entitlements.php and download the content manually.

I have tested the Inferno Armor, Blood Dragon Armor, Zaeed - The Price of Revenge (Cerberus Network), Normandy Crash Site (Cerberus Network).

Launch the installer in the wineprefix you have Mass Effect 2 installed, the installer will fail (for me) at cleaning up the install. It is safe to kill the install process.

Once you have started Mass Effect 2, login to the Cerberus Network with your EA account and the DLC will be authorised (you may get a warning the first time)


So i bought this game today too, and hope it will work :)

Edit: After few Minutes during the installation Prozess, the game take much time to "create" the Setteings. So don't give up to wait, relaunch the game, and edit the Configuration-Files as describe in the wine application database.

The Game is amazing! Thank you for that hint. I still would give the game with wine a silver state. But the game itself impress me. It seems so large and the story-line is non linear. The first time i thought.. oh yea.. with wine it looks hmm.. bad. Since other UT3-Engine Games are nearly unplayable with wine (Mirrors Edge, Unreal Tournament 3) i thought its the same here with (some) missing textures.. but i didn't found one. I just miss anti aliasing, the blur and the focus/deep-of-field-effect. In game i play with the lowest detail level, but its still the "best i saw on my gentoo box".

Its just sad that i can't play this with my gamepad.

About Mass Effect - the first game. Did it run like Mass Effect 2? In the wine games database it just had a bronc ranking.. and before i spent 20 € for it i will ask you if its worth?
Back to top
View user's profile Send private message
Dorsai!
Apprentice
Apprentice


Joined: 27 Jul 2008
Posts: 239
Location: Bavaria

PostPosted: Fri May 28, 2010 8:43 pm    Post subject: Reply with quote

The DLC worked alright after a clean reinstall a few weeks ago. Don't know what the problem was though.

But I still had those weird graphic artifacts. There are some tipps on the wine pages how to get rid of it, but it didn't work for me.
But so far its quite playable now. If I just had the time to do so... :wink:
Back to top
View user's profile Send private message
audiodef
Advocate
Advocate


Joined: 06 Jul 2005
Posts: 4424

PostPosted: Sat Mar 26, 2011 1:51 am    Post subject: Reply with quote

I've gotten it running on my Gentoo box. What exactly is mouse warping? I've noticed that trying to make my Shep turn with the mouse only goes so far before I have to completely turn around the other way to keep turning. Is that it?
_________________
Abused Men: http://abusedmen.org
Seeds Mirror: http://kernel-seeds.audiodef.com
Postfix/Cyrus Howto: http://bit.ly/dGHQ2E
Pro-Audio on Gentoo: http://audiodef.com/projects.php?project_id=1
Back to top
View user's profile Send private message
ChrisJumper
Veteran
Veteran


Joined: 12 Mar 2005
Posts: 1636
Location: Germany

PostPosted: Sat Mar 26, 2011 5:33 pm    Post subject: Reply with quote

Oh yes this is the thread i memorized.

As the date of my last post here i think i used leeth howto here (scroll down) or to requote it in this forum:

Update: 2011-April Wine and libpng 1.4

Today i try to build wine 1.1.34 to play Crysis1. But the ./configure break cause of hal. So i have to use: ./configure --without-hal.
After that i figure out that i have to change some stuff because the libpng update in the past. there (thanks to Kyle Elbert) i found some small and easy patches to compile the wine source files.

Oh, and for some changes in OpenSSL you have to apply this patch too.
Update-End


Quote:
First, my hardware setup: ~3GHz Core 2 Duo, Geforce 8600GT (512MB), 2GB RAM.

Second, my experience: Had graphical glitches (apparently problems with bumpmapping or decals, I'm not sure) and low fps, but still a good start. Right now with wine-1.1.38 it doesn't seem to work but I will try again later.

commands you have to enter will be written in brackets [].

The Guide:
First a quick guide on how to patch the source for anyone who cares, you will need development packages, maybe it might be good enough to install wine-dev on some distributions to have everything needed.
1. Installation of WINE. Since you need to patch WINE, this is what you have to do:
1.1. Open a Terminal
1.2. Point it to the directory where you want the wine source code to be, let's use ~ for simplicity.
[cd]
1.3. Download a copy of wine-1.1.37 and the patches needed
[wget ibiblio.org/pub/linux/system/emulators/wine/wine-1.1.37.tar.bz2 bugs.winehq.org/attachment.cgi?id=26032 bugs2.winehq.org/attachment.cgi?id=15638]
1.4 Extract and patch the wine source
[tar xjf wine-1.1.37.tar.bz2]
[cd wine-1.1.37]
[patch -p1 < ../attachment.cgi\?id\=26032]
[patch -p1 < ../attachment.cgi\?id\=15638]
1.5 Configure the source
[./configure --prefix=/opt/wine] #This will install WINE in /opt/wine and not overwrite any installation by your distribution
This script will alert you if any dependencies are unavailable, looking in your package manager will turn them up, you need the -dev packages for this to work.
After you are happy with the results:

Lib-png-Update:
Update-PNG-A
Code:
sed -i 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' ./dlls/windowscodecs/pngformat.c

Update-PNG-B
Add png to some Makefiles.in, IMPORTS = uuid ole32 advapi32 kernel32 png:
- dlls/windowscodecs/Makefile.in
- programs/winemenubuilder/Makefile.in

Openssl-patch:
Code:
wget http://pastebin.com/raw.php?i=ighv3ciA && mv raw.php\?i\=ighv3ciA openssl.patch && patch -p1 < openssl.patch


Quote:

1.6 Making wine and installing it
[make depend && make && sudo make install]
1.7 Setting up path
Because wine is installed in /opt/wine we need to adjust $PATH, we can do this user-wide by editing the .bashrc file
[echo "export PATH=$PATH:/opt/wine/bin" >> ~/.bashrc && source ~/.bashrc]
1.8 Testing the path
[which wine]
will tell us where the currently used wine resides, it should be /opt/wine/bin/wine
--
***For those who already have a patched wine installed:
2. Setting up a dedicated wineprefix for Mass Effect 2.
2.1 Creating a wineprefix
[wineprefixcreate --prefix=~/.wine-me2]
2.2 Downloading winetricks
[wget www.kegel.com/wine/winetricks]
2.3 Installing winetricks stuff into the new prefix
[WINEPREFIX=~/.wine-me2 sh winetricks gecko d3dx9 d3dx10 physx vcrun2005]
2.4 Making safe vcrun2005 doesn't get deleted
[chmod -R 0555 ~/.wine-me2/drive_c/windows/winsxs]
2.5 Configure wine settings
[WINEPREFIX=~/.wine-me2 wine regedit]
in regedit you want to enter the Settings from maadogs post, in addition you can look here for other useful settings:
wiki.winehq.org/UsefulRegistryKeys (Setting an audio device can be handy)
2.6 Fixing sound
I ran into this problem and was baffled for hours, until I found out that apparently installing foobar2000 (or probably any other media player which uses direct sound) fixes a buffer underrun. you can get foobar2000 at foobar2000.org (don't forget to install it with the right wineprefix)
Maybe foobar2000 isn't necessary to set the buffer, however it still is a great test tool. if you are experiencing trouble, set DeviceCTLn, DevicePCMn and UseDirectHW as seen in the UsefulRegistryKeys :)
3. Installing Mass Effect 2
3.1 Running Mass Effect 2 Setup (the wineprefix is important I guess)
[WINEPREFIX=~/.wine-me2 wine $CD/Setup.exe]
3.2 Configure Mass Effect 2
The Mass Effect 2 Config is at ~/BioWare/Mass Effect 2/BIOGame/Config/GamerSettings.ini
there are various things you can change here, mine looks basically like this:

[SystemSettings]
ResX=800
ResY=600
BorderlessWindow=False
Fullscreen=True
QualityBloom=False
DynamicShadows=False
LightEnvironmentShadows=True
MaxCharacterCinematicLightingPasses=3
EnableLightEnvSHLights=True
MotionBlur=False
FilmGrain=False
MaxAnisotropy=1
DetailMode=0
DepthOfField=False
bSmoothFrameRate=False

Those are probably not all the settings available and unfortunately they are not all in the config by default.

4. Start Mass Effect 2 :)
4.1 Don't forget to use the right WINEPREFIX:
[WINEDEBUG=-all WINEPREFIX=~/.wine-me2 wine MassEffect2.exe]

I hope this helps anyone who can't piece it together and is comprehendable. :)


Maybe i will try a reinstall with a separate wine Version on Sunday and try to reconfirming that the game still works.

audiodef wrote:
I've gotten it running on my Gentoo box. What exactly is mouse warping?

The Unrial-Tournament-3-Games has often issues with the Mouse in Wine. The best way to describe it is that you have a small-shoe-box instead of a mouse-pad so you get during play at the boxes border during control your mouse and just can reach a small range in the game or on your Desktop. The Mouse-Wrap-Patch solve this issue. (Could be another issue and i mixed it up - so its just failed to warp your mouse and you cant use it without the patch.)
Back to top
View user's profile Send private message
ChrisJumper
Veteran
Veteran


Joined: 12 Mar 2005
Posts: 1636
Location: Germany

PostPosted: Sun Apr 10, 2011 6:10 pm    Post subject: Reply with quote

*Bump-this-thread*

Its not so easy to compile old wine-sources then it should be! Since there are some updates in png and openssl. But i got wine-1.1.34 work again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum