WineHQ

Call of Duty 4: Modern Warfare

Latest version with all patches applied.

Changelog:

- Fixed an exploit that allowed players to access certain console dvars during multi-player matches.
- Fixed a crash that could occur when a Chinatown Sabotage match would go into over-time.
- Fixed a bug where the MP icons (Bomb, Defend, Capture, etc) were always showing up as English regardless of the install language.

Call of Duty 4: Modern Warfare v1.6 patch is required.

Application Details:

Version: 1.7
License: Retail
URL: http://charlieoscardelta.com/
Votes: 55
Latest Rating: Gold
Latest Wine Version Tested: 2.9-staging

Maintainers: About Maintainership

Test Results

Old test results
The test results for this version are very old, and as such they may not represent the current state of Wine. Please consider submitting a new test report.
Selected Test Results

What works

-Singleplayer
-Multiplayer
-Server

What does not

-

Workarounds

What was not tested

-

Hardware tested

Graphics:

  • GPU:
  • Driver:

Additional Comments

You should use Wine-Staging with CSMT activated. Otherwise there are graphical issues.

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
CurrentDebian GNU/Linux 9.x "Stretch" x86_64Jun 05 20172.9-stagingN/A Yes GoldGero 
ShowUbuntu 15.04 "Vivid" amd64 (+ variants like Kubuntu)Apr 09 20161.9.7Yes Yes Goldan anonymous user 
ShowLinux Mint 17.3 "Rosa"Jan 19 20161.9.1Yes Yes GoldBorikeaniya 
ShowUbuntu 14.04 "Trusty" amd64 (+ variants like Kubuntu)Dec 08 20151.7.55Yes Yes Goldan anonymous user 
ShowDebian GNU/Linux 8.x "Jessie" x86_64Dec 06 20151.7.55N/A Yes GoldGero 

Known Bugs

Bug # Description Status Resolution Other apps affected

Show all bugs

HowTo / Notes

How To Make Punkuster Work

Ubuntu HOWTO, by Levo

Wine must be patched in order to make Punkbuster work.

Patches for wine

For wine 1.1.5

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

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

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

Download the Wine Source and patch it

# cd (source folder)

# patch -p1 < (diff-file)

# ./configure

# make depend && make

# sudo su -c "make install"

# sudo checkinstall

(also install all the other required packages e.g.: checkinstall)

 

If you are lucky enough, it may work!

How To Make Call of Duty 4 Play

Ubuntu HOWTO, by Levo

Wine must be patched in order to play CoD4 (up to version 1.1.1) 

Patches for wine

For wine < 0.9.59 (0.9.58 and earlier):

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

For wine 0.9.58-1.0.0:

http://www.bennyp.org/wine/wine-0.9.59-3dmark.patch

For Wine 1.1.0:

http://ubuntuforums.org/showpost.php?p=5286516&postcount=255

For Wine 1.1.1 & 1.1.2:

*UNKNOWN STATE* Testers needed

For Wine > 1.1.3:

No Patch Is Required

Download the Wine Source and patch it (for Wine up to version 1.1.1)

# cd (source folder)

# patch -p1 < (diff-file)

# ./configure

# make depend && make

# sudo su -c "make install"

# sudo checkinstall

(also install all the other required packages e.g.: checkinstall)
HOWTO config Wine and make work COD4 version 1.7 (Wine version 1.1.18)

I play cod4 with the most graphic settings set to high with a minimum of fps of 30 and maximum reached 70. I hope this can help you.

 

 

My Hardware:

- MOBO: Asus P5KSE/EPU

- CPU: Intel Core 2 duo E6600 Conroe

- RAM: 4GB Kingston DDR2 PC2-8500 CAT 5-5-5-15

- GPU: NVIDIA GTX 260 896MB


My Graphic Game settings ingame: all set at maximum except for:

- Synceveryframe: no

- Dual Video Cards: no

- depth of field: no

- soften smoke edges: no


OS: Ubuntu intrepid 8.10 64 bit

Kernel 2.6.27-14.30

My Wine version: 1.1.18

My graphic drivers: Nvidia 180.44 beta (also working with stable 180.29 drivers)

My audio drivers:  alsa drivers 1.0.19 (this version improves a lot fps rate)

 

  1. Install the last version of wine (use the repos you find in the official site www.winehq.org)

  2. Download Winetricks (from console type “wget http://www.kegel.com/wine/winetricks”)

  3. Install with Winetricks the DirectX9 (from console go in the directory where you have downloaded winetricks and then type “sh winetricks directx9”)

  4. Install COD4 and patches until 1.7

  5. run winecfg and set:

    - OS version: Windows XP

    - In 3D settings Vertex Shader Support: Hardware and set Allow Pixel Shader

          - In Audio settings set alsa drivers; Hardware acceleration full; sample rate 44100; bit per sample 16;

            unset driver emulation

  1. on console run “wine regedit” and then:

    - in HKEY_CURRENT_USER-Software-Wine create, if it's doesn't already exists, a new key named Direct3D

    - in Direct3D create the following strings with teh following values:

      string: DirectDrawRenderer          value: opengl

      string: Nonpower2Mode               value: repack

      string: OffscreenRenderingMode   value: fbo

      string: RenderTargetLockMode     value: auto

      string: UseGLSL                           value: readtex

      string: VideoMemorySize              value: (memory size of your graphic card)


Stefano Petullà


Ubuntu 9.04 64 bit
Warning!!! To make it work on Ubuntu 64 bit 9.04 I had to install the latest alsa 1.0.19 drivers

Comments

The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.

CODMW graphics issues resolved w/AMD/ATI Radeon HD7850 after moving from Wine 3.0 to wine-4.0-rc5 on Ubuntu 18.04
by Chris K. on Wednesday January 9th 2019, 23:06
I struggled for days to get Call of Duty Modern Warfare (v1.7.568, installed from DVD and patched from 1.6) working on Wine but saw massive graphics corruption / artifacts, etc. when using the Wine 3 "stable" version with basically a stock installation of Ubuntu 18.04 LTS.
I noticed that these games were highly rated by others on Wine APP DB but I could not figure out what I was doing wrong. After installing the development version, I was very pleased that these graphics issues were resolved and hopefully I won't see them come back. It was not necessary to use any of the special things like winetricks, special DLL Overrides, etc. or custom wine compilation or patches.

I did set up wine to use 32-bit mode ( command "export WINEARCH=win32") (although I'm not sure this is really needed)

I still have some issues getting the game to recognize the DVD so it won't start in Single-player mode but I wanted to let anyone else know that CODMW was not playable under Wine 3.0 due to the massive graphics corruption.
COD WaW works on Ubuntu 18.04 with AMD/ATI Radeon HD7850 after moving from Wine 3.0 to wine-4.0-rc5
by Chris K. on Wednesday January 9th 2019, 22:47
I struggled for days to get Call of Duty Waw (v 1.7.1263 installed from DVD) working on Wine but saw massive graphics corruption / artifacts, etc. when using the Wine 3 "stable" version with basically a stock installation of Ubuntu 18.04 LTS.
I noticed that these games were highly rated by others on Wine APP DB but I could not figure out what I was doing wrong. After installing the development version, I was very pleased that these graphics issues were resolved and hopefully I won't see them come back.
It was not necessary to use any of the special things like winetricks, special DLL Overrides, etc.
Very low FPS only in multiplayer?
by Chris Hemsworth on Friday May 25th 2018, 23:02
Is anyone else having this issue? FPS is very high in single player mode, but in MP it's like 15, even in the main menu. What's up with that? I haven't been able to find any mentions of this problem here or through google.
Runs Great!
by William on Friday December 25th 2015, 15:43
I would recommend vsync for this game, even though the game gets 60fps, it still likes to jump around alot above that.

by higuita on Saturday January 31st 2015, 11:27
The game is unstable, even on windows, when it encounters various problems...

Try checking the microphone, mods files, map, firewall, etc

try to start a multiplayer game locally, then connect to a server with stock map and no mods then with mods, etc, etc
cod4 on a Amd A10 with mesa 10.4.2
by higuita on Saturday January 31st 2015, 11:18
I tried cod4 on wine 1.7.32 and 1.7.35 and the game start fine but there are missing textures, no matter what options or resolution i try. Installing native directx9 also didin't solve the problem. (i open a bug in bugs.winehq.org/show_bug.cgi?id=37989 for this)

Downgraded to thestable version 1.6.2 and the game errors about out of video memory at launch

Using winetricks, i setup the videomemory to 2048M and everything is now working fine. I can enable all options and the performance is still good at full HD (1920x1080)
iw3mp.exe has stoped working
by Ivanbm on Wednesday November 13th 2013, 14:49
Hi all! I install cod4 on my ubuntu 13.10 and everything is ok but when i connect to server may cod4 just freez and sand me an error iw3mp.exe has stoped working. any halp pls and thank you

by embun on Friday November 30th 2012, 6:45
I still cannot open it in my ubuntu :( goo.gl/r8gKs
Patch 1.6 cannot patch
by Patryk on Saturday August 18th 2012, 14:15
I installed the game without a problem under Wine 1.5.10 on Ubuntu 12.04 64 bit but when I try to patch to 1.6 it says :
"The program CoD4MW-1.6-PatchSetup.exe has encountered a serious problem and needs to close. ...."

This is the backtrace pastebin.com/WEh3j6vw

I also have problem launching the originally installed exe - I get this error
"DirectX encountered an unrecoverable error ...."

But I do have d3dx9 and directx9 installed with winetricks.
Cannot Locate DVD-ROM
by Joshua on Sunday March 20th 2011, 21:23
I'm running Ubuntu 10.10. I installed the game and patched it to 1.7 (though oddly enough it wouldn't let me patch 1.6 because it said I already had 1.6 installed o.O) and when I try to run single player, it says "Cannot locate the DVD-ROM. Please insert the correct DVD-ROM, select OK, and restart application." I have the D drive set to the correct place in winecfg, and can hear it reading the disc when I try to start the program.

The terminal gives me the following error:

fixme:mountmgr:harddisk_ioctl unsupported ioctl 70020

(The terminal is filled with this same error over and over again, but I figure it's only useful for me to post it once xD)

Anyone know how to fix this?
RE: Cannot Locate DVD-ROM
by Joshua on Wednesday March 23rd 2011, 8:06
Fixed it. Download the no-disk patch from

m0001.gamecopyworld.com/games/pc_call_of_duty_4.shtml#Call of Duty 4 v1.7 [MULTI] No-DVD/Fixed EXE

Replace the iw3sp.exe in your CODMW folder in Wine with the one from the download, and it should run. If you have a version of COD other than 1.7, make sure you either update to 1.7 or get the no-disk patch for the appropriate version (the one I linked to is specifically for 1.7).
Gameplay video
by Jake ward on Friday August 6th 2010, 6:38
www.youtube.com/watch?v=UVKzpwJaers

Gameplay video of the game running great! WINE FTW
RE: Gameplay video
by Wingnux on Tuesday November 9th 2010, 23:34
How did you record it?
RE: Gameplay video
by Jake ward on Wednesday November 10th 2010, 1:50
i use recordmydesktop :)
no wide screen since wine 1.2 (stable)
by D3liteNL on Wednesday July 28th 2010, 21:36
Hi guys,

I've been playing COD4 a very long time and in all the previous releases I've been able to play on a widescreen resolution [1920x1080]. Since the stable version of wine 1.2 came out I haven't been able to play on widescreen-mode (the game crashes while loading a level and then I get a message which states it might be a DirectX problem, installing DirectX with WineTools wouldn't help)

Anyhow is there a fix for this because running the game on 1400x1050 just isn't so much fun as it is in my max res (I have a blue sidebar since I'm running it in a virtual desktop and it's rather annoying)

Thanks in advance!!!
Error
by Kertis on Wednesday June 30th 2010, 10:37
Hi!!! I have a problem with this game (v1.7) When i start it, i hear only sound, picture don't working. In terminal i got this:
"err:d3d:wined3d_event_query_test Event query created despite lack of GL support
err:d3d:IWineD3DEventQueryImpl_GetData The GL event query failed, returning D3DERR_INVALIDCALL"
----
Config:
Intel Pentium D (2 cpu) 2.8 Ghz
Ati Radeon HD 2400 pro
2 GB RAM
Linux Ubuntu 10.04 (Lucid)
Wine 1.1.42

p.s. sorry for my bad english, i'm from ukraine, so i have some problems, when i try write something
Black screen!
by Emilio on Wednesday June 23rd 2010, 0:59
i had made everything from the instructions above and i get a black screen on the game when i started it i have a ati hd mobility radeon 4500 series.. whats the problem :(
RE: Black screen!
by T.Kijas on Monday July 26th 2010, 1:45
Hi, I have exactly same problem, I have black screen, sound works OK, I can hear sounds from initial videos and I can hear sound when moving the mouse over buttons but thats's all :o/
I tried both wine and playonlinux way
RE: Black screen!
by Mishrito on Thursday January 17th 2013, 19:32
I had exactly the same problem. Black screen with only sounds. I fixed it by installing this library

apps.ubuntu.com/cat/applications/libtxc-dxtn-s2tc0/

That's for ubuntu but I think you can find the package in the repos of other distros as well.
Graphics
by Chris Andrews on Sunday June 20th 2010, 5:03
Smoke / Depth of field / Glow works properly...

Somewhere in this combination, it got fixed.
Linux 2.6.34
NVIDIA 256.35 (I believe .29? it was also fine)
Wine 1.2-rc4
RE: Graphics
by monkeyslayer56 on Sunday June 20th 2010, 11:09
also works with
Linux 2.6.33
nvidia 195.26.15
wine 1.2-rc3
although i have wine patched for something else graphic related that may have caused it in rc3

by Iasen Kostov on Friday June 11th 2010, 20:34
Same here, empty browser. OS is FreeBSD
gamefonts_pc.iwi is missing
by Mark  Ackerman  on Tuesday March 2nd 2010, 11:21
the game won't even start up, it just shows ....gamefonts_pc.iwi is missing .... error

has anyone seen this? It could possibly be because I used a torrent file....hmmmmm?
RE: gamefonts_pc.iwi is missing
by monkeyslayer56 on Tuesday March 2nd 2010, 11:30
first is it missing? mine is just gamefonts_pc and i don't get an error... however if i don't run teh game from its directory i get errors about files missing(wine /path/to/iwmp.exe vs cd /path/to/file wine iwmp.exe) idk might help to play around with that some
RE: gamefonts_pc.iwi is missing
by Mark  Ackerman  on Wednesday March 3rd 2010, 12:03
I don't understand "first is it missing", or perhaps I should say where do I look for it (the gamefonts_pc file)?
RE: gamefonts_pc.iwi is missing
by Mark  Ackerman  on Wednesday March 3rd 2010, 13:48
Ok I have reinstalled it and get the same gamefonts_pc missing error. I have installed it in windows with no problems so it is not the program that's the problem. Here is the cli output if that helps.

ack@linux-26yx:~> env WINEPREFIX="/home/ack/.PlayOnLinux/wineprefix/COD4" wine "C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3sp.exe"
fixme:system:SetProcessDPIAware stub!
fixme:dwmapi:DwmIsCompositionEnabled 0x33cf34
fixme:iphlpapi:NotifyAddrChange (Handle 0xa5be8d8, overlapped 0xa5be8e0): stub
fixme:iphlpapi:GetAdaptersAddresses no support for IPv6 addresses
wine: configuration in '/home/ack/.PlayOnLinux/wineprefix/COD4' has been updated.
fixme:win:EnumDisplayDevicesW ((null),0,0x32f798,0x00000000), stub!
ack@linux-26yx:~> cd /home/ack/.PlayOnLinux/wineprefix/COD4/drive_c/Program\ Files/Activision/Call\ of\ Duty\ 4\ -\ Modern\ Warfare/
ack@linux-26yx:~/.PlayOnLinux/wineprefix/COD4/drive_c/Program Files/Activision/Call of Duty 4 - Modern Warfare> env WINEPREFIX="/home/ack/.PlayOnLinux/wineprefix/COD4" wine "C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3sp.exe"
fixme:win:EnumDisplayDevicesW ((null),0,0x32f798,0x00000000), stub!
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x13b908,0x144170): stub
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x144698,0x144170): stub
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x16fcd0,0x16fa48): stub
fixme:win:EnumDisplayDevicesW ((null),0,0x32f318,0x00000000), stub!
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(1094800211) in the format lookup table
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d_surface:IWineD3DVolumeImpl_LockBox (0xcaef9f8) : pBox=(nil) stub
Terminated
RE: gamefonts_pc.iwi is missing
by Mark  Ackerman  on Wednesday March 3rd 2010, 16:53
OK problem solved. I copied my windows program folder into the wine directory (all 6.4GB) and it runs perfectly with somewhat moderate settings. I also tried it in the playonlinux folder and also had success.
Game doesn't start
by FJA on Saturday November 14th 2009, 12:43
I just installed COD4 on Opensuse 11.0, Wine 1.1.33 ans patched it to 1.7. Game doesn't start, it shows following error message: "Fastfile for zone 'code_post_gfx' is corrupt or unreadable". The file is 100% correct. The same error without any patches. I have NVIDIA GTS 250 card, 185.18.14 drivers. I use integrated Realtek sound card, maybe it's the reason. I have seen many people having this bug, no working solution. Demo works OK.
Crash when beginning to play
by Kevin Robles on Friday November 13th 2009, 14:41
I have tested it with 1.26 and 1.32 Both with and without Directx. The menu works fine, but when I go into New Game, the video introduction works, but I get an error: i37.tinypic.com/fcn3b4.png

Please help!
RE: Crash when beginning to play
by Sam on Sunday November 15th 2009, 7:40
Don't install directx as how it says in the howto instead use d3dx9 if you need to but in later versions of wine you shouldn't need to install dx at all.
RE: Crash when beginning to play
by monkeyslayer56 on Friday January 29th 2010, 18:09
for me running it in a virtual desktop fixed that error
Just a note about the PB section
by LBM on Tuesday October 6th 2009, 15:12
For clarity I think it should be mentioned here that playing CoD4 on servers with PB enabled is a no go. This is due to the API checks that PB does, which will fail when using Wine.

For more information on the issue see:
appdb.winehq.org/objectManager.php?sClass=version&iId=5813
bugs.winehq.org/show_bug.cgi?id=9685
Does this work or not?
by Erik on Sunday October 4th 2009, 10:57
Hi

A friend of mine are trying linux, and wants to play COD4, I know myself that it worked fine in older releases, but does it work now?

What works
Game startup, and opening menus.
Option changes.

What does not
The game itself.

What was not tested
Gameplay

So, in other words, are this broken with 1.1.30?
RE: Does this work or not?
by Erik on Sunday October 4th 2009, 14:44
Forgot to mention that i am asking because the test version here are 1.1.26, not 1.1.30.
Also note that i saw some things in the bug-fixes concerning depth of field.
RE: Does this work or not?
by Temar on Monday October 5th 2009, 12:01
I didn't test multiplayer, but COD4 v1.7 Singleplayer works with wine-1.1.30 on kubuntu jaunty 9.04. Just use winetricks to install the required direct3d libraries and decline the DirectX Installation when asked by the COD4 Installer.

1. Install COD4
2. Patch COD4 to v1.7
3. Install NoCD Crack
4. Download winetricks: wiki.winehq.org/winetricks
5. Execute: /bin/sh winetricks d3dx9
6. Play
RE: Does this work or not?
by Bruno on Tuesday October 13th 2009, 15:20
I take it that you don't have to install the No CD crack to run it.?
RE: Does this work or not?
by Temar on Wednesday October 14th 2009, 5:57
> I take it that you don't have to install the No CD crack to run it.?

I'm not sure as I didn't try it without a NoCD crack. As most copy protection systems do not work in wine, you probably have to use one.
RE: Does this work or not?
by Kevin Robles on Saturday November 14th 2009, 12:13
I did what you said but was still unable to run. I get a directx error. Please help!
Cod 4 mods
by G.Chaviaras on Friday September 4th 2009, 12:15
Guy when i change the mod in cod4 i get wine error here is the output
4 0x7ea14a72 in wined3d (+0x24a72) (0x17fae79c)
5 0x7ea1977a in wined3d (+0x2977a) (0x17fae7ec)
6 0x7ea19c45 ActivateContext+0x45() in wined3d (0x17fae85c)
7 0x7ea2b0eb IWineD3DDeviceImpl_ClearSurface+0x6b() in wined3d (0x17fae91c)
8 0x7ea2bfc0 in wined3d (+0x3bfc0) (0x17fae96c)
9 0x7eb168ed in d3d9 (+0x68ed) (0x17fae99c)
10 0x00632d9f in iw3mp (+0x232d9f) (0x17faea08)
11 0x0061239e in iw3mp (+0x21239e) (0x17faea48)
12 0x005f630c in iw3mp (+0x1f630c) (0x17faea6c)
13 0x00615a55 in iw3mp (+0x215a55) (0x17faea88)
14 0x0050b396 in iw3mp (+0x10b396) (0x17faeaa8)
15 0x7bc694af in ntdll (+0x594af) (0x17faeb78)
16 0x7bc6f3cd in ntdll (+0x5f3cd) (0x17faf3b8)
17 0xf7e204ff start_thread+0xbf() in libpthread.so.0 (0x17faf4b8)
18 0xf7d9db9e __clone+0x5e() in libc.so.6 (0x00000000)
freezes when changing settings
by Aereshaa on Sunday August 30th 2009, 15:13
Here I'm on wine 1.1.28, with a Radeon HD 4850. I'm getting the graphical glitches associated with the depth of field problem, but I can't change settings without it completely freezing and having to be CTRL ALT BKSP'd.
RE: freezes when changing settings
by Doug on Thursday October 1st 2009, 15:30
I am experiencing the same problems, also ati 4850. Problems persist with previous versions of wine and with the latest (1.1.3). Hope some one can help.
howto
by Arch Linux on Monday August 24th 2009, 11:45
string: Nonpower2Mode value: repack (doesn't exist anymore?)
string: OffscreenRenderingMode value: fbo (default)
string: RenderTargetLockMode value: auto (default)
XP?
by Arch Linux on Monday August 24th 2009, 11:39
Why would I run this in XP mode? Works better on NT 4.0
not working
by Carlos Rodriguez on Tuesday June 23rd 2009, 2:44
run good before enter to main menu after shutdown but says this error
fixme:d3d:IWineD3DEventQueryImpl_GetData Query context not active, reporting GPU idle
RE: not working
by Arch Linux on Monday August 24th 2009, 11:41
"fixme"s can widely and usually be ignored. Those are wine developers TO-DO list if I've understood correctly.

I didn't understand from your post that how well does you cod work on wine though.
Memory size?
by Ian Eberle on Saturday May 16th 2009, 18:36
when it asks for memory size how exactly do you input that? in MB or full byte count?
RE: Memory size?
by Richie on Saturday May 16th 2009, 19:17
Patches values/addresses no longer correct ?!?
by AJSB on Tuesday May 5th 2009, 4:15
I tryed to apply the PB patches but they seem outdated....i manually updated the content of the biggest one in the respective dll targets but the other two patches values are no longer present in their respective dll targets in wine 1.1.20 so i can't make the mods at all !!!

Can you help with this ?!?

TIA,
AJSB
RE: Howto
by Richie on Sunday April 5th 2009, 14:27
I have no problems running COD4 without the directx redistributable installed. When you suggest to install directx, but don't do any DLL overrides, I'm guessing the real reason is that you are actually avoiding the post install attempt to update directx failure? I could see where that's plausible because of registry entries and things that the redistributable would be doing.

Anyway, in the past, the game still runs fine and can still be patched if the directx updater fails though. In contrast, I haven't *reinstalled* COD4 in a long time so if it's anything more than this (more installer failures) perhaps a bug needs to be logged.

I tested release 1.1.18 on my current COD4 installation and didn't have any problems and my fps is comparable to what you have posted.

I personally opt for a redistributable free wine installation since wine's goal is to fully implement those dll's. There's also implications regarding support described in the wine FAQ.
RE: Howto
by Stefano Petullà on Tuesday April 7th 2009, 6:51
Confronting your post I made a fresh install of wine (version 1.1.18) and installed COD4, then I set in winecfg d3dx9_34, d3dx9_36 and d3dx8 to builtin to make it work. Then I set my regedit configs like point 6 of my howto. The result was that the game works,but with a lower performance of the game (fpsmaxrate 40, avarage 25).
RE: Howto
by Richie on Tuesday April 7th 2009, 8:45
builtin is the default for the implemented dll's, so I don't know why it would be required for you to manually set d3d dll's to builtin (especially on a fresh wine install) in order to "make it work".

Also regarding my original point; if you go and install the directx9 redistributable and then don't set any specific d3d dll overrides ( Native) then wine will still use the builtin implentations of those respective dll's. Any implemented dll's can have corresponding files out in the wine system32 dir, but they are just stub files (so that they have a physical presense on the filesystem). There's more to it than just replacing them.

I'm *not* trying to say that you are not experiencing a performance differences between your two install methods, however, but I do think there's more to it than this and it would be interesting to know what it is.
Platinum rating
by Bastiaan van der Weij on Saturday March 28th 2009, 9:41
Why is this platinum? The tester said it him/herself:
What does not work

soften smoke edges

depth of field
Multiplayer
by Atso Galkin on Thursday March 19th 2009, 12:57
I can't go to multiplay servers it just get stuck to "Synchronizing game settings". And after a while, comes: "Error. Server connection timing out". And it does it in every server, so I can't play multiplay. Can someone help me with this. And the three dots are going, and it means that, the game doesn't die... I really would like to play multiplay, because it's so fun. ;)
Punkbuster?
by David Stenberg on Thursday March 12th 2009, 7:42
I see many people talk about Punkbuster and that it is working, and I just think that seems very unlikely. I have tried the 3 patches for 1.1.5 and they worked a bit longer than no patches, but you are ultimately thrown out of the game after one minute or something like that. Are you sure you did in fact play on a Punkbuster server, you that claim that Punkbuster is working? If so, please post a how-to or something like that.

by steve on Thursday February 12th 2009, 4:58
im installed wine and cod 4 without any problems but i am getting a problem with the screen position. when i run the game the screen goes bad and i cant read or change any settings.. the distro is Fedora 8 and im running on a dual screen setup

ive added a picture below

img.photobucket.com/albums/v393/springs/cod4.png
really LOW fps
by Gegsite on Wednesday January 14th 2009, 18:05
Hi, I was really happy that the game is works fine execpt that its un game able due to the FPS it about 1-3. Even with the yitch3 config...
I have ubuntu 8.10 with nvidia 177.82 driver GeForce 8400M G (512 Mb 16x PCI Express) Card
The system is an MSI EX600X LAPTOP with dual intel core 1.7 & 3 Gb RAM.
Tipps ideas?
Is there any special setups in wine?
Please dont say use wineX or Cedega....

Bye, Geri
Got it to work on 8.10 Intrepid with wine 1.1.5
by Kiernan Holland on Tuesday December 23rd 2008, 5:44
Had to apply patch and everything mentioned.. 1.1.10 didn't seem to work..

I was about to give up and it worked after some messing around. I hope to get it down what I did but am having too much fun playing the game.
COD4 tweak
by Patryk on Thursday December 11th 2008, 7:39
Hi,
This is link to article about "The yitch3 configuration"

bashandslash.com/index.php?option=com_content&task=view&id=320&Itemid=74

Yitch3 is configuration file made for "folks with crappy computers so that they can keep up with all the sleek, speedy new systems on the cutting edge of online play". :) I didnt test it on linux, beacuse ATM i dont have installed COD4. When I tested it on Windows, after I've loaded this config I get ~100fps (~30-40fps before). If anyone have problem with low fps, can try to use this config.

by John Pycroft on Tuesday December 9th 2008, 7:19
those are 2 separate files if you were wondering
RE:
by John Pycroft on Tuesday December 9th 2008, 7:21
whoops, i'm a forum noob

by John Pycroft on Tuesday December 9th 2008, 7:12
whoops, got caught in my own thoughts there, umm, do you have a sound driver specified in your wine config at all?
Graphical zooming problems.
by Joel on Saturday December 6th 2008, 14:08
Hello i got the game to work pretty good but the only problem is that when i try to zoom in (right click by default) with a weapon my fps drops very low and everything gets blurry. Anyone have some kind of tweak to fix that?
RE: Graphical zooming problems.
by Joel on Saturday December 6th 2008, 17:49
Nevermind i fixed it. If anyone else have the same problem just put Depth of field on "NO" in video settings.
RE: Graphical zooming problems.
by John Pycroft on Tuesday December 9th 2008, 7:20
dude, if you noticed in the original post, this was already stated
Wine 1.1.9
by K McCarthy on Friday December 5th 2008, 15:27
Installed 8.04 LTS-32 on an Asus A8N_E with 2gb and 100gb, Nvid card (a few years old). Updates and drivers done, etc.

Installed Wine 1.1.9 and the 9x_34.dll and added it to wine's library.

I also downloaded and installed the windows version of punkbuster (without recompiling) just to see what would happen.

Loaded COD4 and turned off all problematic graphics modes. COD4 loaded and worked fine. Got online and played for a bit before getting booted (punkbusted). Went back into a non-punkbuster server and it worked fine. No crashes. That was yesterday.

Today is different. After booting up wine 1.1.9, it couldn't mount any drives. When you open winecfg, the drives tab shows Failed to connect to the mount manager, drive conf cannot be edited. It also gave me the "WIN_IMPROPER_QUIT_BODY" error too. I noticed that when I went into drive C via wine's separate "Browse C:\drive" link, I can see the drives, but when you right click to open the COD4 executable with wine, it does not offer wine as an option. It just says "Open". I rebooted the system and the Win_Improper_Quit_Body" error went away, but the drive fail to connect persists. Any thoughts? Many thanks and Merry Christmas! Mac
RE: Wine 1.1.9
by John Pycroft on Tuesday December 9th 2008, 7:25
ok, "WIN_IMPROPPER_QUIT_BODY" is the same as the "run in safe mode" question in windows, just delete the iw3sp__ and iw3mp__ files from your home directory and the COD4 install directory
Almost perfect
by Anders Johansen on Thursday December 4th 2008, 8:05
It works almost perfect.

This does not work:
Specular map
Depth of field
Soften smoke edges

The framerate is rather poor, considering my hardware runs it without any fps-drop in Windows.

AMD X2 6000+, 8800GT, 4gb ram. Any tips on improving the framerate?
RE: Almost perfect
by John Pycroft on Tuesday December 9th 2008, 7:18
i get nearly no loss of framerate, i use a launcher which is just a shell script, i'll post it here, just put it in a text file on your desktop and set it to be executable, this also depends on wine having the sound drivers set to OSS and having alsa-oss installed

#!/bin/bash
#Call of Duty 4 - Multiplayer
cd "/home/"$USER"/.wine/drive_c/Program Files/Activision/Call of Duty 4 - Modern Warfare/"
aoss env WINEDEBUG=-all wine-pthread iw3mp.exe

#!/bin/bash
#Call of Duty 4 - Single Player
cd "/home/"$USER"/.wine/drive_c/Program Files/Activision/Call of Duty 4 - Modern Warfare/"
aoss env WINEDEBUG=-all wine-pthread iw3sp.exe
RE: Almost perfect
by iMil on Wednesday January 14th 2009, 16:17
good call, I gained about 5 FPS using wine-pthread, thanks !
RE: Almost perfect
by John Pycroft on Tuesday December 9th 2008, 7:22
those were 2 different files if you were wondering
flawless
by John Pycroft on Thursday December 4th 2008, 5:58
i installed ubuntu 8.10 32bit then installed wine 1.1.9 from the wine repo's mounted the game image and installed, the installer gave me a couple of errors, but i can just double click on either iw3sp.exe or iw3mp.exe and play on either versions (i did use the no DVD hack)
Startup Fail
by Rob Siferd on Friday November 28th 2008, 22:49
When I try to startup CoD4 on wine I get this error:


###@####-laptop:~/.wine/drive_c/Program Files/Activision/Call of Duty 4 - Modern Warfare$ ./iw3mp.exe
fixme:win:EnumDisplayDevicesW ((null),0,0x32f8e4,0x00000000), stub!
fixme:d3d:test_pbo_functionality >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Loading the PBO test texture
@ directx.c / 3794
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
err:d3d:CheckTextureCapability Unhandled format=unrecognized
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(1094800211) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1be168) Event query: Unimplemented, but pretending to be supported
fixme:d3d_surface:IWineD3DVolumeImpl_LockBox (0x17c5e890) : pBox=(nil) stub
fixme:d3d_shader:print_glsl_info_log Error received from GLSL shader #1: "Fragment shader was successfully compiled to run on hardware.\nWARNING: 0:2: extension 'GL_ARB_draw_buffers' is not supporte"
fixme:d3d_shader:print_glsl_info_log Error received from GLSL shader #3: "Fragment shader(s) linked, vertex shader(s) linked. \nWARNING: 0:2: extension 'GL_ARB_draw_buffers' is not supported "
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x1be140) call to IWineD3DDevice_CreateSurface failed
fixme:d3d9:D3D9CB_CreateSurface (0x1be140) IDirect3DDevice9_CreateSurface failed
fixme:d3d:IWineD3DDeviceImpl_CreateTexture Failed to create surface 0x20aa6ca0
fixme:d3d9:IDirect3DDevice9Impl_CreateTexture (0x1be140) call to IWineD3DDevice_CreateTexture failed
Segmentation fault
RE: Startup Fail
by Rob Siferd on Sunday November 30th 2008, 16:46
Alright, I was able to fiddle around with it some and now I am down to the error message:

1. A window opens and says WIN_IMPROPER_QUIT_BODY, with options (yes, no, or cancel. If I choose cancel it just stops, otherwise I get)
2. A window saying "Error during initilization: No IWD files found in /main. However, there are IWD files in main.
3. Then in the terminal:
~$ wine "c:/Program Files/Activision/Call of Duty 4 - Modern Warfare/iw3mp.exe"
fixme:win:EnumDisplayDevicesW ((null),0,0x32f8e4,0x00000000), stub!
fixme:d3d:test_pbo_functionality >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Loading the PBO test texture
@ directx.c / 3794
RE: Startup Fail
by John Pycroft on Tuesday December 9th 2008, 9:20
i had the same issue, i found that i had to cd into the install directory and use "wine iw3mp.exe" rather than using the wine prefix, i wrote a couple of scripts to launch COD4, they're up the page a bit, i'll post them as their own comments
Fixed the framerate in ubunto 8.10
by Jonathan Selfridge on Friday November 21st 2008, 22:10
Install the 1.1.8 wine from the winehq repo and install alsa-oss
turn off anti aliasing and select OSS audio in winecfg
Install COD Retail and run it with the following command from the COD4 dir:
“aoss env WINEDEBUG='-all' wine-pthread iw3sp.exe”
since emulating Direct x is CPU intensive starting wine with multiple threads speeds things up drastically, however you must have a multi-core system
you must use aoss or your sound will crash since only one process can access oss at the same time. It's weird but using the oss wrapper for alsa lets you use alsa without all of the clipping,
The WINEDEBUG='-all' suppresses the debug messages and speeds thing up a bit more.
I also set fbo in the registry.
REMEMBER TO TURN OFF "SMOOTHE SMOKE EDGES" OR THE GAME WILL NOT BE PLAYABLE

MY SPECS
EARTHWATTS 450W PS
TPOWER P45
500GB SEAGATE HD
Q6600 OC to 3GHZ
4GB GSKILL DDR 1066
EVGA 8800GS OC 398MB RAM
OS: UBUNTU 8.10, 173 NVIDIA DRIVERS, WINE 1.1.8 STOCK, LUKS ECRYPTED, LVM, EXT3
WINDOWS BELONGS IN VIRTUALBOX!
OH AND VISTA SUCKS!
RE: Fixed the framerate in ubunto 8.10
by Alessandro Tagliapietra on Saturday November 22nd 2008, 2:22
wow, great post..now it works at 30fps on my asus g2s..
RE: Fixed the framerate in ubunto 8.10
by Justin L Ray on Monday November 24th 2008, 0:30
justin@justin:~$ aoss env WINEDEBUG='-all' wine-pthread iw3sp.exe
wine: could not load L"C:\\windows\\system32\\iw3sp.exe": Module not found
justin@justin:~$
how do i fix this
RE: Fixed the framerate in ubunto 8.10
by Jonathan Selfridge on Monday November 24th 2008, 21:55
You need to specify the whole path.
Should be something similar to this:
aoss env WINEDEBUG='-all' WINEPREFIX="/home//.wine" WINEDEBUG='-all' wine-pthread "C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3sp.exe"
RE: Fixed the framerate in ubunto 8.10
by Jonathan Selfridge on Monday November 24th 2008, 21:57
Without the second WINEDEBUG='all' looks like I found a typo in my shortcut.
RE: Fixed the framerate in ubunto 8.10
by Justin L Ray on Tuesday November 25th 2008, 0:44
justin@justin:~$ aoss env WINEDEBUG='-all' WINEPREFIX="/home//.wine" WINEDEBUG='-all' wine-pthread C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe
wine: '/home/' is not owned by you, refusing to create a configuration directory there
justin@justin:~$ sudo su root
[sudo] password for justin:
root@justin:/home/justin# aoss env WINEDEBUG='-all' WINEPREFIX="/home//.wine" WINEDEBUG='-all' wine-pthread C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3sp.exe
wine: created the configuration directory '/home//.wine'
wine: cannot find 'C:Program'
root@justin:/home/justin# aoss env WINEDEBUG='-all' WINEPREFIX="/home//.wine" WINEDEBUG='-all' wine-pthread C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3sp.exe
wine: cannot find 'C:Program'
root@justin:/home/justin#
RE: Fixed the framerate in ubunto 8.10
by Jonathan Selfridge on Tuesday November 25th 2008, 11:09
WINEPREFIX="/home/your username/.wine" WINEDEBUG='-all' wine-pthread C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3sp.exe
Sorry I had you username in brackets but the board must have thought it was an HTML tag and stripped it.
You have to specify your username in the shortcut
RE: Fixed the framerate in ubunto 8.10
by Justin L Ray on Tuesday December 2nd 2008, 0:00
justin@justin:~$ WINEPREFIX="/home/justin/.wine" WINEDEBUG='-all' wine-pthread C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe
wine: cannot find 'C:Program'
justin@justin:~$

whats up with this (sorry if i seem a nusince im new with linux)
RE: Fixed the framerate in ubunto 8.10
by Richie on Tuesday December 2nd 2008, 9:39
his second example showed quotes around the windows style path. Either add the quotes as was depicted or you can specify the linux style path instead, ie. WINEPREFIX="/home/justin/.wine" WINEDEBUG='-all' wine-pthread /home/justin/.wine/drivec/Program\ Files/Activision/Call\ of\ Duty\ 4\ -\ Modern\ Warfare/iw3mp.exe
-however-
consider changing into the specific directory (linux path) first:
cd /home/justin/.wine/drivec/Program\ Files/Activision/Call\ of\ Duty\ 4\ -\ Modern\ Warfare
and then calling:
WINEPREFIX="/home/justin/.wine" WINEDEBUG='-all' wine-pthread iw3mp.exe
directly thus avoiding the need for a path. The first example in the original posting had implied that.

Since I can't test these suggestions you are going to have work around any typos. This won't be an issue if you understand paths and your specific setup.

I'd seriously consider reading up on command line basics and what not so as to be able to find your way around. I think it will be more beneficial to you with that approach rather than learning on a case by case basis. Other complexities are going to crop up while using wine [ ie. manual patch and compile of the wine source ] and there are guides for alot of things, but most any guide out there will assume you are familiar with certain basic concepts.

gl
RE: Fixed the framerate in ubunto 8.10
by Kiernan Holland on Sunday December 21st 2008, 23:59
Double quotes around the "C:\Pro.... exe"

Also what the heck does "sudo su root" do?

"su -"

should be enough..

But wine runs in user mode..

Oh you are missing the username at "/home//.wine"..
This might work "/home/`whoami`/.wine"

or you could use your imagination..
RE: Fixed the framerate in ubunto 8.10
by Alexander Shenoy on Tuesday November 25th 2008, 0:32
I have installed the game, but I get the following error when I run it

fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 32 vertex samplers and 32 total samplers
fixme:d3d:IWineD3DImpl_FillGLCaps Expected vertex samplers + MAX_TEXTURES(=8) >combined_samplers
fixme:win:EnumDisplayDevicesW ((null),0,0x32f8e4,0x00000000), stub!
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x141db8,0x141c60): stub
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x1421b8,0x141c48): stub
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x142150,0x126130): stub
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
err:d3d:CheckTextureCapability Unhandled format=unrecognized
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(1094800211) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface

Can somebody tell me what is wrong
patch Wine 1.1.8?
by Berillions on Sunday November 16th 2008, 15:12
Hello

I have wine 1.1.8 and i would like to know if I owed to patch my version to install the game.

does game work with this version?

Thanks and sorry for my English, i'm french :)
RE: patch Wine 1.1.8?
by Berillions on Tuesday November 18th 2008, 14:50
I installed the drivers 8.11 of ATI and i have too a black screen after launch the game.

:'(
RE: patch Wine 1.1.8?
by Maxence on Friday November 21st 2008, 8:53
Bonjour, Call of duty 4 fonctionne presque nativement avec wine 1.1.8, je l'ai installé sous windows, et en double cliquant sur le fichier .exe du mode multiplayer, ça marche.
Je l'ai aussi installé directement à partir de ubuntu, ça marche aussi.
Par contre pour punk buster il faut patcher mais je ne sais pas comment.
note: chez moi le on est haché et grésille... je ne connais pas non plus la solution à ce problème.
RE: patch Wine 1.1.8?
by Richie on Friday November 21st 2008, 9:45
freetranslation.com - "Hello, Call of duty 4 works almost natively with wine 1.1.8, I installed it under Windows, and in double clicking on the file. former of the method multiplayer, that works. I also installed it directly from ubuntu, that works also. On the other hand for punk buster it is necessary patcher but I do not know how. Note: at my place it one is chopped and crackles... I do not know not more the solution to this problem."

I assume you have two problems based on the translation. One is punkbuster and the second is a sound issue. For the punkbuster patches you want to save each one to a text file and then use the "patch" command to apply the changes to the source code. You would then compile and install wine manually. I will give you the jist of what to do:

1) download the wine source: either use git (www.winehq.org/site/git) -or- tarball (ibiblio.org/pub/linux/system/emulators/wine/)
2) patch the source: cd ; patch -p1 < /path/to/patch.txt (for each patch you saved)
3) build wine: wiki.winehq.org/Recommended_Packages -or- wiki.winehq.org/WineOn64bit as appropriate

Note: The punkbuster patches are listed for wine version 1.1.5. If, while applying those patches to a newer wine source, you get any HUNK failures then you may as well get the 1.1.5 wine source and apply it to that unless you can find or create updated versions of the patches.

Regarding, your other issue may be caused by running COD4 from a NTFS file system. I don't know that for sure, but perhaps you want to install it via wine onto a native filesystem and see how that does. You could just copy over the files to a wine prefix but I expect that COD4 patches would fail to install due to missing registry keys.
Got it.
by Ben on Monday November 10th 2008, 14:45
I got it working for both single and multiplayer in Kubuntu 8.04 with wine 1.1.7. I have yet to try a PB server but when i had it enabled in my user options it gives severe lags in the game play and my ping fluxes all over the board (from what my friends have told me).
punkbuster
by evgeniy on Saturday November 8th 2008, 8:40
I have problems with punkbuster.
It kicks me with this message "RESTRICTION: Unknown Windows API Function [131136]"
And this message goes with both patched wine 1.1.5 and 1.1.8
RE: punkbuster
by touch on Friday November 21st 2008, 11:01
Me to :(
PunkBuster wine 1.1.7
by larva_opensuse on Wednesday November 5th 2008, 17:06
Hello I install Wine from source Vr. 1.1.7 and I apply the 3 patches for PunkBuster and PB works fine for COD2 .. but not for COD4 lol.

the game run's fine but PB dont work. any idea?

Using OpenSUSE 11.0 X86_64

driver Nvidia 177.80.

I have PB up to date.
fps problem
by Alessandro Tagliapietra on Sunday November 2nd 2008, 15:15
Hi, i'm trying to use cod4 in single player, it works, but in xp i have 140 fps, and under ubuntu 20-30... i've used a fresh install of ubuntu 8.10, installed wine 1.1.7 by binaries repositories... and using cod4 installed under windows in ntfs hdd...any help?
RE: fps problem
by Alessandro Tagliapietra on Sunday November 2nd 2008, 15:36
i run the app with
wine iw3sp.exe WINEDEBUG=-all
and in console it displays a lot of
fixme:d3d_surface:IWineD3DVolumeImpl_LockBox (0xe9025d0) : pBox=(nil) stub
is there any way to get the game faster?
RE: fps problem
by christian on Thursday November 13th 2008, 14:16
try out cedega. it runs this game much faster and better looking..
RE: fps problem
by Alessandro Tagliapietra on Sunday November 16th 2008, 15:20
my friend has cedega, and cod doesn't works...he has 6.1 version...:D
Punkbuster
by JamesK on Sunday November 2nd 2008, 9:44
Are there any tricks to get punkbuster working. When I play on punkbuster servers I get kicked for "Service Communication failure Pnkbstrb.exe"

I find this in the punkbuster log

[11.02.2008 03:12:06] PnkBstrB v1.727 (COD4) Service Started Successfully. This service is a component of the PunkBuster Anti-Cheat system. Visit www.evenbalance.com for more information.

[11.02.2008 03:12:13] ERROR: (#0) Success


[11.02.2008 03:12:13] WARNING: CRITICAL ERROR: Failed to Register Service (ffae)
CoD4 maps
by Calgar C on Thursday October 23rd 2008, 19:40
call of duty starts and runs perfectly. but everytime i try and start a campaign it gives me an error telling that it can't find the bsp for the map

could you please help me
sorry,the wine version are 1.1.6 and 1.1.3
by 070 on Monday October 13th 2008, 8:40
1.1.6:
it has the "alpha blend" problem, it seems that 3dmark patch is still required...

1.1.3 with 3dmark patch:
it start with a black screen.Everything is ok except the screen.
RE: sorry,the wine version are 1.1.6 and 1.1.3
by Richie on Monday October 13th 2008, 9:11
The 3DMark patch was originally created as a result of a deficiency in the NVIDIA driver and the original error message for COD4 was "Error during initialization: Video card or driver doesn't support enough textures for the DirectX 9 code path".

The patch was a hard coded hack to make things work in wine versions earlier than 1.1.3.

as of 1.1.3, wine shouldn't need this patch, perhaps you are assuming it is already applied? To my knowledge, the patch was never commited as it was, but code was changed in order to work around the driver issue.

1.1.3 - 1.1.6 run fine without this patch on nvidia.

I believe that your problem is ATI specific and really shouldn't have anything to do with the old 3Dmark patch.
RE: sorry,the wine version are 1.1.6 and 1.1.3
by 070 on Monday October 13th 2008, 9:41
bad news....

so it seems that ati driver does not do well
RE: sorry,the wine version are 1.1.6 and 1.1.3
by Kenny von B�low on Friday October 17th 2008, 12:57
Still haveing problem starting coD4 multiplayer
used deb 1.1.6 , game is full up to date but the damn multiplayer wont start. just black screen
single player works fine. little loss in fps
RE: sorry,the wine version are 1.1.6 and 1.1.3
by Mishrito on Thursday January 17th 2013, 19:34
I fixed the black screen (at least in Ubuntu). Check my post above.

I have CoD4 1.7 with WINE 1.5.21
can not run with error message "alpha blend"
by 070 on Monday October 13th 2008, 8:24
ati x1950gt with flgrx driver.

when i run iw3mp.exe the error message comes out
"
Video card or driver doesn't support separate alpha blend,
glow will be disabled"

when i change wine version to 1.1.3 with 3dmark patch
the error message does not come out but the game screen is black...

Do anyone know why and how to solve the error..
wine 1.1.6 Multiplayer dont work
by Kenny von B�low on Sunday October 12th 2008, 13:05
multiplayer dont work
single player works with NO/CD crack - flawlessly

anyone got a fix on how to get multiplayer to work ?
RE: wine 1.1.6 Multiplayer dont work
by Erik on Monday October 13th 2008, 4:40
You must play on non PB servers if you want to play online.
RE: wine 1.1.6 Multiplayer dont work
by Kenny von B�low on Monday October 13th 2008, 6:59
i can't even open multiplayer
i can open single player just fine
but when i try to open the multiplayer it changes my ressolution and then nothing
RE: wine 1.1.6 Multiplayer dont work
by Ben on Monday November 10th 2008, 14:52
Did you install PB when you installed COD?

by Erik on Saturday October 11th 2008, 6:52
Works fine for me in Wine 1.1.6.

Ubuntu 8.04 64 bit. Using latest EnvyNG drivers.
RE:
by Erik on Saturday October 11th 2008, 6:57
Forgot to mention. That was in multiplayer. Havent tested single player.
RE:
by Levo on Sunday October 12th 2008, 9:37
Did you compile wine from source, or did you find a .deb?
RE:
by Erik on Sunday October 12th 2008, 12:34
I Downloaded the deb from Wine HQ.

BTW. I Later patched and compiled wine from source to see if PB worked. The result were negative. I got a "unallowed or restricted driver" message. So i changed back the deb from wineHQ.
RE:
by Erik on Sunday October 12th 2008, 12:56
To run CoD4SP you will need to download a crack. Because wine cant handle that copy protection.

Download a crack here: www.gameburnworld.com and replace your .exe file. After that it works just fine.
CoD4 does not start
by peratu on Friday October 10th 2008, 13:34
I have COD4 installed and patched up to 1.7 version
I have wine-1.5.6

And I have this error when I try to run COD4:

$ wine iw3sp.exe
fixme:win:EnumDisplayDevicesW ((null),0,0x32f8e4,0x00000000), stub!
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x137e08,0x137a50): stub
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x137e08,0x137a50): stub
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x137e80,0x1382a8): stub
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
err:d3d:CheckTextureCapability Unhandled format=unrecognized
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(1094800211) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d_surface:IWineD3DVolumeImpl_LockBox (0xc9701a8) : pBox=(nil) stub
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x1880b0) call to IWineD3DDevice_CreateSurface failed
fixme:d3d9:D3D9CB_CreateSurface (0x1880b0) IDirect3DDevice9_CreateSurface failed
fixme:d3d:IWineD3DDeviceImpl_CreateTexture Failed to create surface 0xf1346b0
fixme:d3d9:IDirect3DDevice9Impl_CreateTexture (0x1880b0) call to IWineD3DDevice_CreateTexture failed
fixme:d3d9:IDirect3DDevice9Impl_CreateIndexBuffer (0x1880b0) call to IWineD3DDevice_CreateIndexBuffer failed
Segmentation fault

Somebody can help me, please?
RE: CoD4 does not start
by peratu on Friday October 10th 2008, 13:36
Sorry, wine-1.1.6
PROBLEM SOLVED
by peratu on Saturday October 11th 2008, 13:29
I have solved my problem adding an entry in the windows register.

regedit

then..., look HKEY_CURRENT_USER, Software, Wine, Direct3D (if not exist, create the key), and add a new string value:

VideoMemorySize

and put the memory size of you graphic card as a value.
How to use the PB Workaround in Cedega?
by Türklinke on Monday October 6th 2008, 10:46
Hi,
I'm using Cedega for CoD4, cause there I have a much better performance then under wine. But unfortunately i can't use there PB. I have also some problems to try out your tutorial. Is it possible to write an exact description, means every step written out (with your directories,...). Maybe i can adapt it to Cedega.

Greetings,
Türklinke
RE: How to use the PB Workaround in Cedega?
by Levo on Monday October 6th 2008, 11:00
This is the WINE APPLICATION DATABASE. This isn't a cedega support forum. This workaround is for wine.

by kyle on Saturday October 4th 2008, 3:23
Quite possibly.
PunkBuster question
by larva_opensuse on Friday October 3rd 2008, 17:12
the tip for patching the wine source to get PunkBuster working.. also works for Call of duty 2 ???

thanks
RE: PunkBuster question
by Levo on Saturday October 4th 2008, 2:59
Probably yes. I haven't tried it though.
RE: PunkBuster question
by larva_opensuse on Saturday October 4th 2008, 15:29
Im goin to try on the weak so I let you know if it work

thanks
RE: PunkBuster question
by blz kqs on Wednesday April 1st 2009, 10:50
well i can say to you that it dont work.. :) i have tryed to update with pbsetup.exe and pbsetup.run and with both of them and without luck only with different errors...

i have readed something about pbsv.dll.so but i cant find it no where
networking problems
by Gunther on Friday September 26th 2008, 15:30
Is anyone experiencing similar networking problems after 1.4 upgrade?
Server browser is empty, Refreshing turns up empty. Manually connecting (/connect ) just times out
Deleting servercache.dat does not help

I do not think my firewall is the problem, I already tried
bypassing it.

Next to that I tried adding a whole bunch of evenbalance and activision servers to my /etc/hosts file, to counter dns-resolving issues, but tcpdump does not show a single packet leaving the system after that.
With or without PB, no difference


Any obvious issues that I'm missing here?
RE: networking problems
by Levo on Saturday September 27th 2008, 2:45
I use ubuntu 8.04 and i have no issues. Just like it were on windows. What's your OS?
1.1.5
by stickboy on Saturday September 20th 2008, 22:23
Has anyone gotten it working in 1.1.5? I'm running ubuntu 8.04 64bit. I got it installed in 1.1.4 but didn't get it working. This was just the other day so I took the new wine update and now it won't even install. I get a pagefault error. Any ideas?
RE: 1.1.5
by Levo on Sunday September 21st 2008, 2:30
Call of duty 4 works perfectly under Ubuntu 8.04 32bit (with wine 1.1.5). I don't have the 64bit edition, but it should work. Make you hve installed directx (e.g. with winedoors)
RE: 1.1.5
by stickboy on Sunday September 21st 2008, 12:57
Just Single or does Multi work as well?
RE: 1.1.5
by Levo on Sunday September 21st 2008, 13:03
I play multiplayer for over 6 months and I have no problem (except punkbuster). I played singleplayer (up to the last mission) only once (only veteran). So it works!
RE: 1.1.5
by stickboy on Sunday September 21st 2008, 14:35
What version did you install under? Did you use a tutorial?
RE: 1.1.5
by Levo on Sunday September 21st 2008, 14:47
When i firstly tried to play cod4 under wine, i was still using windows. So i installed the game under windows, exported the registry keys and imported them in the wine registry. The game worked fine. I think it was wine 0.9.59, patched with the 3dmark patch. Now (1.1.3-1.1.5) no patch is required.
RE: 1.1.5
by stickboy on Sunday September 21st 2008, 22:00
XP or Vista? Would there be a difference? My roommate has it installed on Vista, if I could just do that it's save me a lot of trouble.
RE: 1.1.5
by Levo on Monday September 22nd 2008, 5:55
Install it on ANY version of Windows. Then export the registry keys, and import them int the wine registry (first adjust them to your game path). Then play.

PS: I finally managed to make punkbuster work (under wine), I'll add a how-to later in the day.
RE: 1.1.5
by stickboy on Wednesday September 24th 2008, 15:45
I imported the reg keys (not sure what I was supposed to adjust). Do I now also install from my mounted iso?
RE: 1.1.5
by Levo on Thursday September 25th 2008, 4:21
No, you copied the game from a windows installation and imported the registry keys, just to avoid the installation. You have to adjust the path.
RE: 1.1.5
by stickboy on Thursday September 25th 2008, 9:06
Got it to work, thanks!

Any idea on when you can put up the punkbuster tutorial?
RE: 1.1.5
by Levo on Thursday September 25th 2008, 12:08
I have already posted it. Try it. It may work.
RE: 1.1.5
by Xavier Vachon on Wednesday September 24th 2008, 21:39
Here is a shortlog of an error I get in Wine 1.1.5 on Ubuntu X64

Fastfile for zone "code_post_gfx" is corrupt or unreadable

fixme:mixer:ALSA_MixerInit No master control found on USB Device 0x46d:0x8b2, disabling mixer
fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 32 vertex samplers and 32 total samplers
fixme:d3d:IWineD3DImpl_FillGLCaps Expected vertex samplers + MAX_TEXTURES(=8) > combined_samplers
fixme:win:EnumDisplayDevicesW ((null),0,0x32f8e4,0x00000000), stub!
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
err:d3d:CheckTextureCapability Unhandled format=unrecognized
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(1094800211) in the format lookup table
fixme:d3d:debug_d3dformat Unrecognized 1094800211 (as fourcc: SSAA) WINED3DFORMAT!
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface

Is it necessary to apply a DirectX patch over the wine DLLs?
RE: 1.1.5
by Levo on Thursday September 25th 2008, 4:23
Try to apply it with wine doors. It may help.
direct X error
by Thomas reinink on Tuesday September 9th 2008, 7:46
Everytime i start up COD4, DirectX says: "DirectX encountered an unrecoverable error."

I can see the menu behind it and edit my options, but any big grafhics options(say AA) makes COD4 crash. also, when i want to load a map or go back to linux, CoD4 crashes...

anyone has this problem 2? and anyone got a solution?

info:
I use Suse 11.0
wine 1.1.4
wine doors 0.1.2-5.12
----------------------------------------------------
"Installing "wine-snapshot-1.1.2.20080818-1.1"
If i want to install this, it gives a conflict with the instalation of wine 1.1.4 and the only option to install snapshot, is to de-install wine 1.1.4?

kinda weird....(Perhaps it's normal but i'm still a windows-noob)
Graphical corruption
by Moustacha on Wednesday August 27th 2008, 23:22
Does anyone get odd lighting if they run in a 16:10 resolution? Native screen res is 1440x900, but if I run Cod4 at that resolution, the screen moves to the right, with a fuzzy line down the left side. In game the everything goes light/dark when you take a step, and looks like it's being played from a hand camera recording a projector.
Patch not needed
by cruiseoveride on Thursday August 21st 2008, 19:31
With wine-1.1.2-551-g34aa6b7 i did not need the patch nor directx.
Getdeb Wine 1.1.2+3dmark Patch
by Boktai1000 on Monday August 11th 2008, 20:11
They now have the patched version of Wine 1.1.2 up on getdeb.net at getdeb.net/app/Wine for both 32 and 64 bit.

by Levo on Wednesday August 6th 2008, 15:58
I haven't updated that guide because I am on holidays. I soon as I come back I'll test it and I'll update my guide...
Wine 1.1.2 + 3dmark patch packages
by Riot777 on Wednesday August 6th 2008, 12:24
If someone need patched version of Wine, both for 32 & 64 bit Ubuntu you can get it here:

ppa.launchpad.net/c-korn/ubuntu/pool/main/w/wine/

It was kindly made by one of getdeb.net packagers.

by Espinosa on Wednesday August 6th 2008, 9:28
With latest GIT wine (wine-1.1.2-307-g520ab5c) you probably don't need ANY PATCH. Game works out of the box, tested on demo.
The patch mentioned above does not work for wine > 1.1.1 anyway.
No external DLLs needed, do DirectX9c installation, was needed for me.
Works thanks! :-D
by Willem on Wednesday July 23rd 2008, 6:55
Hi, I've not use linux since late 2006. I must say wine has improved drastically! Thank you for this detailed how-to, I must just say I had one problem. I'm still running kubuntu 7.04 that has 96.31 nvidia drivers in the repos, when I went into the game main menu was fine as soon as I went to another menu (even if I used to cod console to connect to server) my screen turned black. I read that you must insure that color correction is set to default, though that wasn't the problem... so:

I downloaded NVIDIA-Linux-x86-173.14.09-pkg1.run from nvidia,
(already had build-essentials & kernel headers)
uninstalled nvidia-glx & restricted-modules
installed the driver started kdm, now it works fine :)

Kubuntu feisty 7.04 i386 2.6.20-15
Amd64 Athlon 939 3.2+
1GB Hynix DDR400
Colorful nforce4
XFX 7900gt xxx 256 mb/-bit
Back