ÐRACØS GRAPHIX
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Graphics, Avatars and Logos
 
HomeLatest imagesSearchRegisterLog in

 

 SRCDS Tips and Info

Go down 
AuthorMessage
ÐRACØS
Administrator
Administrator
ÐRACØS


Posts : 246
Join date : 2010-01-05
Age : 64
Location : Garibaldi Oregon

SRCDS Tips and Info Empty
PostSubject: SRCDS Tips and Info   SRCDS Tips and Info EmptyFri 29 Oct 2010, 6:05 pm

This string is for srcds win32 programs.
If you are running a srcds server from a PC in your home, this is the place to post your ideas or what actually works ...
Back to top Go down
http://steamcommunity.com/groups/ztec/
ÐRACØS
Administrator
Administrator
ÐRACØS


Posts : 246
Join date : 2010-01-05
Age : 64
Location : Garibaldi Oregon

SRCDS Tips and Info Empty
PostSubject: Re: SRCDS Tips and Info   SRCDS Tips and Info EmptyFri 29 Oct 2010, 6:09 pm

I have found a .bat file that updates your server when you start it and if it runs all the time you can update by typing in exit and it will loop and start again. If you do not run it all the time, take the last line out "GOTO UPDATE". The only problem I have found with it so far is it starts another window with the C:\L4D2 prompt and I have to close the window and then put "n" on the "terminate batch file" to start the server ... if someone sees what I am doing wrong, please tell me ... lol

ECHO OFF

:UPDATE
Echo Updating
[your update command goes here]

:START
ECHO Starting Server
start /wait [your server startup command goes here]

GOTO UPDATE
Back to top Go down
http://steamcommunity.com/groups/ztec/
ÐRACØS
Administrator
Administrator
ÐRACØS


Posts : 246
Join date : 2010-01-05
Age : 64
Location : Garibaldi Oregon

SRCDS Tips and Info Empty
PostSubject: Re: SRCDS Tips and Info   SRCDS Tips and Info EmptyFri 29 Oct 2010, 6:21 pm

I found it ... D'OH The start/wait should not be there.

This is for one that runs all the time:

ECHO OFF

:UPDATE
Echo Updating
[your update command goes here]

:START
ECHO Starting Server
[your server startup command goes here]

GOTO UPDATE

When you type "exit" the batch file loops and starts again. That way you can update your server and restart it quickly.

.... and this is for the one you just start when you play then exit:

ECHO OFF

:UPDATE
Echo Updating
[your update command goes here]

:START
ECHO Starting Server
[your server startup command goes here]

Oh and take out the brackets ... this updates your server every time it starts ... it takes longer, but you dont have to " start it - stop it - update - start it ". The -autoupdate command only works on linux systems, not windows. Rolling Eyes

Back to top Go down
http://steamcommunity.com/groups/ztec/
ÐRACØS
Administrator
Administrator
ÐRACØS


Posts : 246
Join date : 2010-01-05
Age : 64
Location : Garibaldi Oregon

SRCDS Tips and Info Empty
PostSubject: Re: SRCDS Tips and Info   SRCDS Tips and Info EmptyFri 29 Oct 2010, 6:27 pm

If you need .bat files for update or starting the server (command lines) I have the basic version without all the crap in it.

Here is the code for the .bat file to restart the server after a crash (automatic):

::=======================::
:: SRCDS Guardian 3.0 ::
:: Mooga ::
:: SRCDS.com ::
::=======================::

::=========================================================::
:: Thanks To Black-Sky & Drocona for making SRCDS Guardian ::
:: This script is open source. Feel free to edit at will. ::
:: ::
:: This script was writen for the use of the srcds.com ::
:: online community. If you are interested in running a ::
:: Source Dedicated Server or need help, drop by our ::
:: forums at... http://forums.srcds.com ::
::=========================================================::

::=======================::
:: SET YOUR VARIABLES! ::
::=======================::

::=======================::
:: Window and Log name ::
:: Replace "My Server" ::
::=======================::
set servername=My Server

::=======================::
:: Your start command ::
:: Replace after = ::
::=======================::
set runcmd=C:\srcds\srcds.exe -console -game cstrike -maxplayers 16 +fps_max 200 -port 27015 +map de_dust -tickrate 66

::=======================::
:: End of variables ::
::=======================::

:: This will keep the window clean and easy to read
@echo off

:: Sets the title of the window
title SRCDS Guardian 3.0 %servername%

:: Clears the window incase there is anything there
cls

:: Prints to the window what we are doing
echo SRCDS Guardian 3.0 has been started!
echo.
echo *************************************************************************
echo To close the server, close this window and type exit in the server window
echo *************************************************************************
echo.
echo.
echo %servername% is now starting...
>> "%servername%.log" echo.
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) SRCDS Guardian 3.0 has been started!
>> "%servername%.log" echo (%date%)(%time%) %servername% is now starting...

:: This is a return point in case the server crashes or is closed
:restart

echo.
echo (%date%)(%time%) %servername% is now ONLINE
echo Watching %servername% for crashes...
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) %servername% is now ONLINE
>> "%servername%.log" echo (%date%)(%time%) Watching %servername% for crashes...

::Start the actual server
start /wait %runcmd%

echo.
echo (%date%)(%time%) Crash or Close detected!
echo %servername% is now restarting...
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) Crash or Close detected!
>> "%servername%.log" echo (%date%)(%time%) %servername% is now restarting...

::Server crashed or closed, so we point it to the return point to start the server again
goto restart
Back to top Go down
http://steamcommunity.com/groups/ztec/
Sponsored content





SRCDS Tips and Info Empty
PostSubject: Re: SRCDS Tips and Info   SRCDS Tips and Info Empty

Back to top Go down
 
SRCDS Tips and Info
Back to top 
Page 1 of 1
 Similar topics
-
» SRCDS Forums
» Tips for playing KF
» Coming soon......tips for playing KF
» Versus tips on youtube
» GameTracker Info

Permissions in this forum:You cannot reply to topics in this forum
ÐRACØS GRAPHIX :: Game Forum :: SRCDS-
Jump to: