| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:linux:wine:cod_mw2_2009_iw4x_steamcmd [2026/06/05 15:53] – [Initial Prefix] Sean Rhone | games:linux:wine:cod_mw2_2009_iw4x_steamcmd [2026/06/13 08:50] (current) – [Files] Sean Rhone |
|---|
| |
| * [[linux:distros:opensuse_tumbleweed_gnome|openSUSE Tumbleweed (GNOME)]] | * [[linux:distros:opensuse_tumbleweed_gnome|openSUSE Tumbleweed (GNOME)]] |
| * [[linux:notes:wine|Wine]] (old WoW64) | * [[linux:notes:wine|Wine]] (new WoW64) |
| * [[programs:linux:steamcmd|SteamCMD]] | * [[programs:linux:steamcmd|SteamCMD]] |
| |
| ====== Initial Prefix ====== | ====== Initial Prefix ====== |
| |
| 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 | 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 |
| |
| 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 'wayland' /f |
| **** | **** |
| |
| cp -Rf ~/'Projects/IW4-Bot-Warfare/src/scriptdata' ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/userraw' | mkdir -p ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/userraw' && cp -Rf ~/'Projects/IW4-Bot-Warfare/src/scriptdata' ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/userraw/scriptdata' |
| |
| ===== IWD ===== | ===== IWD ===== |
| * https://github.com/doitsujin/dxvk | * https://github.com/doitsujin/dxvk |
| |
| ==== 1.10.3 ==== | ==== master ==== |
| |
| * https://github.com/doitsujin/dxvk/releases/tag/v1.10.3 | * https://github.com/doitsujin/dxvk/actions ((need to be signed into GitHub, and select the latest ''master'' artifacts package)) |
| | * Last tested: ''dxvk-master-9aa4e3da8d026b767de3c530e3b6bd0cdd9b0a76.zip'' |
| |
| wget -O '/tmp/dxvk-1.10.3.tar.gz' 'https://github.com/doitsujin/dxvk/releases/download/v1.10.3/dxvk-1.10.3.tar.gz' && tar -xzvf '/tmp/dxvk-1.10.3.tar.gz' --strip-components='2' -C ~/'.wine/Call of Duty Modern Warfare 2 (2009)/drive_c/windows/system32' 'dxvk-1.10.3/x32/d3d9.dll' && rm -f '/tmp/dxvk-1.10.3.tar.gz' | unzip -j -o ~/'Downloads/dxvk-master-'*'.zip' 'x32/d3d9.dll' -d ~/'.wine/Call of Duty Modern Warfare 2 (2009)/drive_c/windows/syswow64' |
| |
| ==== Dll Override ==== | ==== Dll Override ==== |
| ==== dxvk.conf ==== | ==== dxvk.conf ==== |
| |
| * https://github.com/doitsujin/dxvk/blob/e4fd5e9e8d335e8a2c0814829207cbd421f7e40e/dxvk.conf | * https://github.com/doitsujin/dxvk/blob/master/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> |
| # General | # General |
| dxvk.shrinkNvidiaHvvHeap = "False" | |
| d3d9.dpiAware = "False" | d3d9.dpiAware = "False" |
| d3d9.enableDialogMode = "False" | d3d9.enumerateByDisplays = "False" |
| d3d9.maxFrameRate = "0" | |
| | # Intel |
| | d3d9.hideIntelGpu = "False" |
| | d3d9.floatEmulation = "False" |
| | dxvk.enableGraphicsPipelineLibrary = "False" |
| | dxvk.enableMemoryDefrag = "False" |
| | dxvk.lowerSinCos = "False" |
| |
| # Tweaks | # Tweaks |
| d3d9.enumerateByDisplays = "False" | |
| d3d9.deferSurfaceCreation = "True" | |
| d3d9.maxFrameLatency = "1" | |
| d3d9.presentInterval = "0" | d3d9.presentInterval = "0" |
| d3d9.tearFree = "False" | d3d9.maxFrameLatency = "1" |
| d3d9.samplerAnisotropy = "16" | dxgi.maxFrameLatency = "1" |
| d3d9.invariantPosition = "False" | dxgi.syncInterval = "0" |
| dxvk.useRawSsbo = "True" | dxvk.tearFree = "False" |
| d3d9.evictManagedOnUnlock = "True" | dxvk.latencySleep = "False" |
| d3d9.strictPow = "False" | |
| d3d9.lenientClear = "True" | |
| d3d9.floatEmulation = "False" | |
| d3d9.forceSwapchainMSAA = "0" | |
| d3d9.deviceLocalConstantBuffers = "True" | |
| d3d9.noExplicitFrontBuffer = "True" | |
| |
| # HUD | # HUD |
| |
| wget -O ~/'Downloads/IW4x-iw4x-latest.dll' -q --show-progress 'https://github.com/iw4x/iw4x-client/releases/latest/download/iw4x.dll' | wget -O ~/'Downloads/IW4x-iw4x-latest.dll' -q --show-progress 'https://github.com/iw4x/iw4x-client/releases/latest/download/iw4x.dll' |
| mv -fv ~/'Downloads/IW4x-iw4x-latest.dll' ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/iw4x.dll' | mv -f ~/'Downloads/IW4x-iw4x-latest.dll' ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/iw4x.dll' |
| |
| wget -O ~/'Downloads/IW4x-release-latest.zip' -q --show-progress 'https://github.com/iw4x/iw4x-rawfiles/releases/latest/download/release.zip' | wget -O ~/'Downloads/IW4x-release-latest.zip' -q --show-progress 'https://github.com/iw4x/iw4x-rawfiles/releases/latest/download/release.zip' |
| unzip -o ~/'Downloads/IW4x-release-latest.zip' -d ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2' | unzip -q -o ~/'Downloads/IW4x-release-latest.zip' -d ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2' |
| rm -fv ~/'Downloads/IW4x-release-latest.zip' | rm -f ~/'Downloads/IW4x-release-latest.zip' |
| |
| zenity --title 'IW4x Updater' --text 'Client and Rawfiles update complete' --icon ~/'.wine/Icons/IW4x-256.png' --timeout '2' --info | zenity --title 'IW4x Updater' --text 'Client and Rawfiles update complete' --icon ~/'.wine/Icons/IW4x-256.png' --timeout '2' --info |
| | : |
| |
| # End</code> | # End</code> |
| |
| zenity --title 'IW4x Updater' --text 'Bot Warfare update complete' --icon ~/'.wine/Icons/IW4x-256.png' --timeout '2' --info | zenity --title 'IW4x Updater' --text 'Bot Warfare update complete' --icon ~/'.wine/Icons/IW4x-256.png' --timeout '2' --info |
| | : |
| |
| # End</code> | # End</code> |