Raised This Month: $ Target: $400
 0% 

Script to run Left 4 Dead 2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 23:53.


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