games:windows:cod_mw2_2009_iw4x_steamcmd
Table of Contents
- trinitycore_3.3.5_localhost (MSVC)
2026/05/14: WIP (needs more Rawfiles stuff noted but works)
SteamCMD
Restore
MKDIR "%ProgramFiles%\Steam\steamapps\common" & "%SystemRoot%\explorer.exe" "%ProgramFiles%\Steam\steamapps"
DIR /B "%ProgramFiles%\Steam\steamapps\appmanifest_10180.acf" "%ProgramFiles%\Steam\steamapps\appmanifest_10190.acf" & DIR /AD /B "%ProgramFiles%\Steam\steamapps\common" | "%SystemRoot%\System32\find.exe" "Call of Duty Modern Warfare 2"
Install/Update
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +app_update "10180" +quit
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +app_update "10190" +quit
"%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +app_update "10180" validate +quit
TODO
MKDIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players"
"%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\iw4x_config.cfg"
seta r_useD3D9Ex "0" seta g_log "NUL"
"%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +set "g_antilag 0"
IW4x
Client
Download Source
"%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/iw4x/iw4x-client.git" "%UserProfile%\Projects\IW4x-Client\src"
Update
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\IW4x-Client\src" reset --hard "origin/main"
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\IW4x-Client\src" pull origin "main" --rebase
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\IW4x-Client\src" submodule update --init --recursive --rebase
Build
RMDIR /S /Q "%UserProfile%\Projects\IW4x-Client\src\build" & CD "%UserProfile%\Projects\IW4x-Client\src" && "%UserProfile%\Projects\IW4x-Client\src\tools\premake5.exe" --copy-to="%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2" --disable-binary-check "vs2022"
"%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe" "%UserProfile%\Projects\IW4x-Client\src\build\iw4x.vcxproj" -target:"Rebuild" -property:"Configuration=Release" -maxCpuCount -nodeReuse:"False" -terminalLogger:"off"
Check
DIR /B "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.dll"
Rawfiles
Download Source
"%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/iw4x/iw4x-rawfiles.git" "%UserProfile%\Projects\IW4x-Rawfiles\src"
IWDs
- Expects 7-Zip
MKDIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x"
"%ProgramFiles%\7-Zip\7z.exe" a -m"0=Copy" -t"zip" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_00.iwd" "%UserProfile%\Projects\IW4x-Rawfiles\src\iw4x\iw4x_00\*"
"%ProgramFiles%\7-Zip\7z.exe" a -m"0=Copy" -t"zip" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_01.iwd" "%UserProfile%\Projects\IW4x-Rawfiles\src\iw4x\iw4x_01\*"
"%ProgramFiles%\7-Zip\7z.exe" a -m"0=Copy" -t"zip" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_02.iwd" "%UserProfile%\Projects\IW4x-Rawfiles\src\iw4x\iw4x_02\*"
"%ProgramFiles%\7-Zip\7z.exe" a -m"0=Copy" -t"zip" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_03.iwd" "%UserProfile%\Projects\IW4x-Rawfiles\src\iw4x\iw4x_03\*"
"%ProgramFiles%\7-Zip\7z.exe" a -m"0=Copy" -t"zip" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_04.iwd" "%UserProfile%\Projects\IW4x-Rawfiles\src\iw4x\iw4x_04\*"
"%ProgramFiles%\7-Zip\7z.exe" a -m"0=Copy" -t"zip" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_05.iwd" "%UserProfile%\Projects\IW4x-Rawfiles\src\iw4x\iw4x_05\*"
English
"Linker.exe" --base-folder "%UserProfile%\Projects\IW4x-Rawfiles\src" "iw4x_localized_english"
C:\Program Files\Steam\steamapps\common\Call of Duty Modern Warfare 2\zone\patch\iw4x_localized_english.ff
Compat Settings
"%SystemRoot%\System32\reg.exe" ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" /t "REG_SZ" /d "~ DISABLEDXMAXIMIZEDWINDOWEDMODE HIGHDPIAWARE DISABLEDWM DISABLETHEMES NoDTToDITMouseBatch" /f
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iw4x.exe" /v "UseLargePages" /t "REG_DWORD" /d "1" /f
Firewall
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"
Delete Rules
"%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="Call of Duty Modern Warfare 2 (IW4x)"
/srv/www/wiki/data/pages/games/windows/cod_mw2_2009_iw4x_steamcmd.txt · Last modified: by Sean Rhone
