• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

how to make a nice bat restarter for your server

cordinator

Banned User
Joined
Dec 28, 2010
Messages
491
Reaction score
17
Location
Philippines
GitHub
DavidChoot
Twitch
DavidChoot
YouTube
DavidChoot
First step: Open a notepad.

Second Step:in the first line in the notepad add this line "@echo off"

Step Three: if you want you can add like my restarter after "@echo"

Step Four: jump 2-3 lines and add this ":demon"

Step Five: go down one line and add this @"here goes your exe" but oviously change the "here goes your exe to the name of your exe line neverland.exe or yurots.exe.

Step Six: go down and write this @echo Sorry it crashed man restarting now!!. . .

Step Seven: now under add :goto Demon.

Step Eight.: skip 1-2 lines and add this line ":exit

Step Nine: Skip 1-2 lines again and write "@pause"

Step Ten: Now go file/save as and save it in your ot files folder and it should save like something similar to this: yurots.bat or neverland.bat.

At the end it should look like something like this

@echo off
full code
echo off
title NOTTINGHSTER ROCKS!
color 80
cls
:controllerini
NAME OF YOUR OT HERE, EXAMPLE: TFS.EXE
echo ~~
echo BOOM, Server crashed!
goto :controllerini
 
Last edited:
after @echo off
you don't need @ anymore. @ basically means "echo off for this line", and the command "echo off" puts echo off for all lines..
 
Where should i put this, and can you just post the whole code instead of steps? ...
 
you may add some info on when it last crashed, and process exit code, etc?
Code:
set starttime=%time%
set startdate=%date%
set /A crashtimes=0
:controllerini
NAME OF YOUR OT HERE, EXAMPLE: TFS.EXE
set /a crashtimes=%crashtimes%+1
echo last crashed: %time% - %date% Exit code: %errorlevel%
echo crashed %crashtimes% times  since started at %starttime% - %startdate%
goto controllerini
also if you if you want to fix the "crashed 1 times" bug, you can do
Code:
if %crashtimes% == 1 (
echo crashed %crashtimes% time  since started at %starttime% - %startdate%
) else (
echo crashed %crashtimes% times  since started at %starttime% - %startdate%
)
but much code just to fix a s... :p
 
you may also add some logging function, like
Code:
echo crashed: %time% - %date% Exit code: %errorlevel%>>crashlog.txt
 
Calm down on the bumps, and a tutorial is explaining something not making them learn themselves. Plus this is VERY basic.
 
Back
Top