Kuwl Posted July 12, 2007 Share Posted July 12, 2007 I figured it out. Thanks to reading more of the forums Link to comment Share on other sites More sharing options...
Derek Posted September 7, 2008 Share Posted September 7, 2008 Can someone post a script that restarts all game servers on certain machines? Thanks Link to comment Share on other sites More sharing options...
Derek Posted September 10, 2008 Share Posted September 10, 2008 Anyone =/ Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted September 11, 2008 Share Posted September 11, 2008 What is the best way to see if this script is actually restarting a game server? Hard to tell. Link to comment Share on other sites More sharing options...
studeggle Posted September 11, 2008 Share Posted September 11, 2008 Monitor the game server when you have it set to restart, or just review the uptime stats on the server. Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted September 11, 2008 Share Posted September 11, 2008 Duh. I shudda known that. lol Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted September 11, 2008 Share Posted September 11, 2008 ok, doesn't seem to work. Copy the script, change the TCXXXXXXXXX and save a .bat file. Then schedule in the taskmg? not working. I am on a windows box, btw, so I don't know if this changes anything Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted September 19, 2008 Share Posted September 19, 2008 anyone. Script doesn't work on my machine. Link to comment Share on other sites More sharing options...
LFA Posted September 20, 2008 Author Share Posted September 20, 2008 The file extension should be .tcascript not .bat Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted September 20, 2008 Share Posted September 20, 2008 Ahh, see thats the info I neeeded. Thanks Link to comment Share on other sites More sharing options...
Anubis1055 Posted November 6, 2008 Share Posted November 6, 2008 been poking at this for a while now. cant seem to find the error. i am using the code exactly the same as first post (for restarting specific service id) with the exception of useraction = false and gameid = 10. i am getting this error: Objects.Service.GetServices: The underlying connection was closed: Unable to connect to the remote server. Error: An exception occurred while executing the script Exception has been thrown out by the target of an invocation. Object refrence not set to an instance of an object. any ideas? Link to comment Share on other sites More sharing options...
Anubis1055 Posted November 11, 2008 Share Posted November 11, 2008 anyone? Link to comment Share on other sites More sharing options...
LFA Posted November 11, 2008 Author Share Posted November 11, 2008 "Unable to connect to the remote server" means the master monitor is not running or it can't connect for some reason. Is your master server behind a hardware firewall? Link to comment Share on other sites More sharing options...
Anubis1055 Posted November 12, 2008 Share Posted November 12, 2008 "Unable to connect to the remote server" means the master monitor is not running or it can't connect for some reason. Is your master server behind a hardware firewall? right now all of the servers are on one dedicated box. the entire machine is behind a firewall. its configed to allow connections directly to the process (example: c:/gamefolder/css/srcds/exe) *edit* ok i turned off the firewall and restarted the monitor for good measure. still not working >.< Link to comment Share on other sites More sharing options...
LFA Posted November 13, 2008 Author Share Posted November 13, 2008 Do you have a hardware firewall or a software firewall? Link to comment Share on other sites More sharing options...
Anubis1055 Posted November 15, 2008 Share Posted November 15, 2008 Do you have a hardware firewall or a software firewall? software, however even when i disable the firewall the connection still fails. Link to comment Share on other sites More sharing options...
LFA Posted November 16, 2008 Author Share Posted November 16, 2008 I need you to create a support ticket with the remote desktop login for your server so I can see what's wrong. Link to comment Share on other sites More sharing options...
Anubis1055 Posted November 16, 2008 Share Posted November 16, 2008 ticket sent. thanks >.> Link to comment Share on other sites More sharing options...
DontWannaName Posted January 25, 2009 Share Posted January 25, 2009 Is there any way I can restart my servers every night on my box without having master server access with tcadmin? I have remote desktop and such. Link to comment Share on other sites More sharing options...
jcroom Posted January 25, 2009 Share Posted January 25, 2009 Well I supposed you could just write a batch script to restart the game services.... Link to comment Share on other sites More sharing options...
Jaggl Posted June 24, 2009 Share Posted June 24, 2009 iam using: REM Restart All Game Servers REM http://clientforums.tcadmin.com/showthread.php?t=201 <tcascript> <language name="VB" /> <waitForUserAction value="true"/> <scriptCode><![CDATA[ Imports System Imports TCAdminSDK.Objects Public Class RestartGameServers Public Shared Sub Main() 'Get a list of all services Dim services() As Service = Service.GetServicesByUserId("Incognito-Kille") for each s as Service in services If s.CurrentStatus = ServiceStatus.Running Then Console.WriteLine("Restarting " & s.ServiceID) s.Stop() Threading.Thread.CurrentThread.Sleep(1000) s.Start() 'Wait a few seconds before restarting the 'next service to avoid high loads on server Threading.Thread.CurrentThread.Sleep(10000) End If next Console.WriteLine("Done. Press any key to continue.") End Sub End Class ]]></scriptCode> </tcascript> is it possible to add more UserID's to that script? Link to comment Share on other sites More sharing options...
powerpc Posted July 19, 2009 Share Posted July 19, 2009 Anyone know if we can setup a "rcon say" "Server restarting" when we run the script? Btw the script is working fine Link to comment Share on other sites More sharing options...
reck3d Posted July 23, 2009 Share Posted July 23, 2009 where do u put this script? Also is there a way to time this so it goes off every X hrs Link to comment Share on other sites More sharing options...
Juiced PC Gear Posted February 10, 2010 Share Posted February 10, 2010 Does this work for a single game server? Or just for the whole group of game servers for a particular game? Link to comment Share on other sites More sharing options...
lpgservers Posted February 10, 2010 Share Posted February 10, 2010 Does this work for a single game server? Or just for the whole group of game servers for a particular game? Maybe you should read the posts on the first page. It states it very clearly there and into the second. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.