| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:cod_mw2_2009_iw4x_steamcmd [2026/06/08 13:11] – Sean Rhone | games:windows:cod_mw2_2009_iw4x_steamcmd [2026/06/28 11:14] (current) – [Localization] Sean Rhone |
|---|
| |
| * Call of Duty: Modern Warfare 2 (2009) | * Call of Duty: Modern Warfare 2 (2009) |
| | * English |
| * Steam ((https://store.steampowered.com/app/10180/Call_of_Duty_Modern_Warfare_2_2009/)) | * Steam ((https://store.steampowered.com/app/10180/Call_of_Duty_Modern_Warfare_2_2009/)) |
| * IW4x ((https://iw4x.io/)) | * IW4x ((https://iw4x.io/)) |
| |
| ===== Validate ===== | ===== Validate ===== |
| |
| **** | |
| |
| "%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +app_update "10180" validate +quit | "%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +app_update "10180" validate +quit |
| | |
| | "%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +app_update "10190" validate +quit |
| |
| ====== IW4x ====== | ====== IW4x ====== |
| |
| "%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/iw4x/iw4x-client.git" "%UserProfile%\Projects\IW4x-Client\src" | "%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/iw4x/iw4x-client.git" "%UserProfile%\Projects\IW4x-Client\src" |
| |
| === Older Rev === | |
| |
| * :!: 2026/06/07: Server randomly crashes on ''main'' [[https://github.com/iw4x/iw4x-client/commit/7d47e61fe38d27fa85ed2d1b856ccf7f794d39e1|7d47e61]] | |
| * [[https://github.com/iw4x/iw4x-client/commit/71d9570d11ded9f08b42f83d28358f5227bed789|71d9570]] is fine | |
| |
| "%ProgramFiles%\Git\bin\git.exe" clone --rev "71d9570d11ded9f08b42f83d28358f5227bed789" --depth "1" --recurse-submodules "https://github.com/iw4x/iw4x-client.git" "%UserProfile%\Projects\IW4x-Client\src" | |
| |
| ==== Compile ==== | ==== Compile ==== |
| |
| === Check === | === Check === |
| |
| **** | |
| |
| DIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_0"*".iwd" | DIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_0"*".iwd" |
| * https://github.com/Laupetin/OpenAssetTools | * https://github.com/Laupetin/OpenAssetTools |
| * https://openassettools.dev/guide/what-is-oat.html#tools | * https://openassettools.dev/guide/what-is-oat.html#tools |
| | * https://github.com/iw4x/iw4x-rawfiles#building |
| |
| MKDIR "%UserProfile%\Projects\IW4x-Rawfiles\ext" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\oat-windows.zip" --location "https://github.com/Laupetin/OpenAssetTools/releases/latest/download/oat-windows.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xvf "%Temp%\oat-windows.zip" -C "%UserProfile%\Projects\IW4x-Rawfiles\ext" "Linker.exe" && DEL /Q "%Temp%\oat-windows.zip" & "%UserProfile%\Projects\IW4x-Rawfiles\ext\Linker.exe" --version | MKDIR "%UserProfile%\Projects\IW4x-Rawfiles\ext" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\oat-windows.zip" --location "https://github.com/Laupetin/OpenAssetTools/releases/latest/download/oat-windows.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xvf "%Temp%\oat-windows.zip" -C "%UserProfile%\Projects\IW4x-Rawfiles\ext" "Linker.exe" && DEL /Q "%Temp%\oat-windows.zip" & "%UserProfile%\Projects\IW4x-Rawfiles\ext\Linker.exe" --version |
| |
| === English === | === English === |
| |
| **** | |
| |
| "%UserProfile%\Projects\IW4x-Rawfiles\ext\Linker.exe" --base-folder "%UserProfile%\Projects\IW4x-Rawfiles\src" --output-folder "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\zone\patch" "iw4x_localized_english" && DIR /B "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\zone\patch\iw4x_localized_english.ff" | "%UserProfile%\Projects\IW4x-Rawfiles\ext\Linker.exe" --base-folder "%UserProfile%\Projects\IW4x-Rawfiles\src" --output-folder "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\zone\patch" "iw4x_localized_english" && DIR /B "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\zone\patch\iw4x_localized_english.ff" |
| |
| ===== Files ===== | ===== Files ===== |
| |
| **** | |
| |
| "%SystemRoot%\System32\Robocopy.exe" "%UserProfile%\Projects\IW4-Bot-Warfare\src\scriptdata" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\userraw\scriptdata" /E /IS | "%SystemRoot%\System32\Robocopy.exe" "%UserProfile%\Projects\IW4-Bot-Warfare\src\scriptdata" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\userraw\scriptdata" /E /IS |
| |
| ===== Block ===== | ===== Block ===== |
| |
| **** | |
| |
| "%SystemRoot%\System32\netsh.exe" advfirewall firewall add rule name="Call of Duty Modern Warfare 2 (IW4x)" dir="in" action="block" profile="any" program="%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" & "%SystemRoot%\System32\netsh.exe" advfirewall firewall add rule name="Call of Duty Modern Warfare 2 (IW4x)" dir="out" action="block" profile="any" program="%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" | "%SystemRoot%\System32\netsh.exe" advfirewall firewall add rule name="Call of Duty Modern Warfare 2 (IW4x)" dir="in" action="block" profile="any" program="%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" & "%SystemRoot%\System32\netsh.exe" advfirewall firewall add rule name="Call of Duty Modern Warfare 2 (IW4x)" dir="out" action="block" profile="any" program="%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" |
| |
| ===== Delete Rules ===== | ===== Delete Rules ===== |
| |
| **** | |
| |
| "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="Call of Duty Modern Warfare 2 (IW4x)" | "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="Call of Duty Modern Warfare 2 (IW4x)" |
| ==== 2.6.2 ==== | ==== 2.6.2 ==== |
| |
| * Last tested: ''dxvk-2.6.2.tar.gz'' (([[https://github.com/doitsujin/dxvk/wiki/Driver-support#dxvk-27-and-later|2.7+]] requires Vulkan 1.3)) | * Last tested: ''dxvk-2.6.2.tar.gz'' (([[https://github.com/doitsujin/dxvk/wiki/Driver-support/1db7de2a0f0b67b3e1b834dd211dc2faa4dcab80#dxvk-27-and-later|2.7+]] requires Vulkan 1.3)) |
| |
| * ''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%\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" |
| | |
| | ==== Environment ==== |
| | |
| | "%SystemRoot%\System32\setx.exe" "DXVK_LOG_LEVEL" "none" |
| | |
| | "%SystemRoot%\System32\setx.exe" "DXVK_STATE_CACHE" "disable" |
| |
| ==== dxvk.conf ==== | ==== dxvk.conf ==== |
| |
| * https://github.com/doitsujin/dxvk/blob/6a785068f4299c6f84fd350a1289b6400d32a7ab/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%\Steam\steamapps\common\Call of Duty Modern Warfare 2\dxvk.conf" |
| |
| <code> | <code> |
| # HUD | |
| #dxvk.hud = "devinfo,fps,memory,gpuload,frametimes" | #dxvk.hud = "devinfo,fps,memory,gpuload,frametimes" |
| #dxvk.hud = "full" | #dxvk.hud = "full" |
| |
| # Vsync | dxvk.allowFse = "True" |
| d3d9.presentInterval = "0" | d3d9.maxFrameLatency = "1" |
| d3d9.maxFrameRate = "-1" | d3d9.maxFrameRate = "-1" |
| | dxvk.latencySleep = "False" |
| # Intel | dxvk.disableNvLowLatency2 = "True" |
| | d3d9.hideNvidiaGpu = "False" |
| | d3d9.hideNvkGpu = "False" |
| | d3d9.hideAmdGpu = "False" |
| d3d9.hideIntelGpu = "False" | d3d9.hideIntelGpu = "False" |
| dxvk.hideIntegratedGraphics = "False" | d3d9.presentInterval = "0" |
| dxvk.enableGraphicsPipelineLibrary = "False" | |
| dxvk.trackPipelineLifetime = "False" | |
| dxvk.enableDescriptorBuffer = "False" | |
| | |
| # Etc | |
| dxvk.allowFse = "True" | |
| d3d9.dpiAware = "False" | |
| d3d9.enumerateByDisplays = "False" | |
| dxvk.tearFree = "False" | dxvk.tearFree = "False" |
| dxvk.disableNvLowLatency2 = "True" | dxvk.tilerMode = "False" |
| dxvk.latencySleep = "False" | d3d9.samplerAnisotropy = "16" |
| d3d9.maxFrameLatency = "1" | |
| d3d9.samplerLodBias = "-2.0" | d3d9.samplerLodBias = "-2.0" |
| dxvk.enableMemoryDefrag = "False" | |
| dxvk.lowerSinCos = "False" | |
| d3d9.deviceLocalConstantBuffers = "True" | |
| d3d9.seamlessCubes = "True" | |
| d3d9.floatEmulation = "False" | |
| d3d9.invariantPosition = "False" | d3d9.invariantPosition = "False" |
| d3d9.lenientClear = "True" | |
| dxvk.useRawSsbo = "True" | dxvk.useRawSsbo = "True" |
| dxvk.tilerMode = "False" | dxvk.enableGraphicsPipelineLibrary = "False" |
| | dxvk.trackPipelineLifetime = "False" |
| | dxvk.enableMemoryDefrag = "False" |
| | d3d9.dpiAware = "False" |
| | d3d9.lenientClear = "True" |
| | d3d9.floatEmulation = "False" |
| d3d9.sincosEmulation = "False" | d3d9.sincosEmulation = "False" |
| d3d8.placeP8InScratch = "True" | d3d9.forceSwapchainMSAA = "0" |
| d3d9.samplerAnisotropy = "0" | d3d9.deviceLocalConstantBuffers = "True" |
| dxvk.tilerMode = "False" | d3d9.enumerateByDisplays = "False" |
| d3d9.deferSurfaceCreation = "True" | d3d9.seamlessCubes = "True" |
| |
| # End</code> | # End</code> |
| * https://github.com/kcat/dsoal | * https://github.com/kcat/dsoal |
| |
| ==== DLLs ==== | ==== master ==== |
| |
| * ''latest-master/DSOAL.7z'' | * ''latest-master/DSOAL.7z'' |
| |
| ===== Start Menu ===== | ===== Start Menu ===== |
| |
| **** | |
| |
| MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\IW4x" & "%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\IW4x" | MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\IW4x" & "%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\IW4x" |
| |
| ===== 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%\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%\Steam\steamapps\common\Call of Duty Modern Warfare 2" |
| |