[Windows][VC2022][CMake] Compiling OTClientV8 Sources

1 - Downloads Required:

2 - Visual Studio 2022:

  • On the Visual Studio home screen, in the Visual Studio Community 2022 product click the Install button.

  • On the next screen, select Desktop Development with C++.

  • On the same screen under Installation Details, select:

  • Then in Language Packs, select:

3 - Install the necessary software:

  • Install Git.

4 - VCPKG:

If you don't have vcpkg installed

Use Powershell in directory C:

  • cd C:\

• To complete vcpkg installation, run the commands below in Powershell:

  • git clone https://github.com/microsoft/vcpkg

  • cd vcpkg

  • .\bootstrap-vcpkg.bat

  • .\vcpkg integrate install

If you already have vcpkg installed

Use Powershell in directory C:

  • cd C:\vcpkg

• To update vcpkg installation, run the commands below in Powershell:

  • git pull

  • .\vcpkg upgrade

  • .\vcpkg upgrade --no-dry-run

  • .\bootstrap-vcpkg.bat

5 - Integration of VCPKG into Visual Studio:

  • Execute the following command in Powershell with Administrator permission to set vcpkg environment variable:

[System.Environment]::SetEnvironmentVariable('VCPKG_ROOT','C:\vcpkg', [System.EnvironmentVariableTarget]::Machine)

6 - OTClientV8 Sources:

  • Download OTClientV8 sources with the command below in Powershell:

cd C:\ git clone --recursive https://github.com/opentibiabr/otcv8.git

7 - Compiling OTClientV8 Sources:

  • Open Visual Studio 2022, in the "Get Started" window, select "Open the local folder" and open the otclient root folder.

  • Wait for the Visual Studio to load. It will automatically install the libraries and generate the cmake cache. (Be patient, the first cache may take a few minutes).

  • After the cmake cache is successfully generated, you can compile the otclient by going to the Build > Build All menu.

8 - Opening the OTClientV8:

For 64-bit and 32-bit build:

  • After build, the executable is automatically copied to the otclient main folder.

  • Download client 11 (Outdated 10.x) in <link> and place Tibia.dat and Tibia.spr in data/things/version/. Replace 'version' for client 11 version. Example: data/things/1100.

  • OTClientv8 will open successfully!

9 - How to connect with OTClientV8:

10 - Credits:

Kondra, Oen, vithrax (OTClientv8)

Majesty (OTClient tutorial on VS2022)

Microsoft - VCPKG: https://github.com/Microsoft/vcpkg

Last updated