* [[programs;windows;steamcmd]] * [[games;linux;wine;cod_mw2_2009_iw4x_steamcmd|Linux notes]] * [[servers;windows;games;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 ===== * https://github.com/iw4x/iw4x-client ==== Download Source ==== * https://github.com/iw4x/iw4x-client/commits/main/ "%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 ==== * https://github.com/iw4x/iw4x-client#premake-arguments * [[servers;windows;games;trinitycore_3.3.5_localhost#visual_studio_2022|VS 2022 notes]] 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 ===== * https://github.com/iw4x/iw4x-rawfiles ==== Download Source ==== * https://github.com/iw4x/iw4x-rawfiles/commits/main/ "%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 ==== * https://github.com/iw4x/iw4x-rawfiles#iw4x-rawfiles * Expects [[windows:10#zip|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)"