11-21-2009, 08:10 AM
Hello,
I am planning on setting up a source server but am having difficulty thinking of a way it will work because . . .
CAN YOU MAKE SRCDS RETURN A CUSTOMIZED ERROR CODE?
here is my pseudocode bat file
the idea is that i could trigger one of these errorcodes in rcon and cause it to quit the server and start a new server in a new game. Is this possible?
I am planning on setting up a source server but am having difficulty thinking of a way it will work because . . .
- I only want to run one server at a time
- I want to use my server to run several different games
- I will not always be able to directly access my server
CAN YOU MAKE SRCDS RETURN A CUSTOMIZED ERROR CODE?
here is my pseudocode bat file
Code:
:GAME1
START /wait hldsupdate for game1
START /wait server for game1
IF errorlevel is one of my custom errorlevels GOTO SELECT
GOTO GAME1
[insert one of these for each game]
...
:SELECT
IF ERRORLEVEL customerrorlevel1 GOTO GAME1
IF ERRORLEVEL customerrorlevel2 GOTO GAME2
etc. etc.