Mass Effect Tips

Patch wine to get a fully working mouse in Mass Effect and CXG Linux 8.1.4

Mass Effect, through Steam, has only one problem on CXG Linux 8.1.4 (and on Mac too, apparently): the mouse. And here is how to fix it (this is entirely based on Exile's post, thanks, Exile!).

(You can also try downloading the precompiled binaries, at the end of the post.)


  1. Download the wine source code
  2. Download the patches (click the links and go File -> Save As):
  3. The original dinput.diff no longer works on wine 1.1.35 (the latest as of post date), so I've created a modified version.

  4. Install the compilers and the patcher. On Ubuntu, open a terminal and type:
  5. sudo apt-get install build-essential patch
  6. Install the wine dependencies. The wine wiki was pretty helpful: Recommended Packages
  7. Extract the source code. In a terminal, go to the folder where you downloaded the tarball and:
  8. tar jxvf wine-{version}.tar.bz2
    cd wine-{version}
    
  9. Copy the diff files into the wine-{version} folder.
  10. Patch the files. From the terminal in wine-{version} folder:
  11. patch -p1 < winex11.drv.diff
    patch -p1 < dinput.dll.diff
    

    If you stuck to the original dinput.diff, now is the time to finish the patch by hand.

  12. Compile. Wine comes with its own wineinstall tool, which compiles and installs wine, but you probably don't want to install and extra version of wine. So we'll compile only the parts we need with the following commands:
  13. ./configure (or ./configure --without-freetype, see paragraph below)
    cd dlls/dinput
    make depend
    make
    cp dinput.dll.so {MassEffectFolder}/Binaries/dinput.dll
    cd ../winex11.drv
    make depend
    make
    cp winex11.drv {MassEffectFolder}/Binaries/winex11.drv
    

    A note on configure: I could not run it successfully in amd64 because there where no 64-bit libraries for freetype, or something like that. So I had to configure without freetype. There's probably all sorts of options that this compilation doesn't need, actually, but I haven't figured them out. The ./configure command will be the most time consuming, but should take only a couple of minutes.

    Naturally, all commands should exit successfully.

    Your {MassEffectFolder} should be in /home/{user}/.cxgames/{bottle}/drive_c/Program Files/Steam/steamapps/common/mass effect/ (pheww!).

  14. Run Mass Effect and enjoy!

Precompiled amd64 Binaries (ubuntu karmic, wine 1.1.35)

Precompiled i686 Binaries (ubuntu karmic, wine 1.1.35)


by Alejandro Moreno on 2010-01-06 23:19:55
Important Information Tips are provided by the CrossOver Community and Advocates. They are not intended to be used for official CodeWeavers Support. For that, please visit our official support pages.
CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzM0NzIyMzMzLCJjc3JmX3Rva2VuIjoiUXg4SEhoRUFWSmd6eU1hWCIsImdkcHIiOjB9