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

[Tutorial][BlackTek] From nothing to fully installed Server with AAC on Windows.

Codinablack

Dreamer
Content Editor
Joined
Dec 26, 2013
Messages
1,813
Solutions
12
Reaction score
1,105
How to get started quickly with BlackTek Server on Windows.

Prerequisites
The only requirements that are necessary to have before getting started is Visual Studio (preferably 2022), and it needs to have the latest MSVC "platform toolset" for your target version. The recommended is MSVC v143, but MSVC v142 will also work as long as it is the latest version. You also need to have vcpkg installed and integrated with visual studio for this to work. To integrate after installing, just navigate to vcpkg folder and use the command "vcpkg integrate install".

Premake
Premake is the build system we use generating our project files. It is absolutely necessary to have a premake executable to generate your own project files (vs solution). It is also necessary for you build yourself or to use one I have built and the reason is because the last "release" for premake was 2021 and there have been tons of changes since then, and some of those changes are needed to be able to use and benefit from the premake setup we have now for BlackTek Server.
Here is a video explaining how to get the most current sources of premake and build it yourself quickly and easily on windows.



BlackTek Server
Once we have a working premake5 executable, we can move on to generating our visual studio solution for BlackTek Server and then use that to finish building an executable. Here I have prepared a video continuing off of the premake video, showing you how to do excatly those things, generate project files and build the project.

Database & Webserver Setup
Now that BlackTek Server is built and ready to run, we have to setup a database server for it to connect with for saving players, accounts and such. For this we will use Uniserver. We will also want to interface with that database in a way that is easy for us to create accounts and players and such, for this we use MyAAC specifically the 1.0-beta version (its not the top choice in releases).
Here is a video explaining how to install both Uniserver & MyAAC 1.0-beta. It also provides a demonstration of logging into our newly configured BlackTek Server using the 10.98 Tibia Client.

That covers everything you need to get started developing with BlackTek Server on Windows. Please don't use this thread to ask how to install on another operating system. You can use the BlackTek Server development thread for any problems you may run into on trying to install on another operating system. You can also find me on discord with the name Codinblack and send me a message, or you can start a discussion on the BlackTek Server github discussions page. We also offer a dockerfile, and a wiki page for explaining how to build on an ARM architecture, linux based server.
 
Last edited:
For those looking to setup BlackTek on Ubuntu, I highly recommend the use of the Dockerfile, and even following the instructions from the pull request from gesior that included the dockerfile.


The above is the pull request where gesior explains the issues you might run into if you are trying to setup on an ARM architecture.

Here is our only wiki page for compiling on Ubuntu right now.

Between those two links, and the dockerfile possibility, I am certain one should have no problems getting set-up on an Ubuntu linux system
 
Cómo comenzar rápidamente a utilizar BlackTek Server en Windows.

Prerrequisitos
Los únicos requisitos que se deben tener antes de comenzar son Visual Studio (preferiblemente 2022 ), y debe tener el "conjunto de herramientas de plataforma" MSVC más reciente para su versión de destino. La recomendada es MSVC v143 , pero MSVC v142 también funcionará siempre que sea la última versión. También debe tener vcpkg instalado e integrado con Visual Studio para que esto funcione. Para integrarlo después de la instalación, simplemente navegue a la carpeta vcpkg y use el comando " vcpkg integrate install ".

prefabricado
Premake es el sistema de compilación que utilizamos para generar nuestros archivos de proyecto. Es absolutamente necesario tener un ejecutable de premake para generar sus propios archivos de proyecto (en lugar de una solución). También es necesario que lo compile usted mismo o que utilice uno que yo haya compilado y la razón es que el último "lanzamiento" de premake fue en 2021 y ha habido muchos cambios desde entonces, y algunos de esos cambios son necesarios para poder utilizar y beneficiarse de la configuración de premake que tenemos ahora para BlackTek Server.
Aquí hay un vídeo que explica cómo obtener las fuentes más actuales de premake y construirlo usted mismo de manera rápida y sencilla en Windows.



Servidor BlackTek
Una vez que tengamos un ejecutable premake5 en funcionamiento, podemos pasar a generar nuestra solución de Visual Studio para BlackTek Server y luego usarla para terminar de crear un ejecutable. Aquí he preparado un video que continúa el video premake, que muestra cómo hacer exactamente esas cosas, generar archivos de proyecto y crear el proyecto.

Configuración de base de datos y servidor web
Ahora que BlackTek Server está creado y listo para funcionar, tenemos que configurar un servidor de base de datos para que se conecte y guarde jugadores, cuentas y demás. Para ello, utilizaremos Uniserver . También queremos interactuar con esa base de datos de una manera que nos resulte fácil crear cuentas y jugadores, etc. Para ello, utilizaremos MyAAC, específicamente la versión 1.0-beta (no es la primera opción en las versiones).
Aquí hay un video que explica cómo instalar Uniserver y MyAAC 1.0-beta. También se muestra una demostración de cómo iniciar sesión en nuestro servidor BlackTek recién configurado usando el cliente Tibia 10.98.

Eso cubre todo lo que necesitas para comenzar a desarrollar con BlackTek Server en Windows. No uses este hilo para preguntar cómo instalar en otro sistema operativo. Puedes usar el hilo de desarrollo de BlackTek Server para cualquier problema que puedas tener al intentar instalar en otro sistema operativo. También puedes encontrarme en Discord con el nombre Codinblack y enviarme un mensaje, o puedes iniciar una discusión en la página de discusiones de BlackTek Server en Github. También ofrecemos un archivo Docker y una página wiki para explicar cómo construir en un servidor basado en Linux y con arquitectura ARM.
Thank you very much for your contribution. Do you happen to have a tutorial on how to compile an otclient?
 
Thank you very much for your contribution. Do you happen to have a tutorial on how to compile an otclient?
No I don't, but if you are using OTCR, its very straight forward, just download it, open the solution and try to compile, the manifest will download all the libraries you need automatically... assuming you are on windows and still have visual studio and vcpkg setup, that is all you have to do.

If you are using otcv8, then sorry, I refuse to help. Otcv8 is something I won't support anyone with, it needs to die already, damn thing is still using 32 bits, it was a gacha in the first place, and its a symbol of some things very wrong with this community... if you want to use otcv8, then I personally will not help, sorry, not sorry.
 
Sorry for that dumb question... what is OTCR?
 
Hello, sorry for the inconvenience, but I have a problem when running the .exe file. I did everything like in your videos, "thank you very much for making them" but when running the Black-Tek-Server.exe file it opens and closes automatically, I don't get any errors, any idea what it could be? I would really appreciate it if you could help me. I have been trying to run the otserv for several days.
 
Hello, sorry for the inconvenience, but I have a problem when running the .exe file. I did everything like in your videos, "thank you very much for making them" but when running the Black-Tek-Server.exe file it opens and closes automatically, I don't get any errors, any idea what it could be? I would really appreciate it if you could help me. I have been trying to run the otserv for several days.
Yes, you are not connecting to the database. Whenever this is the issue, there is an error but what happens is the console closes to fast to catch it, even hitting the screenshot button, you must try over and over before you can catch it. To see the error without it closing, you can open up a cmd prompt, navigate to the directory of black tek and then use the command [blacktekexecutable'sname].exe and it will run (no braces/brackets, just the full executable name) without closing the console upon exiting the application.

I showed an easier way to do this in one of those videos, where you open the black tek folder, erase the file path in the address bar, type cmd and hit enter, this will get you to the directory you need to be in much quicker.

My guess is that you forgot to put in your database information into your config.lua, or you have the incorrect information in there (capitolization matters). But I am 100 percent certain your issue is a database connection.
 
I am going to ask a noob question. I see this is for 10.98 client. Is it possible to use any client or does it have to be the 10.98 client?
 
I am going to ask a noob question. I see this is for 10.98 client. Is it possible to use any client or does it have to be the 10.98 client?

You can use CIP Client 10.98, OTCv8 ( Most used OTC since 2020 or something ), OTCv1 ( few people use it but not alot I think but its the best one if it comes to performance and updates but the walking is weird ), OTC from edubart ( no one use it at all )
 
You can use CIP Client 10.98, OTCv8 ( Most used OTC since 2020 or something ), OTCv1 ( few people use it but not alot I think but its the best one if it comes to performance and updates but the walking is weird ), OTC from edubart ( no one use it at all )
Awesome thanks for the info.

I have an issue atm, I followed the instructions for installing vcpkg, premake, and blacktek however when I am compiling the BlackTekServer, I am running into this error:

Severity Code Description Project File Line Suppression State Details
Error LNK2001 unresolved external symbol __std_mismatch_4 Black-Tek-Server C:\Users\USER\Downloads\BlackTek-Server-master\BlackTek-Server-master\cryptopp.lib(dll.cpp.obj) 1

Edit: I have located the cryptopp.lib and placed it in the file location but still get the same error. after looking up the error code it tells me i need to create a reference function
 
Last edited:
@docmatroid wrote me saying he resolved his issue.

@Marko999x mehah's otc is called OTCR not OTCv1. There is no such thing as OTCv1, the V part only ever came from OTCV8, no other OTC's have a V in their name, and none have a 1 in their name either. You got OTC, OTCR, and OTCV8, those are the three main OTC's that are talked about.

Also, your statistics about "most used" is pure nonsense as well. All one has to do, is to go to the github, and view the traffic, and you can see firsthand that otcv8 is NOT the most downloaded, most visited, and certainly not the most used... it is only the most "Glorified" by it's users, that is all. Where do you find the right to make such claims anyways? Just to try to piss me off or something? Trying to bait me? Well, it worked. I have pulled site statistics from a 3rd party, (if mehah and oen want to share the actual traffic reports from the github, I would love to see how hard OTCR's traffic is truly shitting on OTCV8's) and again, YOU ARE WRONG. It is NOT the most popular so stop saying that it is! You are lieing to people, and for absolutely no good reason at all, except to support your own decision in using it.
otcv8traffic.webpmehahstraffic.webp
 
@docmatroid wrote me saying he resolved his issue.

@Marko999x mehah's otc is called OTCR not OTCv1. There is no such thing as OTCv1, the V part only ever came from OTCV8, no other OTC's have a V in their name, and none have a 1 in their name either. You got OTC, OTCR, and OTCV8, those are the three main OTC's that are talked about.

Also, your statistics about "most used" is pure nonsense as well. All one has to do, is to go to the github, and view the traffic, and you can see firsthand that otcv8 is NOT the most downloaded, most visited, and certainly not the most used... it is only the most "Glorified" by it's users, that is all. Where do you find the right to make such claims anyways? Just to try to piss me off or something? Trying to bait me? Well, it worked. I have pulled site statistics from a 3rd party, (if mehah and oen want to share the actual traffic reports from the github, I would love to see how hard OTCR's traffic is truly shitting on OTCV8's) and again, YOU ARE WRONG. It is NOT the most popular so stop saying that it is! You are lieing to people, and for absolutely no good reason at all, except to support your own decision in using it.
View attachment 87008View attachment 87009

maybe if you compared proper urls it would be a better comparison, your post is very biased.
 

Attachments

maybe if you compared proper urls it would be a better comparison, your post is very biased.
Hah! Biased. That is funny coming from you. I merely didn't realize that everyone was using the outdated repo 🤣
Post automatically merged:

@docmatroid here is all the facts you need to make an informed decision on your own.


 
Last edited:
@Marko999x mehah's otc is called OTCR not OTCv1. There is no such thing as OTCv1, the V part only ever came from OTCV8, no other OTC's have a V in their name, and none have a 1 in their name either. You got OTC, OTCR, and OTCV8, those are the three main OTC's that are talked about.

Never seen people calling otc from mehah "OTCR" but good to know
I just know it as OTC1 or OTCv1 or OTC from mehah :D

Just to try to piss me off or something?

I have no reason to piss you off :D
You hating on every comment that has the name otcv8 inside of it somehow
Just visit otservlist and look which otc they offer : D

You should really stop hating that bad on otcv8 just because it was made by someone who asked 5000 euros for it
Yeah its outdated but its still stable and good to work with

Mehahs client is good. Good support, good performance, good features and alot more ( I follow the commits on github )
 
Appreciate the info. I will be looking into the mehah ot client as I see it does support the 13.10 client. Will start working on compiling it today.
 
I have no reason to piss you off :D
You hating on every comment that has the name otcv8 inside of it somehow
Just visit otservlist and look which otc they offer : D

You should really stop hating that bad on otcv8 just because it was made by someone who asked 5000 euros for it
Yeah its outdated but its still stable and good to work with

Mehahs client is good. Good support, good performance, good features and alot more ( I follow the commits on github )


You should open a discussion thread instead of spamming here, kid. (if you call him otcv1, I don't think you're informed enough to even argue.)

If you have a walking issue, you should open an issue where it belongs and not whine in a tutorial thread (isnt even about compiling otc or anything related to otc)
 
Last edited:
You should open a discussion thread instead of spamming here, kid. (if you call him otcv1, I don't think you're informed enough to even argue.)

If you have a walking issue, you should open an issue where it belongs and not whine in a tutorial thread (isnt even about compiling otc)

Oh no the v1 Mehah fanboy called me kid 🤣
Get some fresh air 😜
 
Back
Top