Graphics, Avatars and Logos
 
HomeCalendarFAQSearchMemberlistRegisterLog in

Share | 
 

 SRCDS Tips and Info

View previous topic View next topic Go down 
AuthorMessage
ÐRACØS
Administrator
Administrator
avatar

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

PostSubject: SRCDS Tips and Info   Fri 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 ...

_________________
~ÐRACØS~
Back to top Go down
View user profile http://steamcommunity.com/groups/ztec/
ÐRACØS
Administrator
Administrator
avatar

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

PostSubject: Re: SRCDS Tips and Info   Fri 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

_________________
~ÐRACØS~
Back to top Go down
View user profile http://steamcommunity.com/groups/ztec/
ÐRACØS
Administrator
Administrator
avatar

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

PostSubject: Re: SRCDS Tips and Info   Fri 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


_________________
~ÐRACØS~
Back to top Go down
View user profile http://steamcommunity.com/groups/ztec/
ÐRACØS
Administrator
Administrator
avatar

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

PostSubject: Re: SRCDS Tips and Info   Fri 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

_________________
~ÐRACØS~
Back to top Go down
View user profile http://steamcommunity.com/groups/ztec/
Sponsored content




PostSubject: Re: SRCDS Tips and Info   

Back to top Go down
 
SRCDS Tips and Info
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» General Painting tips and techniques
» The Beta - Tips n Tricks thread
» Series Info
» Tips for the Reaper (Persona 3)
» Tips on getting Rathian Plates?

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