Raised This Month: $32 Target: $400
 8% 

Script to run Left 4 Dead 2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K o T
Senior Member
Join Date: Jan 2011
Old 08-26-2011 , 02:02   Script to run Left 4 Dead 2
Reply With Quote #1

Code:
@echo off cls echo Protecting srcds from crashes... <font color="#00eeff">echo</font> <font color="#0000ff">If</font> you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter. <font color="#00eeff">title</font> <font color="#0000dd">25100</font> Watchdog :srcds echo <font color="#000000">(</font>%time%<font color="#000000">)</font> l4d2-server1 started. <font color="#00eeff">start</font> /wait srcds.<font color="#00eeff">exe</font> -tickrate <font color="#0000dd">100</font> -restart -console -game left4dead2 +port <font color="#0000dd">27016</font> +maxplayers <font color="#0000dd">8</font> -nowatchdog -debug +fps_max <font color="#0000dd">600</font> +map c5m3_cemetery versus +exec l4d2-vs1.<font color="#00eeff">cfg</font> +map c1m1_hotel versus echo <font color="#000000">(</font>%time%<font color="#000000">)</font> WARNING: l4d2-server1 closed or crashed, restarting. <font color="#0000ff">goto</font> srcds


Tell me how to do it properly

Last edited by K o T; 08-26-2011 at 02:04.
K o T is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 08-27-2011 , 04:18   Re: Script to run Left 4 Dead 2
Reply With Quote #2

The code can't be on one line.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
K o T
Senior Member
Join Date: Jan 2011
Old 08-28-2011 , 05:24   Re: Script to run Left 4 Dead 2
Reply With Quote #3

Quote:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title 25100 Watchdog
:srcds
echo (%time%) l4d2-server1 started.
start /wait srcds.exe -tickrate 100 -restart -console -game left4dead2 +port 27016 +maxplayers 8 -nowatchdog -debug +fps_max 600 +map c5m3_cemetery versus +exec l4d2-vs1.cfg +map c1m1_hotel versus
echo (%time%) WARNING: l4d2-server1 closed or crashed, restarting.
goto srcds
K o T is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 08-28-2011 , 15:01   Re: Script to run Left 4 Dead 2
Reply With Quote #4

I think you need an empty line between the code belonging to the §srcds§ procedure and the code not belonging; sounds like the script mistakes the rest of the code belonging to it and thus doesn't know what to do.

Try this:
Code:
@echo off
cls
echo SrcDS will be started on crash/quit ...
echo If you want to close SrcDS and this script, close the SrcDS window and answer positively to whether to end the script.
title l4d2-server1 Watchdog

:srcds
echo (%time%) l4d2-server1 started.
start /wait srcds.exe -tickrate 100 -restart -console -game left4dead2  +port 27016 +maxplayers 8 -nowatchdog -debug +fps_max 600 +map  c5m3_cemetery versus +exec l4d2-vs1.cfg +map c1m1_hotel versus
echo (%time%) WARNING: l4d2-server1 closed or crashed, restarting.

goto srcds
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
K o T
Senior Member
Join Date: Jan 2011
Old 08-29-2011 , 03:08   Re: Script to run Left 4 Dead 2
Reply With Quote #5

In any case, thanks for the help
K o T 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 22:20.


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