Jump to content

Automatted HL2 and HL game updating


JasonF

Recommended Posts

I set this up on my dedicated server and saves me from manually having to log into remote desktop and update all of my STEAM games. It creates a log and all I do is connect to the server via ftp and download the logs. If any were updated then I will log into remote desktop and rar/zip the game files for transfer to other servers.

 

1) Install hldsupdatetool

2) Create a .bat file on the desktop and enter the following in that file

 

@echo OFF

cd C:\Program Files (x86)\Valve\HLServer

 

echo *********** Updating HL and HL2 Games ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - Age of Chivalry ***********

 

HldsUpdateTool.exe -command update -game ageofchivalry -dir C:\GameInstalls\CHIVALRY 1>C:\hldsupdatetool_output\age_of_chivalry.txt

echo *********** Completed Update of HL2 - Age of Chivalry ***********

 

This will create a age_of_chivalry.txt file in a folder C:\hldsupdatetool_ouput, that displays the output of the update. The age_of_chivalry.txt file does not need to exist but the folder does.

 

3) Add the .bat file as a scheduled task to run daily, weekly, etc.

 

 

I created a single .bat file that does all of my hl and hl2 based games so it is completely automatted. I log into ftp and download the logs to see if any files were updated saving me from having to log into remote desktop and manually updating the files and seeing if they were modified.

Link to comment
Share on other sites

You can create your own. Simply take the above and put it in a bat file. You can add games by simply changing the -game ageofchivalry parameter to another gametype and adding it into the batch file and change the directory and txt file name.

Link to comment
Share on other sites

I made mine and it works and I share it ! x)

 

@echo OFF

cd C:\

 

echo *********** Updating HL and HL2 Games ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - Age of Chivalry ***********

 

HldsUpdateTool.exe -command update -game ageofchivalry -dir D:\GamesInstalls\AOC 1>C:\hldsupdatetool_output\age_of_chivalry.txt

echo *********** Completed Update of HL2 - Age of Chivalry ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - ZombiePanic ***********

 

HldsUpdateTool.exe -command update -game zps -dir D:\GamesInstalls\ZP 1>C:\hldsupdatetool_output\zp.txt

echo *********** Completed Update of HL2 - Zombie Panic ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - INSURGENCY ***********

 

HldsUpdateTool.exe -command update -game Insurgency -dir D:\GamesInstalls\INSURGENCY 1>C:\hldsupdatetool_output\insurgency.txt

echo *********** Completed Update of HL2 - Insurgency ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - CSS ***********

 

HldsUpdateTool.exe -command update -game "Counter-Strike Source" -dir D:\GamesInstalls\CSS 1>C:\hldsupdatetool_output\css.txt

echo *********** Completed Update of HL2 - Counter-Strike: Source ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - DODS ***********

 

HldsUpdateTool.exe -command update -game dods -dir D:\GamesInstalls\DODS 1>C:\hldsupdatetool_output\dods.txt

echo *********** Completed Update of HL2 - Day of Defeat: Source ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - TF2 ***********

 

HldsUpdateTool.exe -command update -game tf -dir D:\GamesInstalls\TF2 1>C:\hldsupdatetool_output\tf2.txt

echo *********** Completed Update of HL2 - Team Fortress 2 ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - HLDM ***********

 

HldsUpdateTool.exe -command update -game hl2mp -dir D:\GamesInstalls\HL2DM 1>C:\hldsupdatetool_output\hl2dm.txt

echo *********** Completed Update of HL2 - Half life 2 Deathmatch ***********

echo -

echo -

echo -

echo -

 

echo *********** About to Update HL - CS ***********

 

HldsUpdateTool.exe -command update -game cstrike -dir D:\GamesInstalls\CS 1>C:\hldsupdatetool_output\cs.txt

echo *********** Completed Update of HL - Counter-Strike ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL - DOD ***********

 

HldsUpdateTool.exe -command update -game dod -dir D:\GamesInstalls\DOD 1>C:\hldsupdatetool_output\dod.txt

echo *********** Completed Update of HL - Day of Defeat ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL - TF ***********

 

HldsUpdateTool.exe -command update -game tfc -dir D:\GamesInstalls\TF 1>C:\hldsupdatetool_output\tf.txt

echo *********** Completed Update of HL - Team Fortress ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL - Dathmatch ***********

 

HldsUpdateTool.exe -command update -game dmc -dir D:\GamesInstalls\HLDM 1>C:\hldsupdatetool_output\deathmatch.txt

echo *********** Completed Update of HL - Deathmatch ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL - Condition Zero ***********

 

HldsUpdateTool.exe -command update -game czero -dir D:\GamesInstalls\CZ 1>C:\hldsupdatetool_output\cz.txt

echo *********** Completed Update of HL - CZ ***********

echo -

echo -

echo -

echo -

echo *********** About to Update HL2 - Left 4 Dead ***********

 

HldsUpdateTool.exe -command update -game l4d -dir D:\GamesInstalls\CZ 1>C:\hldsupdatetool_output\l4d.txt

echo *********** Completed Update of HL2 - l4d ***********

 

pause

 

 

 

 

Here is it x) HL & hl2 games.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use