# \[Windows]\[VC2026]\[Solution] Compiling OTClient Redemption Sources

## **1 - Downloads Required:**

* &#x20;**Visual Studio 2026 Community:** [Download](https://visualstudio.microsoft.com/pt-br/thank-you-downloading-visual-studio/?sku=Community\&channel=Stable\&version=VS18\&source=VSLandingPage\&cid=2500\&passive=false)
* &#x20;**Microsoft Visual C++ Redistributable 2017-2026:** ([32-bit download](https://aka.ms/vc14/vc_redist.x86.exe), [64-bit download](https://aka.ms/vc14/vc_redist.x64.exe))
* &#x20;**Git:** <https://git-scm.com/download/win>

## **2 - Visual Studio 2026:**

* &#x20;On the Visual Studio home screen, in the Visual Studio Community 2026 product click the Install button.
* &#x20;On the next screen, select Desktop Development with C++.
* &#x20;On the same screen under Installation Details, select:
* ![](https://1381914140-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzV9t92sKcMkphxwdvwZs%2Fuploads%2Fzv5Q41C3IQKG6o3F3GPF%2FVisualStudio2026-1.png?alt=media\&token=93cc87bb-fd42-4fc9-8451-e7308a6a9e78)
* &#x20;Then in Language Packs, select English:
* ![](https://1381914140-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzV9t92sKcMkphxwdvwZs%2Fuploads%2FVxHT6pi6JZ5I7eS8F1xp%2FVisualStudio2026-2.png?alt=media\&token=9ccdbbc6-a7b1-4195-b4c3-9754a45fac4b)

## **3 - Install the necessary software:**

* &#x20;Install Git.

## **4 - VCPKG:**

<details>

<summary><strong>If you don't have vcpkg installed</strong></summary>

&#x20;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

</details>

<details>

<summary><strong>If you already have vcpkg installed</strong></summary>

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

</details>

## 5 - Integration of VCPKG into Visual Studio:

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

{% hint style="info" %}
\[System.Environment]::SetEnvironmentVariable('VCPKG\_ROOT','C:\vcpkg', \[System.EnvironmentVariableTarget]::Machine)
{% endhint %}

## **6 - OTClient Redemption Sources:**

* &#x20;Download **OTClient Redemption** sources with the command below in **Powershell:**

{% hint style="info" %}
cd C:\\\
git clone --recursive <https://github.com/mehah/otclient.git>
{% endhint %}

## **7 - Install libraries:**

* The libs are installed automatically following the next step.

## **8 - Compiling OTClient Redemption Sources:**

* &#x20;Open **`vc17\otclient.sln`**. This should launch Visual Studio.
* &#x20;Choose build configuration from the drop downs (Release and x64).
* &#x20;To start compiling go to the menu Build and choose Build Solution..
* After build, the DLL's and the executable are automatically copied to the OTClient root folder.

## **9 - How to connect with OTClient Redemption:**

* [Canary](https://docs.opentibiabr.com/opentibiabr/projects/otclient-redemption/about#how-to-connect-on-canary-with-otclient-redemption)

## **10 - Credits:**

* **Edubart, Mehah and Collaborators (OTClient)**
* **Majesty (OTClient tutorial on VS2026)**
* **Microsoft - VCPKG:** <https://github.com/Microsoft/vcpkg>
