| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:cod_mw2_2009_iw4x_steamcmd [2026/05/13 03:28] – Sean Rhone | games:windows:cod_mw2_2009_iw4x_steamcmd [2026/05/14 18:53] (current) – Sean Rhone |
|---|
| * [[programs;windows;steamcmd]] | * [[programs;windows;steamcmd]] |
| * [[games;linux;wine;cod_mw2_2009_iw4x_steamcmd|Linux notes]] | * [[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" | 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" | 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 "10180" +quit |
| |
| "%ProgramFiles%\Steam\steamcmd.exe" +login "Espionage724" +app_update "10180" validate +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" | 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" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\iw4x_config.cfg" |
| | |
| | <code> |
| | seta r_useD3D9Ex "0" |
| | seta g_log "NUL"</code> |
| |
| "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +set "g_antilag 0" | "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.exe" +set "g_antilag 0" |
| |
| ====== iw4x-client ====== | ====== 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 ==== |
| |
| **** | **** |
| |
| "%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/iw4x/iw4x-client.git" "%UserProfile%\Projects\iw4x-client\src" | DIR /B "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.dll" |
| |
| ===== Update ===== | ===== Rawfiles ===== |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\iw4x-client\src" reset --hard "origin/main" | * https://github.com/iw4x/iw4x-rawfiles |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\iw4x-client\src" pull origin "main" --rebase | ==== Download Source ==== |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\iw4x-client\src" submodule update --init --recursive --rebase | * https://github.com/iw4x/iw4x-rawfiles/commits/main/ |
| |
| ===== Build ===== | "%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/iw4x/iw4x-rawfiles.git" "%UserProfile%\Projects\IW4x-Rawfiles\src" |
| |
| RMDIR /S /Q "%UserProfile%\Projects\iw4x-client\src\build" & CD "%UserProfile%\Projects\iw4x-client\src" && "%UserProfile%\Downloads\premake5.exe" "vs2022" | ==== IWDs ==== |
| |
| "%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" | * 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 ===== |
| | |
| | **** |
| |
| "%UserProfile%\Projects\iw4x-client\src\build\bin\Win32\Release\iw4x.dll" | "%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" |
| |
| ===== Copy ===== | ===== Delete Rules ===== |
| |
| **** | **** |
| |
| COPY /Y "%UserProfile%\Projects\iw4x-client\src\build\bin\Win32\Release\iw4x.dll" "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.dll" | "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="Call of Duty Modern Warfare 2 (IW4x)" |
| |