| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:cod_mw2_2009_iw4x_steam [2026/08/24 21:16] – Sean Rhone | games:windows:cod_mw2_2009_iw4x_steam [2026/08/24 22:57] (current) – Sean Rhone |
|---|
| |
| * [[windows:10|Windows 10 (21H2)]] | * [[windows:10|Windows 10 (21H2)]] |
| | * [[programs;windows;git|Git]] |
| |
| ====== Modern Warfare 2 ====== | ====== Modern Warfare 2 ====== |
| * ''d3d9.dll'' | * ''d3d9.dll'' |
| |
| DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.dxvk-cache" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x_d3d9.log" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\dxvk.tar.gz" --location "https://github.com/doitsujin/dxvk/releases/download/v2.6.2/dxvk-2.6.2.tar.gz" --progress-bar && "%SystemRoot%\System32\tar.exe" -xzf "%Temp%\dxvk.tar.gz" --strip-components="2" -C "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2" "dxvk-*/x32/d3d9.dll" && DEL /Q "%Temp%\dxvk.tar.gz" & DIR /B "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\d3d9.dll" | DEL /Q "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.dxvk-cache" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x_d3d9.log" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\dxvk.tar.gz" --location "https://github.com/doitsujin/dxvk/releases/download/v2.6.2/dxvk-2.6.2.tar.gz" --progress-bar && "%SystemRoot%\System32\tar.exe" -xzf "%Temp%\dxvk.tar.gz" --strip-components="2" -C "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2" "dxvk-*/x32/d3d9.dll" && DEL /Q "%Temp%\dxvk.tar.gz" & DIR /B "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\d3d9.dll" |
| |
| ==== Environment ==== | ==== Environment ==== |
| * https://github.com/doitsujin/dxvk/blob/9d6f54a1ade20d1d27dd421024717a636f3d8c68/dxvk.conf | * https://github.com/doitsujin/dxvk/blob/9d6f54a1ade20d1d27dd421024717a636f3d8c68/dxvk.conf |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\dxvk.conf" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\dxvk.conf" |
| |
| <code> | <code> |
| * ''dsoal-aldrv.dll'' | * ''dsoal-aldrv.dll'' |
| |
| "%SystemRoot%\System32\curl.exe" --output "%UserProfile%\Downloads\DSOAL.zip" --location "https://github.com/kcat/dsoal/releases/download/latest-master/DSOAL.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xf "%UserProfile%\Downloads\DSOAL.zip" -C "%UserProfile%\Downloads" && MOVE /Y "%UserProfile%\Downloads\DSOAL_r"*".zip" "%UserProfile%\Downloads\DSOAL-master.zip" && "%SystemRoot%\System32\tar.exe" -xf "%UserProfile%\Downloads\DSOAL-master.zip" --strip-components="2" -C "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2" "DSOAL/Win32/dsoal-aldrv.dll" "DSOAL/Win32/dsound.dll" && DIR /B "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\dsoal-aldrv.dll" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\dsound.dll" & DEL /Q "%UserProfile%\Downloads\DSOAL-master.zip" "%UserProfile%\Downloads\DSOAL.zip" | "%SystemRoot%\System32\curl.exe" --output "%UserProfile%\Downloads\DSOAL.zip" --location "https://github.com/kcat/dsoal/releases/download/latest-master/DSOAL.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xf "%UserProfile%\Downloads\DSOAL.zip" -C "%UserProfile%\Downloads" && MOVE /Y "%UserProfile%\Downloads\DSOAL_r"*".zip" "%UserProfile%\Downloads\DSOAL-master.zip" && "%SystemRoot%\System32\tar.exe" -xf "%UserProfile%\Downloads\DSOAL-master.zip" --strip-components="2" -C "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2" "DSOAL/Win32/dsoal-aldrv.dll" "DSOAL/Win32/dsound.dll" && DIR /B "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\dsoal-aldrv.dll" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\dsound.dll" & DEL /Q "%UserProfile%\Downloads\DSOAL-master.zip" "%UserProfile%\Downloads\DSOAL.zip" |
| |
| ==== alsoft.ini ==== | ==== alsoft.ini ==== |
| * https://github.com/kcat/openal-soft/blob/master/alsoftrc.sample | * https://github.com/kcat/openal-soft/blob/master/alsoftrc.sample |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\alsoft.ini" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\alsoft.ini" |
| |
| <code> | <code> |
| ====== Scripts ====== | ====== Scripts ====== |
| |
| MKDIR "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)" | MKDIR "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)" |
| |
| "%SystemRoot%\explorer.exe" "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)" | "%SystemRoot%\explorer.exe" "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)" |
| |
| ===== Server Start ===== | ===== Server Start ===== |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-localhost-server-start.bat" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-localhost-server-start.bat" |
| |
| <code> | <code> |
| CD "%Temp%" | CD "%Temp%" |
| |
| START "" /MIN /D "%Temp%" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" -dedicated -console -disable-notifies -disable-mongoose -disable-rate-limit-check +exec "iw4x_localhost.cfg" +map_rotate | START "" /MIN /D "%Temp%" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" -dedicated -console -disable-notifies -disable-mongoose -disable-rate-limit-check +exec "iw4x_localhost.cfg" +map_rotate |
| |
| :: End</code> | :: End</code> |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-localhost-server-start.bat" | "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-localhost-server-start.bat" |
| |
| ===== IW4x Updaters ===== | ===== IW4x Updaters ===== |
| * https://github.com/ineedbots/iw4_bot_warfare/issues/118 | * https://github.com/ineedbots/iw4_bot_warfare/issues/118 |
| |
| MKDIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" | MKDIR "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" |
| |
| ===== Client ===== | ===== Client ===== |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\iw4x_custom.cfg" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\iw4x_custom.cfg" |
| |
| <code> | <code> |
| seta r_noborder "0" | seta r_noborder "0" |
| seta r_vsync "0" | seta r_vsync "0" |
| seta r_mode "640x480" | |
| seta r_aspectRatio "standard" | |
| seta r_texFilterAnisoMax "16" | seta r_texFilterAnisoMax "16" |
| seta r_texFilterAnisoMin "16" | seta r_texFilterAnisoMin "16" |
| ===== localhost ===== | ===== localhost ===== |
| |
| ECHO ["127.0.0.1"] > "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\favourites.json" | ECHO ["127.0.0.1"] > "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\favourites.json" |
| |
| ===== Server ===== | ===== Server ===== |
| * https://github.com/iw4x/iw4-server-configs | * https://github.com/iw4x/iw4-server-configs |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\iw4x_localhost.cfg" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\iw4x_localhost.cfg" |
| |
| <code> | <code> |
| set bots_main_firstIsHost "1" | set bots_main_firstIsHost "1" |
| set bots_main_waitForHostTime "0" | set bots_main_waitForHostTime "0" |
| //set bots_manage_fill "17" | set bots_manage_fill "17" |
| set bots_manage_fill "11" | |
| set bots_main_menu "0" | set bots_main_menu "0" |
| set bots_main_chat "0" | set bots_main_chat "0" |
| ==== IW4x ==== | ==== IW4x ==== |
| |
| "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +exec "iw4x_custom.cfg" +set "r_fullscreen 1" +set "g_antilag 0" | "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +exec "iw4x_custom.cfg" +set "r_fullscreen 1" +set "g_antilag 0" |
| |
| IW4x | IW4x |
| ==== Server Start ==== | ==== Server Start ==== |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-localhost-server-start.bat" | "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-localhost-server-start.bat" |
| |
| IW4x Server | IW4x Server |
| ==== IW4x ==== | ==== IW4x ==== |
| |
| "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +exec "iw4x_custom.cfg" +set "r_fullscreen 1" +set "g_antilag 0" | "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +exec "iw4x_custom.cfg" +set "r_fullscreen 1" +set "g_antilag 0" |
| |
| IW4x | IW4x |
| === Windowed === | === Windowed === |
| |
| "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +exec "iw4x_custom.cfg" +set "r_fullscreen 0" +set "g_antilag 0" | "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +exec "iw4x_custom.cfg" +set "r_fullscreen 0" +set "g_antilag 0" |
| |
| IW4x (window) | IW4x (window) |
| ==== Server Start ==== | ==== Server Start ==== |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-localhost-server-start.bat" | "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-localhost-server-start.bat" |
| |
| Server Start (localhost) | Server Start (localhost) |
| |
| ==== IW4x Client Update ==== | ==== IW4x Update ==== |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-client-update.bat" | "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-update.bat" |
| |
| IW4x Client Update | IW4x Update |
| | |
| ==== IW4x Rawfiles Update ==== | |
| | |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-rawfiles-update.bat" | |
| | |
| IW4x Rawfiles Update | |
| |
| ==== Bot Warfare Update ==== | ==== Bot Warfare Update ==== |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-bot-warfare-update.bat" | "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-bot-warfare-update.bat" |
| |
| Bot Warfare Update | Bot Warfare Update |
| ==== Profile Backup ==== | ==== Profile Backup ==== |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-profile-backup.bat" | "%ProgramFiles(x86)%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-profile-backup.bat" |
| |
| Profile Back-up | Profile Back-up |
| ==== Profile Folder ==== | ==== Profile Folder ==== |
| |
| MKDIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" | MKDIR "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" |
| |
| "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" | "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" |
| |
| Profile Folder | Profile Folder |
| ==== Install Notes ==== | ==== Install Notes ==== |
| |
| "https://wiki.realmofespionage.xyz/games:windows:cod_mw2_2009_iw4x_steamcmd" | "https://wiki.realmofespionage.xyz/games:windows:cod_mw2_2009_iw4x_steam" |
| |
| Install Notes | Install Notes |
| * ''players\iw4x.stat'' | * ''players\iw4x.stat'' |
| |
| MKDIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" & "%SystemRoot%\explorer.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" | MKDIR "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" & "%SystemRoot%\explorer.exe" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players" |
| |
| ===== Main Config ===== | ===== Main Config ===== |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\iw4x_config.cfg" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\iw4x_config.cfg" |
| |
| ===== Root Folder ===== | ===== Root Folder ===== |
| |
| "%SystemRoot%\explorer.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2" | "%SystemRoot%\explorer.exe" "%ProgramFiles(x86)%\Steam\steamapps\common\Call of Duty Modern Warfare 2" |
| |