SRCDS Steam group


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto update server
#1
I wrote a program which check the server console for message "MasterRequestRestart
Your server is out of date. Please update and restart." and reboot a server for update

for install u need have this structure of folder:

for example server folder on disk G: with name TF_Server

folder G:\TF_Server contains
Code:
hl2
orangebox
ClientRegistry.blob

cycle.cmd

HldsUpdateTool.exe
HldsUpdateTool_35.mst
InstallRecord.blob

folder G:\TF_Server\orangebox contains
Code:
bin
config
hl2
platform
tf
hlds_steamgames.vdf
srcds.exe
steam_appid.txt

tfstart.dll
tfstart.exe

As soon as in the server console there will be a text:
Code:
MasterRequestRestart
Your server is out of date.  Please update and restart.
program will write to console "say Update request recived. 5 min left for restart." and wait 5 min.
after 5 min program will write "say Starting server update. Wait 10 min.", create file "need_update.txt" in orangebox folder and write "exit" in console. file need_update.txt is trigger for command file cycle.cmd
starting cycle.cmd for run the server
download
Reply
#2
Sharing source code?
Reply
#3
now i'm testing this programm, may be later...
Reply
#4
Okay.
Reply
#5
if u found the problem, pls inform me...
Reply
#6
I haven't found any bugs yet. Except there is a weird .dll file included, don't if it is supposed to be there.
Reply
#7
tfstart.exe start the server and inject tfstart.dll into context of srcds.exe process and get access to the server console
when .dll is injected, tfstart.exe only waiting for end of srcds.exe process. main work is done in library
Reply
#8
aah okay.
Reply
#9
fix a bug )
Reply
#10

Does this still work?

?? anyone ??
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)