Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Compiling on Windows

MajestyOTBR edited this page Jul 30, 2019 · 5 revisions

Note: since 2019-07-30 the theforgottenserver.sln MSVS project file is no longer configured for use with TFS SDK. Please follow Compiling on Windows (with vcpkg) instead. The following tutorial applies to all versions until and including TFS SDK and master branch until commit f1014a7.


1. Download the required software

To compile OTServBR-Global on Windows, you will need:

2. Install the required software

Once you have downloaded the software listed in the step above, begin by installing Visual Studio and Boost C++ libraries. Extract TFS SDK anywhere on your computer and run the file "register_tfssdk_env.bat" to set the PATH environment variable for TFS SDK, so that the compiler can find the libraries once we get to compiling the source code. Move the file "register_boost_env.bat" from TFS SDK to the directory where you installed Boost C++ libraries and run it there (it should be in the directory called boost_1_62_0).

3. Download the source code

Download the latest copy of OTServBR-Global (master) from this URL: https://github.com/opentibiabr/OTServBR-Global/archive/master.zip

4. Build

Find the directory vc14 in the copy of OTServBR-Global that you downloaded, and open theforgottenserver.sln. This should launch Visual Studio, and you should be good to go.

To configure the build, navigate to Build -> Configuration Manager in the menu. A dialog should pop up where you can choose between Release or Debug build, and 32-bit (Win32) or 64-bit (x64) build.

To start compiling, open the Build menu again and click on Build Solution.


Tutorial based on Compiling on Windows @ forgottenserver

Clone this wiki locally