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

autostart hlds after crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kr4nk
Junior Member
Join Date: Nov 2009
Location: Vienna
Old 12-18-2009 , 15:00   autostart hlds after crash
Reply With Quote #1

how can i make if here is a crash on my HLDS (using console for better cpu) that it starts again? Because i am most time not at home but my pc is on so i dont know if here will be a crash
__________________
Love ya'
kr4nk is offline
Send a message via MSN to kr4nk
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 12-18-2009 , 15:05   Re: autostart hlds after crash
Reply With Quote #2

Put this in a BAT file
Code:
@echo off
cls
echo Protecting HLDS from crashes...
echo If you want to close HLDS and this script, close the srcds window and type Y depending on your language followed by Enter.
title HLDS
:HLDS
echo (%time%) HLDS started.
start /wait hlds.exe -game cstrike -console -port 27016 +maxplayers 22 +map de_dust2
echo (%time%) WARNING: HLDS closed or crashed, restarting.
goto HLDS
and then put the BAT file in the same folder where hlds.exe is .
+K if helped .
__________________


T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
kr4nk
Junior Member
Join Date: Nov 2009
Location: Vienna
Old 12-18-2009 , 15:27   Re: autostart hlds after crash
Reply With Quote #3

Hmm, i use the hlds as console and its placed on desktop... see this:

http://www.wikihow.com/Set-up-a-Steam-Dedicated-Server

i did like this for better cpu so do i need to place the bat file on desktop or HLserver folder?
__________________
Love ya'
kr4nk is offline
Send a message via MSN to kr4nk
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 12-18-2009 , 15:35   Re: autostart hlds after crash
Reply With Quote #4

Place the BAT file in your hlserver and then run it . To test the script , simply close the hlds.exe process .
__________________


T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
kr4nk
Junior Member
Join Date: Nov 2009
Location: Vienna
Old 12-18-2009 , 15:38   Re: autostart hlds after crash
Reply With Quote #5

thx +k
__________________
Love ya'
kr4nk is offline
Send a message via MSN to kr4nk
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 12-18-2009 , 17:14   Re: autostart hlds after crash
Reply With Quote #6

There are any auto-up script for linux ?
__________________
Javivi is offline
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 12-18-2009 , 17:30   Re: autostart hlds after crash
Reply With Quote #7

See THIS .
+K aswell if helped .
__________________


T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 12-18-2009 , 17:34   Re: autostart hlds after crash
Reply With Quote #8

No. These scripts are only for start/restart/stop the server. I asked for a auto-start o.o
__________________
Javivi is offline
T-z3P
Senior Member
Join Date: Apr 2008
Location: Iasi, Romania
Old 12-18-2009 , 18:02   Re: autostart hlds after crash
Reply With Quote #9

Check THIS ...
__________________


T-z3P is offline
Send a message via Yahoo to T-z3P Send a message via Skype™ to T-z3P
mattisbogus
Senior Member
Join Date: Jun 2009
Location: North Carolina, USA
Old 12-18-2009 , 18:06   Re: autostart hlds after crash
Reply With Quote #10

ServerDoc works great for me.
mattisbogus 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 18:19.


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