• 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!

Windows Remote Control/OtAdmin for TFS

Deaktiver

Materia
Joined
Nov 25, 2007
Messages
636
Reaction score
3
Location
Germany
Hello,

are there any programs that restart the server every (for example) 10 houres.
example: every 10 houres does the programm execute the command !save then /closeserver and then an auto restart..
Are there any Programs for Windows?!


Deaktiver
 
You can setup a scheduled event on your computer (If you are using Windows) that launches a pre-defined batch file which saves and restarts the server.

If you are interested in this method, search for "Windows How to add Scheduled Tasks" on Google.

And of course, search for otadmin on this forum.
 
Here is the batch script that I use to restart my server:

save as "restart.bat":
Code:
@echo off
cls

rem OTServersave (OTSS) - Batch script using OTAdmin
rem ------------------------------------------------
rem Developer: Felipe Correa (Nightmare) (based on GriZzm0 shell script)
rem First Release: February 6, 2008
rem Current Release: February 6, 2008
rem Version: 0.1b
rem 
rem OTAdmin (wiki): http://otserv.org/index.php?title=OTAdmin
rem OTAdmin (sources/binaries): https://sourceforge.net/project/showfiles.php?group_id=32523&package_id=202862&release_id=567041
rem 
rem Programs used: otadmin
rem ------------------------------------------------

rem ################# START CONFIG #################

rem ## otserv dir without the final "\" ##
set OTSERV_DIR="C:\otserv"

rem ## otserv executable name ##
set OTSERV_EXE="otserv.exe"

rem ## path to the otadmin executable ##
set OTADMIN_PATH="C:\otadmin\otadmin.exe"

rem ## otadmin settings ##
set OTADMIN_IP="localhost"
set OTADMIN_PORT="7171"
set OTADMIN_PASSWORD="test"

rem ## otadmin commands ##
set OTADMIN_COMMANDS="server %OTADMIN_IP% %OTADMIN_PORT%" "connect %OTADMIN_PASSWORD%" "broadcast The server is going down for a serversave in 15 minutes." "sleep 300000" "broadcast The server is going down for a serversave in 10 minutes." "sleep 300000" "broadcast The server is going down for a serversave in 5 minutes." "sleep 120000" "broadcast The server is going down for a serversave in 3 minutes. Please logout." "sleep 120000" "broadcast The server is going down for a serversave in one minute. Please logout." "sleep 60000" "closeserver" "broadcast Server closed. Ten seconds until server shutdown." "sleep 10000" "shutdown" "sleep 10000" "disconnect"

rem ################## END CONFIG ##################

echo :: Checking config...

if not exist %OTSERV_DIR%\%OTSERV_EXE% (
    goto WORNG_OTSERV_PATH
)
if not exist %OTADMIN_PATH% (
    goto WORNG_OTADMIN_PATH
)

echo :: All config are ok!

echo :: Starting OTAdmin...
%OTADMIN_PATH% %OTADMIN_COMMANDS%
echo :: OTADMIN: Commands executed successfully!

echo :: Sleeping 30 seconds...
ping 0.0.0.0 -n 30 -w 1000 > nul

echo :: Starting server...
cd %OTSERV_DIR%
%OTSERV_EXE%
exit

:WORNG_OTSERV_PATH
echo :: Wrong OTServ dir and/or execuatble!
pause
exit

:WORNG_OTADMIN_PATH
echo :: Wrong OTAdmin path!
pause
exit

Just edit the settings (OTSERV_DIR, OTSERV_EXE, OTADMIN_PATH, OTADMIN_IP, OTADMIN_PORT and OTADMIN_PASSWORD) and set a "Scheduled Task" for it.

To schedule a task on windows go to Start > All programs > Accessories > System Tools > Scheduled Tasks.
 
If I try to "start" otadmin it dissapear after opening and if I start restart.bat this message comes (password for OTadmin in admin.xml?)



Maybe wrong OTadmin? Its only otadmin.exe not more..is it really for windows? Settings in restart.bat are right (I checked it 10 times). Where's the problem?

One more Question: When I'm adding the Shedulded Task..I have to activate the setting "close procress if running" ? Or the setting "close this procress after XX houres"?
 
Last edited:
Go to "Start" > "All Programs" > "Accessories" > "System Tools" > "Scheduled Tasks"

I'm testing it now :D

ok it does not work. Still the same Error but now when I'm trying to start OTadmin comes a error which means that I have to install the programm new. And on restart.bat still the same error:


Please help me..

ok I think the Problem is on "OtAdmin" because it can not start..isn't it for windows? Please upload ur otadmin nightmare and post a link here again, please.
 
Last edited by a moderator:
u gave me OTADMIN/BIN/ but I need the whole OTADMIN folder..

EDIT:
Where to set the password for OTADMIN?
OTADMIN works on my PC at home but not on my Virtual Server. Where's the Problem? oO
 
Last edited:
Here is the batch script that I use to restart my server:

save as "restart.bat":
Code:
@echo off
cls

rem OTServersave (OTSS) - Batch script using OTAdmin
rem ------------------------------------------------
rem Developer: Felipe Correa (Nightmare) (based on GriZzm0 shell script)
rem First Release: February 6, 2008
rem Current Release: February 6, 2008
rem Version: 0.1b
rem
rem OTAdmin (wiki): http://otserv.org/index.php?title=OTAdmin
rem OTAdmin (sources/binaries): https://sourceforge.net/project/showfiles.php?group_id=32523&package_id=202862&release_id=567041
rem
rem Programs used: otadmin
rem ------------------------------------------------

rem ################# START CONFIG #################

rem ## otserv dir without the final "\" ##
set OTSERV_DIR="C:\otserv"

rem ## otserv executable name ##
set OTSERV_EXE="otserv.exe"

rem ## path to the otadmin executable ##
set OTADMIN_PATH="C:\otadmin\otadmin.exe"

rem ## otadmin settings ##
set OTADMIN_IP="localhost"
set OTADMIN_PORT="7171"
set OTADMIN_PASSWORD="test"

rem ## otadmin commands ##
set OTADMIN_COMMANDS="server %OTADMIN_IP% %OTADMIN_PORT%" "connect %OTADMIN_PASSWORD%" "broadcast The server is going down for a serversave in 15 minutes." "sleep 300000" "broadcast The server is going down for a serversave in 10 minutes." "sleep 300000" "broadcast The server is going down for a serversave in 5 minutes." "sleep 120000" "broadcast The server is going down for a serversave in 3 minutes. Please logout." "sleep 120000" "broadcast The server is going down for a serversave in one minute. Please logout." "sleep 60000" "closeserver" "broadcast Server closed. Ten seconds until server shutdown." "sleep 10000" "shutdown" "sleep 10000" "disconnect"

rem ################## END CONFIG ##################

echo :: Checking config...

if not exist %OTSERV_DIR%\%OTSERV_EXE% (
    goto WORNG_OTSERV_PATH
)
if not exist %OTADMIN_PATH% (
    goto WORNG_OTADMIN_PATH
)

echo :: All config are ok!

echo :: Starting OTAdmin...
%OTADMIN_PATH% %OTADMIN_COMMANDS%
echo :: OTADMIN: Commands executed successfully!

echo :: Sleeping 30 seconds...
ping 0.0.0.0 -n 30 -w 1000 > nul

echo :: Starting server...
cd %OTSERV_DIR%
%OTSERV_EXE%
exit

:WORNG_OTSERV_PATH
echo :: Wrong OTServ dir and/or execuatble!
pause
exit

:WORNG_OTADMIN_PATH
echo :: Wrong OTAdmin path!
pause
exit

Just edit the settings (OTSERV_DIR, OTSERV_EXE, OTADMIN_PATH, OTADMIN_IP, OTADMIN_PORT and OTADMIN_PASSWORD) and set a "Scheduled Task" for it.

To schedule a task on windows go to Start > All programs > Accessories > System Tools > Scheduled Tasks.

Hello!

How can i do a server save every 5-10 minutes to AVESTA 0.6.3 ?
 
Back
Top