Raised This Month: $51 Target: $400
 12% 

How to get -autoupdate on Windows


Post New Thread Reply   
 
Thread Tools Display Modes
C0nw0nk
Senior Member
Join Date: May 2011
Location: United Kingdom
Old 05-20-2012 , 20:53   Re: How to get -autoupdate on Windows
Reply With Quote #21

Quote:
Originally Posted by Dr. McKay View Post
When you do a cold start (i.e. run the batch without the server running already), does hldsupdatetool appear?

Well i'm on a new operating system now (windows 200 so im trying this again and when i launched the batch this time i did get the hldsupdatetool come up but then it disapeared leaving me with a srcds command prompt and the server window.
C0nw0nk is offline
Send a message via MSN to C0nw0nk
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-20-2012 , 21:43   Re: How to get -autoupdate on Windows
Reply With Quote #22

Quote:
Originally Posted by C0nw0nk View Post
Well i'm on a new operating system now (windows 200 so im trying this again and when i launched the batch this time i did get the hldsupdatetool come up but then it disapeared leaving me with a srcds command prompt and the server window.
Right-click on the folder containing hldsupdatetool, go to Security, add "everyone" as Full Access, and set the owner as "everyone".
__________________
Dr. McKay is offline
C0nw0nk
Senior Member
Join Date: May 2011
Location: United Kingdom
Old 05-21-2012 , 01:31   Re: How to get -autoupdate on Windows
Reply With Quote #23

Even after doing that i am still left with two windows open instead of three ?
C0nw0nk is offline
Send a message via MSN to C0nw0nk
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-21-2012 , 07:12   Re: How to get -autoupdate on Windows
Reply With Quote #24

Quote:
Originally Posted by C0nw0nk View Post
Even after doing that i am still left with two windows open instead of three ?
Why would you have three?
__________________
Dr. McKay is offline
C0nw0nk
Senior Member
Join Date: May 2011
Location: United Kingdom
Old 05-21-2012 , 10:43   Re: How to get -autoupdate on Windows
Reply With Quote #25

I thought that was the point you was getting across is that i should have a hldsupdatetool console, the server console and the command prompt they should all stay open in order for it to update ?
C0nw0nk is offline
Send a message via MSN to C0nw0nk
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-21-2012 , 11:37   Re: How to get -autoupdate on Windows
Reply With Quote #26

Quote:
Originally Posted by C0nw0nk View Post
I thought that was the point you was getting across is that i should have a hldsupdatetool console, the server console and the command prompt they should all stay open in order for it to update ?
No. HldsUpdateTool should run, then close and the server should run. When the server shuts down, HldsUpdateTool should run again, followed by the server.
__________________
Dr. McKay is offline
jesy
Junior Member
Join Date: Jun 2007
Old 06-03-2012 , 11:37   Re: How to get -autoupdate on Windows
Reply With Quote #27

Quote:
Originally Posted by Dr. McKay View Post
Code:
@echo off
title SRCDS Watchdog/Updater
cls
echo (%date% %time%) Now starting SRCDS Watchdog/Updater
echo (%date% %time%) Now starting SRCDS Watchdog/Updater >> watchdog.log
:begin
echo (%date% %time%) Checking for SRCDS updates
echo (%date% %time%) Checking for SRCDS updates >> watchdog.log
start /wait C:\Path\To\hldsupdatetool.exe -command update -game tf -dir C:\Path\To\Server
echo (%date% %time%) Starting server
echo (%date% %time%) Starting server >> watchdog.log
start /wait C:\Path\To\Server\srcds.exe -game tf -console +maxplayers 32 +map ctf_2fort
echo (%date% %time%) WARNING: SRCDS quit or crashed, restarting
echo (%date% %time%) WARNING: SRCDS quit or crashed, restarting >> watchdog.log
goto begin
This method is BEST! Thanks.
I needed to run my Apache server with one click too, so I created next .bat files (3 batch files - first for Dr. Mckay's watchdog, second for execute Apache and third for execute watchdog.bat & apache.bat).

If someone need that, it looks like that (apache/watchdog used down here are .bat files):
Code:
start "apache" call "apache"
start "watchdog" call "watchdog"

Last edited by jesy; 06-03-2012 at 11:39.
jesy is offline
Pitbull3
AlliedModders Donor
Join Date: Aug 2009
Location: Degree-Gaming.com
Old 07-05-2012 , 23:18   Re: How to get -autoupdate on Windows
Reply With Quote #28

Anyone know how to get this to work with TCAdmin?
Pitbull3 is offline
Munra
Senior Member
Join Date: May 2004
Old 08-07-2012 , 08:49   Re: How to get -autoupdate on Windows
Reply With Quote #29

Quote:
Originally Posted by Pitbull3 View Post
Anyone know how to get this to work with TCAdmin?

Which Version of TCadmin do you use, V1 or V2? Do you own/rent an TCadmin license or do you rent servers from a GSP that uses TCadmin?

I only ask because I have been working on a way my self with version 2
__________________
http://anbservers.net
My Plugins
PMs for support will be ignored please use the plugin topic for support.

Last edited by Munra; 08-07-2012 at 08:50.
Munra is offline
Pitbull3
AlliedModders Donor
Join Date: Aug 2009
Location: Degree-Gaming.com
Old 08-07-2012 , 11:25   Re: How to get -autoupdate on Windows
Reply With Quote #30

Yes we own our own TCAdmin v2 license. And we own our own boxes... ( I am the C.O.O. of WYDServers.net)
Pitbull3 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode