diff --git a/mp/src/creategameprojects.bat b/mp/src/creategameprojects.bat index 563c9539b..dd8d889cb 100755 --- a/mp/src/creategameprojects.bat +++ b/mp/src/creategameprojects.bat @@ -1,3 +1,4 @@ +@echo off devtools\bin\vpc.exe /hl2mp +game /mksln momentum.sln copy momentum.sln+sln_fix.txt momentum.sln Powershell.exe -ExecutionPolicy Bypass -File creategameprojects.ps1 diff --git a/mp/src/creategameprojects.ps1 b/mp/src/creategameprojects.ps1 index e8ba270d1..9149170fe 100644 --- a/mp/src/creategameprojects.ps1 +++ b/mp/src/creategameprojects.ps1 @@ -4,12 +4,19 @@ if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdent pause exit } - +$ErrorActionPreference= 'silentlycontinue' $path = (Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 243750" -Name InstallLocation).InstallLocation if (!$path) { - Write-Warning "You should install Source SDK Base 2013 Multiplayer." + Write-Warning "You should install Source SDK Base 2013 Multiplayer.`nRequesting Steam to install the app..." + try { + $cmd ="cmd.exe" + &$cmd "/c start steam://install/243750/" + } + catch { + "Steam is not running." + } pause exit } @@ -37,4 +44,4 @@ $data = @" "@ -$data | Out-File game\client\client_hl2.vcxproj.user utf8 \ No newline at end of file +$data | Out-File game\client\client_hl2.vcxproj.user utf8