[1.2] Trying to run MAFIA II under wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Blink182br
Newbie
Newbie
Posts: 4
Joined: Mon Jul 07, 2008 5:24 am

[1.2] Trying to run MAFIA II under wine

Post by Blink182br » Thu Aug 12, 2010 9:16 am

I'm trying to run MAFIA II under wine...

but I'm getting this error:

Code: Select all

fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 53 (SPI_SETTOGGLEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 51 (SPI_SETFILTERKEYS)
fixme:userenv:GetUserProfileDirectoryA 0xcc 0x32f157 0x32f15c
fixme:userenv:GetUserProfileDirectoryA 0xcc 0x1fb4378 0x32f15c
err:secur32:SECUR32_initSchannelSP libgnutls not found, SSL connections will fail
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 180, std (d/m/y): 0/00/0000, dlt (d/m/y): 0/00/0000
fixme:win:EnumDisplayDevicesW ((null),0,0x32df08,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32e224,0x00000000), stub!
Failed to load ADL library
fixme:wtsapi:WTSRegisterSessionNotification Stub 0x50124 0x00000000
fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats
fixme:d3d:debug_d3dformat Unrecognized 1280070990 (as fourcc: NULL) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(1280070990) in the format lookup table
wine: Unhandled page fault on write access to 0x6d3361d6 at address 0x71bd6b14 (thread 0047), starting debugger...
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7ef90418
wine client error:16: write: Descritor de arquivo inválido
what this line means?

Code: Select all

wine client error:16: write: Descritor de arquivo inválido
Thanks[/code]

Blink182br
Newbie
Newbie
Posts: 4
Joined: Mon Jul 07, 2008 5:24 am

Post by Blink182br » Thu Aug 12, 2010 9:18 am

Ops, the last line is in portuguese, in english is "Bad file descriptor"

User avatar
trivodata
Newbie
Newbie
Posts: 3
Joined: Thu Aug 12, 2010 5:13 pm
Location: München
Contact:

Console

Post by trivodata » Thu Aug 12, 2010 5:24 pm

try to run it in your console - working (at my configuration)

Dchinghiz
Newbie
Newbie
Posts: 1
Joined: Mon Sep 27, 2010 5:52 am

Post by Dchinghiz » Mon Sep 27, 2010 5:54 am

:(

Doesn't work for me. What did you do to make it work?

Kairhos
Level 2
Level 2
Posts: 10
Joined: Mon Dec 07, 2009 1:04 pm

Post by Kairhos » Tue Sep 28, 2010 9:29 am

I just played through the whole game (Mafia 2) last week.

-To stop it from crashing at initialisation, you have to navigate to '.wine/drive_c/users/yourusername/Local Settings/Application Data/2K Games/Mafia II/Saves' (substitute 'yourusername' for your username) and open the videoconfig.cfg file in a text editor. It should contain a line like this (when you first open it): ' 24 24 1024 768 0 0 0 1'.
Change everything, except for the resolution, to 0, so that it looks like this: '0 0 1024 768 0 0 0 0'. Save the file and the crashing should be fixed.

-To get the sound working, open winecfg and disable mmdevapi in the libs tab.

-To make the game playable (performancewise) set Physx to off in the in-game graphics options menu and set 'UseGLSL' to 'disabled' using regedit.

After that you should be able to play Mafia 2. I got a constant 25 FPS with my GTX285 and wine-1.3.3.

goldsteal
Newbie
Newbie
Posts: 2
Joined: Sat Dec 04, 2010 12:28 pm

[Mafia II] I am trying it but ...

Post by goldsteal » Sat Dec 04, 2010 2:23 pm

Hello guys !

I am totally new to Wine but I have to admit that I thought there would be more problems with it - a lot of he things I tried so far worked pretty well.

A few hours ago I tried to install Mafia II ...
Done. So far...

Then I of course wanted to play but now the Mafua II doesn't ask me to install Physx -which is good- and then it fails. I couldn't even the main menu.

I know that in the AppDB it is rated is "trash" or "bronze" - so I googled and found this thread. Kairhos for you it worked though ... Any ideas what I could try in addition to the workarround mentioned in your post?

Btw.: Operating System: Ubuntu 10.10 Maverick Meerkat | wine version: Wine 1.3

Greetings,
Goldsteal - A complete noob ...

Kairhos
Level 2
Level 2
Posts: 10
Joined: Mon Dec 07, 2009 1:04 pm

Post by Kairhos » Thu Dec 09, 2010 10:02 am

You could try installing PhysX using winetricks instead. You need PhysX for the game to start (even if you plan on disabling it afterwards).

Lukash
Newbie
Newbie
Posts: 1
Joined: Mon Feb 07, 2011 12:11 pm

Post by Lukash » Mon Feb 07, 2011 12:14 pm

Hello to everybody!
I finally managed to launch Mafia II on my Ubuntu 10.10 64bit - Steam version thanx to Kairhos. I was not able to do so earlier.
But, If I try to launch new game, it gets stuck. Any ideas? Thanks

Locked