• DArkRP Dedicated Server Crash File
    5 replies, posted
Hey guys I need some help. I just got my new dedicated server running and I want a certain kind of batch file. OR at least the code for it. I need a batch file that will run as a watchdog kind of thing and, when my server crashes, restart it AS DARK RP. I found one that will start the server if it crashes but there is no way to tell it which gamemode to run. This is what it looks like: @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 srcds.com Watchdog :srcds echo (%time%) srcds started. start /wait srcds.exe -console -game garrysmod +map rp_c18_v1 +maxplayers 30 echo (%time%) WARNING: srcds closed or crashed, restarting. goto srcds OK so how can I tell it to run DArkRP when it restarts it? Whoever helps can be given free adminship to the server. Well at least the first few people who actually give me helpful information. Thanks!
You brought my hopes up with the title and dashed them quite expertly. Bravo!
@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 srcds.com Watchdog :srcds echo (%time%) srcds started. start /wait srcds.exe -console -game garrysmod +map rp_c18_v1 +maxplayers 30 +sv_defaultgamemode DarkRP echo (%time%) WARNING: srcds closed or crashed, restarting. goto srcds
[QUOTE=Vexxus;20127711]You brought my hopes up with the title and dashed them quite expertly. Bravo![/QUOTE] hah what were you expecting? me to tell you about oNE? [editline]02:10AM[/editline] [QUOTE=2Stroke;20128364]@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 srcds.com Watchdog :srcds echo (%time%) srcds started. start /wait srcds.exe -console -game garrysmod +map rp_c18_v1 +maxplayers 30 +sv_defaultgamemode DarkRP echo (%time%) WARNING: srcds closed or crashed, restarting. goto srcds[/QUOTE] thanks ill test this right now. if it works ill give you free admin. [editline]02:10AM[/editline] [QUOTE=2Stroke;20128364]@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 srcds.com Watchdog :srcds echo (%time%) srcds started. start /wait srcds.exe -console -game garrysmod +map rp_c18_v1 +maxplayers 30 +sv_defaultgamemode DarkRP echo (%time%) WARNING: srcds closed or crashed, restarting. goto srcds[/QUOTE] thanks ill test this right now. if it works ill give you free admin.
I don't want admin, I'm just helping. Good luck with your server!
Thnanks man. it looks lke it works. If you ever want it just tell me.
Sorry, you need to Log In to post a reply to this thread.