| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:cod_mw2_2009_iw4x_steamcmd [2026/06/30 23:28] – [Client] Sean Rhone | games:windows:cod_mw2_2009_iw4x_steamcmd [2026/08/10 20:04] (current) – Sean Rhone |
|---|
| * https://github.com/iw4x/iw4x-client#premake-arguments | * https://github.com/iw4x/iw4x-client#premake-arguments |
| |
| 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 "vs2026" | RMDIR /S /Q "%UserProfile%\Projects\IW4x-Client\src\build" & CD "%UserProfile%\Projects\IW4x-Client\src" && "%UserProfile%\Projects\IW4x-Client\src\tools\premake5.exe" --cc="msc-v145" --copy-to="%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2" --disable-binary-check "vs2026" |
| |
| "%ProgramFiles%\Microsoft Visual Studio\18\Insiders\MSBuild\Current\Bin\amd64\MSBuild.exe" "%UserProfile%\Projects\IW4x-Client\src\build\iw4x.vcxproj" -target:"Rebuild" -property:"Configuration=Release" -maxCpuCount -nodeReuse:"False" -terminalLogger:"off" && DIR /B "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.dll" | "%ProgramFiles%\Microsoft Visual Studio\18\Insiders\MSBuild\Current\Bin\amd64\MSBuild.exe" "%UserProfile%\Projects\IW4x-Client\src\build\iw4x.vcxproj" -target:"Rebuild" -property:"Configuration=Release" -maxCpuCount -nodeReuse:"False" -terminalLogger:"off" && DIR /B "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x.dll" |
| * Expects [[windows:10#zip|7-Zip]] | * Expects [[windows:10#zip|7-Zip]] |
| |
| MKDIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x" | === 0-2 === |
| |
| DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_00.iwd" && "%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\*" | MKDIR "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x" & DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_00.iwd" && "%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\*" |
| |
| DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_01.iwd" && "%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\*" | DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_01.iwd" && "%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\*" |
| |
| DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_02.iwd" && "%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\*" | DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_02.iwd" && "%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\*" |
| | |
| | === 3-5 === |
| |
| DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_03.iwd" && "%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\*" | DEL /Q "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\iw4x\iw4x_03.iwd" && "%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\*" |
| |
| ==== Localization ==== | ==== Localization ==== |
| | |
| | * https://github.com/iw4x/iw4x-rawfiles#building |
| |
| === Linker === | === Linker === |
| * 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 | |
| | == Release == |
| | |
| | * https://github.com/Laupetin/OpenAssetTools/releases |
| | * Last tested version: ''v0.30.0'' |
| |
| 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 |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\IW4x-Client\src" reset --hard "origin/main" --recurse-submodules | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\IW4x-Client\src" reset --hard "origin/main" --recurse-submodules |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\IW4x-Client\src" submodule update --init --recursive --rebase | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\IW4x-Client\src" submodule update --init --recursive --rebase |
| | |
| | ::"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\setup.exe" update --channelId "VisualStudio.18.Insiders" --channelURI "https://aka.ms/vs/insiders/channel" --productId "Microsoft.VisualStudio.Product.Community" --nocache --norestart --quiet |
| |
| CD "%UserProfile%\Projects\IW4x-Client\src" | CD "%UserProfile%\Projects\IW4x-Client\src" |
| |
| RMDIR /S /Q "%UserProfile%\Projects\IW4x-Client\src\build" | RMDIR /S /Q "%UserProfile%\Projects\IW4x-Client\src\build" |
| "%UserProfile%\Projects\IW4x-Client\src\tools\premake5.exe" --copy-to="%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2" --disable-binary-check "vs2026" | "%UserProfile%\Projects\IW4x-Client\src\tools\premake5.exe" --cc="msc-v145" --copy-to="%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2" --disable-binary-check "vs2026" |
| |
| CD "%Temp%" | CD "%Temp%" |
| ==== Rawfiles ==== | ==== Rawfiles ==== |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\IW4x Rawfiles Updater.bat" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-rawfiles-update.bat" |
| |
| <code> | <code> |
| :: End</code> | :: End</code> |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\IW4x Rawfiles Updater.bat" | "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-rawfiles-update.bat" |
| |
| ===== Bot Warfare Update ===== | ===== Bot Warfare Update ===== |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\Bot Warfare Updater.bat" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-bot-warfare-update.bat" |
| |
| <code> | <code> |
| :: End</code> | :: End</code> |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\Bot Warfare Updater.bat" | "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-bot-warfare-update.bat" |
| |
| ===== Profile Back-up ===== | ===== Profile Back-up ===== |
| |
| "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\IW4x Profile Backup.bat" | "%SystemRoot%\System32\notepad.exe" "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-profile-backup.bat" |
| |
| <code> | <code> |
| :: End</code> | :: End</code> |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\IW4x Profile Backup.bat" | "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-profile-backup.bat" |
| |
| ====== Settings ====== | ====== Settings ====== |
| bind MOUSE3 "+melee" | bind MOUSE3 "+melee" |
| bind MWHEELDOWN "weapnext" | bind MWHEELDOWN "weapnext" |
| | bind MOUSE4 "+forward" |
| |
| // Bot Warfare | // Bot Warfare |
| |
| // End</code> | // End</code> |
| | |
| | ===== localhost ===== |
| | |
| | ECHO ["127.0.0.1"] > "%ProgramFiles%\Steam\steamapps\common\Call of Duty Modern Warfare 2\players\favourites.json" |
| |
| ===== Server ===== | ===== Server ===== |
| 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 Client Update ==== | ==== IW4x Client Update ==== |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\IW4x Client Updater.bat" | "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-client-update.bat" |
| |
| IW4x Client Update | IW4x Client Update |
| ==== IW4x Rawfiles Update ==== | ==== IW4x Rawfiles Update ==== |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\IW4x Rawfiles Updater.bat" | "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-rawfiles-update.bat" |
| |
| IW4x Rawfiles Update | IW4x Rawfiles Update |
| ==== Bot Warfare Update ==== | ==== Bot Warfare Update ==== |
| |
| "%ProgramFiles%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\Bot Warfare Updater.bat" | "%ProgramFiles%\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%\Steam\scripts\Call of Duty Modern Warfare 2 (10180)\iw4x-profile-backup.bat" |
| |
| Profile Back-up | Profile Back-up |