The Meaning of Life, the Universe, and Everything.
Location:
ponca
Join Date:
2/18/2010
Posts:
64
Member Details
ive noticed that (depending on which server/custom server your running) usually when the minecraft server crashes it edventually closes out (my expierence with minercpp and the normal server) even after giving you an error message it stays open for a while and then closes out after about 7-10 minutes well, i wanted almost 'zero' management on my server, so i created an autorestarter, i dont know how useful people will find this but.. i use it all the time..
if you want it, i have attached it in a zip file
if you dont trust batch files i dont blame you, heres the code
@echo off
title Serb7's Minecraft autorestarter
color 02
:begin
:mine
cls
echo ############################################
echo ############################################
echo ##### #####
echo ##### Serb7's Minecraft Autorestarter #####
echo ##### #####
echo ############################################
echo ############################################
Ver | Find /V "er"
Ver | Find /V "er"
Ver | Find /V "er"
echo Checking for MineCPP
tasklist /FI "IMAGENAME eq minerCPP.exe" | find /i "minerCPP.exe"
IF ERRORLEVEL 2 GOTO MineY1
IF ERRORLEVEL 1 GOTO MineN1
:MineY1
echo minercpp is running
goto mineloop1
:mineN1
echo minercpp is not running
start minerCPP.exe
echo minercpp started
goto mineloop1
:mineloop1
ping 1.1.1.1 -n 30 -w 1000 > nul
goto mine
you can edit the code to work for anything right now its configured for minercpp though... if you want to change it for something else the main things you need to change are:
start minerCPP.exe to start <filenamehere> (file that starts your server)
and you need to edit tasklist /FI "IMAGENAME eq minerCPP.exe" | find /i "minerCPP.exe" change the "minercpp.exe"s to the process name of your server
if you want it, i have attached it in a zip file
if you dont trust batch files i dont blame you, heres the code
you can edit the code to work for anything right now its configured for minercpp though... if you want to change it for something else the main things you need to change are:
start minerCPP.exe to start <filenamehere> (file that starts your server)
and you need to edit tasklist /FI "IMAGENAME eq minerCPP.exe" | find /i "minerCPP.exe" change the "minercpp.exe"s to the process name of your server
please comment
the /wait command isnt a recognized command in alot of versions of vista