• 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 Install OTServ As A Windows Service

olavo

New Member
Joined
May 29, 2007
Messages
74
Reaction score
0
In this tutorial I will guide you on how to install your open tibia server as a windows service, that means the following points:
1. No command line screen in your desktop.
2. Automatically restarts your server if crashes, you can even make your computer take different actions if it keeps crashing, etc.

So, let's start!
1. You will need the Windows Resource Kit Tools, a.k.a. "rktools", you can download those from: http://www.microsoft.com/downloads/d...displaylang=en
After you are done installing, restart your computer. You have to restart, or else, when referring to the files: srvany.exe and instsrv.exe, you will have to write the full path, which is something like: %Program Files%\Windows Resource Kit\Tools\
Ok. Next.

2.Open a command line window: Start -> Run, type "cmd" in the edit box, and click Ok or press Enter. In this screen you will type the following command:
Code:

instsrv "OTServ" "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"

If everything is correct, you should get the following message:

"The service was successfuly added!"

, if not, then you will get lot's of errors :p.

3.Now, let's open the Registry Editor, here's how: Start -> Run, then type in the edit box "regedit" and click Ok or press Enter.
Open the key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servic es\OTServ
a. Right click OTServ and in the popup menu that appears select: Next -> Key. For the name of this new key type "Parameters".
b. Right click Parameters and select: New -> String. For the name of the string type "Application".
c. Right click the string Application, and select Modify. As value type: C:\Where_your_ot_is\otserv.exe
Close the Registry Editor.
4. Now, let's open the Services window, to do that, do the following: Start -> Run, and type in the edit box "services.msc", and click Ok or press Enter.
Browse for OTServ, right click it and select Properties from the popup menu.

5.In this window, named OTServ Server Properties, you will change the Startup type to "Automatic" if you want the OTServ to start when your computer starts, set it to "Manual" if you want to start it yourself, keep on reading to learn how to start it different ways.
From here, you can Start/Stop the server, don't use Pause, it might not work as you expect.
Now open the Recovery tab, and select what actions to take if the server crashes a first time, then a second, and any other subsequent times. You can set the time to wait after a crash before restarting the server.

You can also start the server this way: Start -> Run, and typing "net start otserv". To stop it, just change "start" to "stop".
It's the same as if you write in a .bat file the following:
Code:

@echo off
echo Starting OTServ
net start otserv
echo Done.

Well, that's it pals!
 
there is the "windows service installer" that makes the job much easier.
You can find it on google and its not hard to use!
 
very rox tutorial for the guys who want the server open when start the computer
 
But i like to see debugs & how many players on...
For a final server, with no bugs, its nice.
But is hard to do a server without bugs.
 
Back
Top