| Next revision | Previous revision |
| games:bsd:wine:cod_mw2_2009_iw4x_steamcmd [2026/06/17 00:56] – created Sean Rhone | games:bsd:wine:cod_mw2_2009_iw4x_steamcmd [2026/06/17 01:24] (current) – [Dll Override] Sean Rhone |
|---|
| ====== Initial Prefix ====== | ====== Initial Prefix ====== |
| |
| mkdir -p ~/'.wine' && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' WINEARCH='wow64' '/usr/local/bin/wine64.bin' wineboot --init && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' '/usr/local/bin/wine64.bin' winecfg /v 'vista' && WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' '/usr/local/bin/wine64.bin' 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)' wine 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 |
| ===== Client ===== | ===== Client ===== |
| |
| mkdir -p ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players' && nano ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players/iw4x_custom.cfg' | mkdir -p ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players' && ee ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players/iw4x_custom.cfg' |
| |
| <code> | <code> |
| * https://github.com/iw4x/iw4-server-configs | * https://github.com/iw4x/iw4-server-configs |
| |
| mkdir -p ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players' && nano ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players/iw4x_localhost.cfg' | mkdir -p ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players' && ee ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players/iw4x_localhost.cfg' |
| |
| <code> | <code> |
| * Last tested: ''dxvk-master-9aa4e3da8d026b767de3c530e3b6bd0cdd9b0a76.zip'' | * Last tested: ''dxvk-master-9aa4e3da8d026b767de3c530e3b6bd0cdd9b0a76.zip'' |
| |
| unzip -j -o ~/'Downloads/dxvk-master-'*'.zip' 'x32/d3d9.dll' -d ~/'.wine/Call of Duty Modern Warfare 2 (2009)/drive_c/windows/syswow64' | unzip -j -o ~/'Downloads/dxvk-master-'*'.zip' 'x32/d3d9.dll' -d ~/'.wine/Call of Duty Modern Warfare 2 (2009)/drive_c/windows/system32' |
| |
| ==== Dll Override ==== | ==== Dll Override ==== |
| * https://github.com/doitsujin/dxvk/blob/master/dxvk.conf | * https://github.com/doitsujin/dxvk/blob/master/dxvk.conf |
| |
| nano ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/dxvk.conf' | ee ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/dxvk.conf' |
| |
| <code> | <code> |
| ===== Server Start ===== | ===== Server Start ===== |
| |
| mkdir -p ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)' && nano ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-localhost-server-start.sh' && chmod +x ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-localhost-server-start.sh' | mkdir -p ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)' && ee ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-localhost-server-start.sh' && chmod +x ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-localhost-server-start.sh' |
| |
| <code> | <code> |
| export WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' | export WINEPREFIX=~/'.wine/Call of Duty Modern Warfare 2 (2009)' |
| |
| 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 | '/usr/local/bin/wine64.bin' ~/'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' |
| ===== IW4x Update ===== | ===== IW4x Update ===== |
| |
| mkdir -p ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)' && nano ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-update.sh' && chmod +x ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-update.sh' | mkdir -p ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)' && ee ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-update.sh' && chmod +x ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-update.sh' |
| |
| <code> | <code> |
| ===== Bot Warfare Update ===== | ===== Bot Warfare Update ===== |
| |
| mkdir -p ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)' && nano ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-bot-warfare-update.sh' && chmod +x ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-bot-warfare-update.sh' | mkdir -p ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)' && ee ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-bot-warfare-update.sh' && chmod +x ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-bot-warfare-update.sh' |
| |
| <code> | <code> |
| ===== Profile Back-up ===== | ===== Profile Back-up ===== |
| |
| mkdir -p ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)' && nano ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-profile-backup.sh' && chmod +x ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-profile-backup.sh' | mkdir -p ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)' && ee ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-profile-backup.sh' && chmod +x ~/'Steam/scripts/Call of Duty Modern Warfare 2 (10180)/iw4x-profile-backup.sh' |
| |
| <code> | <code> |
| ===== IW4x ===== | ===== IW4x ===== |
| |
| mkdir -p ~/'.local/share/applications/wine/Programs/IW4x' && nano ~/'.local/share/applications/wine/Programs/IW4x/IW4x.desktop' && sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/IW4x/IW4x.desktop' && update-desktop-database --quiet ~/'.local/share/applications' | mkdir -p ~/'.local/share/applications/wine/Programs/IW4x' && ee ~/'.local/share/applications/wine/Programs/IW4x/IW4x.desktop' && sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/IW4x/IW4x.desktop' && update-desktop-database --quiet ~/'.local/share/applications' |
| |
| <code> | <code> |
| **** | **** |
| |
| nano ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players/iw4x_config.cfg' | ee ~/'Steam/steamapps/common/Call of Duty Modern Warfare 2/players/iw4x_config.cfg' |
| |
| ===== Root Folder ===== | ===== Root Folder ===== |