| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:linux:wine:cod_mw2_2009_iw4x_steamcmd [2026/08/03 00:49] – [Server] Sean Rhone | games:linux:wine:cod_mw2_2009_iw4x_steamcmd [2026/08/03 20:37] (current) – Sean Rhone |
|---|
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| |
| * [[linux:distros:opensuse_tumbleweed_gnome|openSUSE Tumbleweed (GNOME)]] | * [[linux:distros:debian_13_xfce|Debian 13 (Xfce)]] |
| * [[linux:notes:wine|Wine]] (new WoW64) | * [[linux:notes:wine|Wine]] (old WoW64) |
| * [[programs:linux:steamcmd|SteamCMD]] | * [[programs:linux:steamcmd|SteamCMD]] |
| |
| ====== Dependencies ====== | ====== Dependencies ====== |
| |
| sudo zypper install 'git-core' | sudo apt install 'git' |
| |
| ====== Modern Warfare 2 ====== | ====== Modern Warfare 2 ====== |
| ====== Initial Prefix ====== | ====== Initial Prefix ====== |
| |
| mkdir -p ~/'.wine' && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' WINEARCH='wow64' wine wineboot --init && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' winecfg /v 'vista' && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v 'winemenubuilder.exe' /t 'REG_SZ' /d '' /f | mkdir -p ~/'.wine' && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' WINEARCH='win32' wine wineboot --init && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' winecfg /v 'vista' && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v 'winemenubuilder.exe' /t 'REG_SZ' /d '' /f |
| |
| WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Drivers' /v 'Graphics' /t 'REG_SZ' /d 'wayland' /f | WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Drivers' /v 'Graphics' /t 'REG_SZ' /d 'x11' /f |
| |
| WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Direct3D' /v 'renderer' /t 'REG_SZ' /d 'gdi' /f | WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\Direct3D' /v 'renderer' /t 'REG_SZ' /d 'gdi' /f |
| * https://github.com/doitsujin/dxvk | * https://github.com/doitsujin/dxvk |
| |
| ==== master ==== | ==== 2.6.2 ==== |
| |
| * https://github.com/doitsujin/dxvk/actions ((need to be signed into GitHub, and select the latest ''master'' artifacts package)) | * https://github.com/doitsujin/dxvk/releases/tag/v2.6.2 |
| * Last tested: ''dxvk-master-c8c49cc156f5044f9046ae5a8396a3a3aec2ed00.zip'' | |
| |
| unzip -j -o ~/'Downloads/dxvk-master-'*'.zip' 'x32/d3d9.dll' -d ~/'.wine/Call of Duty Modern Warfare 2 (2009)/drive_c/windows/syswow64' | wget -O '/tmp/dxvk-2.6.2.tar.gz' 'https://github.com/doitsujin/dxvk/releases/download/v2.6.2/dxvk-2.6.2.tar.gz' -q --show-progress && tar -xzvf '/tmp/dxvk-2.6.2.tar.gz' --strip-components='2' -C ~/'.wine/Call of Duty Modern Warfare 2 (2009)/drive_c/windows/system32' 'dxvk-2.6.2/x32/d3d9.dll' && rm -f '/tmp/dxvk-2.6.2.tar.gz' |
| |
| ==== Dll Override ==== | ==== Dll Override ==== |
| ==== dxvk.conf ==== | ==== dxvk.conf ==== |
| |
| * https://github.com/doitsujin/dxvk/blob/master/dxvk.conf | * https://github.com/doitsujin/dxvk/blob/9d6f54a1ade20d1d27dd421024717a636f3d8c68/dxvk.conf |
| |
| nano ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/dxvk.conf' | nano ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/dxvk.conf' |
| |
| <code> | <code> |
| #dxvk.hud = "full" | |
| #dxvk.hud = "devinfo,fps,memory,gpuload,frametimes" | #dxvk.hud = "devinfo,fps,memory,gpuload,frametimes" |
| | #dxvk.hud = "full" |
| |
| dxvk.allowFse = "True" | dxvk.allowFse = "True" |
| | d3d9.maxFrameLatency = "1" |
| d3d9.maxFrameRate = "-1" | d3d9.maxFrameRate = "-1" |
| dxvk.maxFrameRate = "-1" | |
| dxvk.latencySleep = "False" | dxvk.latencySleep = "False" |
| dxvk.disableNvLowLatency2 = "True" | dxvk.disableNvLowLatency2 = "True" |
| d3d9.samplerAnisotropy = "16" | d3d9.samplerAnisotropy = "16" |
| d3d9.samplerLodBias = "-2.0" | d3d9.samplerLodBias = "-2.0" |
| | d3d9.invariantPosition = "False" |
| dxvk.useRawSsbo = "True" | dxvk.useRawSsbo = "True" |
| dxvk.enableGraphicsPipelineLibrary = "False" | dxvk.enableGraphicsPipelineLibrary = "False" |
| dxvk.enableDescriptorHeap = "True" | |
| dxvk.enableDescriptorBuffer = "True" | |
| dxvk.enableImplicitResolves = "False" | |
| dxvk.trackPipelineLifetime = "False" | dxvk.trackPipelineLifetime = "False" |
| dxvk.enableMemoryDefrag = "False" | dxvk.enableMemoryDefrag = "False" |
| d3d9.dpiAware = "False" | d3d9.dpiAware = "False" |
| d3d9.lenientClear = "True" | d3d9.lenientClear = "True" |
| d3d9.maxAvailableMemory = "7168" | |
| d3d9.floatEmulation = "False" | d3d9.floatEmulation = "False" |
| dxvk.lowerSinCos = "False" | d3d9.sincosEmulation = "False" |
| | d3d9.forceSwapchainMSAA = "0" |
| d3d9.deviceLocalConstantBuffers = "True" | d3d9.deviceLocalConstantBuffers = "True" |
| d3d9.enumerateByDisplays = "False" | d3d9.enumerateByDisplays = "False" |
| d3d9.seamlessCubes = "True" | d3d9.seamlessCubes = "True" |
| d3d9.deviceLossOnFocusLoss = "True" | |
| d3d8.placeP8InScratch = "True" | |
| |
| # End</code> | # End</code> |
| |
| export WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' | export WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' |
| | export WINEDLLOVERRIDES='d3d9=b' |
| |
| wine ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/iw4x.exe' -dedicated -disable-notifies -disable-mongoose -disable-rate-limit-check +exec 'iw4x_localhost.cfg' +map_rotate | wine ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/iw4x.exe' -dedicated -disable-notifies -disable-mongoose -disable-rate-limit-check +exec 'iw4x_localhost.cfg' +map_rotate |
| |
| unset 'WINEPREFIX' | unset 'WINEPREFIX' 'WINEDLLOVERRIDES' |
| |
| # End</code> | # End</code> |