Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for csgo (1.7.2) runtime error on Windows clients #264

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions pts/csgo-1.7.2/install_windows.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
#!/bin/sh

steam steam://install/730
if /cygdrive/c/windows/system32/reg.exe query "HKEY_CURRENT_USER\Software\Valve\Steam" /v SteamPath
then
STEAMPATH=`/cygdrive/c/windows/system32/reg.exe query "HKEY_CURRENT_USER\Software\Valve\Steam" /v SteamPath | awk '$1 ~ "SteamPath" && $2 ~ "REG_SZ" { ORS=""; for (i = 3; i < NF; i++) print($i " "); print(substr($NF, 1, length($NF)-1)) }'`
else
echo "ERROR: Steam is not found on the system! This test profile needs to find Steam configuration data in the Windows Registry."
echo 2 > ~/install-exit-status
exit
fi

"/cygdrive/${STEAMPATH:0:1}/${STEAMPATH:3}/steam.exe" "steam://install/730"

unzip -o csgo-demo-10.zip
mv pts10.dem "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo"
mv pts10.dem "${STEAMPATH}/steamapps/common/Counter-Strike Global Offensive/csgo"

echo "#!/bin/sh
cd \"C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\"
cd \"${STEAMPATH}/steamapps/common/Counter-Strike Global Offensive\"
rm -rf csgo/SourceBench*
rm -f UNKNOWN
./csgo.exe -game csgo \$@ +con_logfile log.log
../../../steam.exe -applaunch 730 \$@ +con_logfile log.log
sleep 6 # Short wait for Steam to start the CS:GO process.
powershell.exe -NonInteractive -Command \"Wait-Process csgo\"
cat csgo/log.log* > \$LOG_FILE
cat csgo/SourceBench* >> \$LOG_FILE
cat csgo/UNKNOWN >> \$LOG_FILE" > csgo
chmod +x csgo
echo 0 > ~/install-exit-status