[Android] 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++ and Mobile Development for Android.

  • Then in Language Packs, select:

  • English.

  • Continue the installation and click in the Install button.

3 - Install the necessary software:

  • Install Git.

4 - Android Libs:

  • Extract the Android.zip folder on C:\.

  • Example:

5 - OTClientV8 Sources:

  • Download OTClientV8 sources with the command below in Powershell:

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

6 - Client dat-spr files and data.zip:

  • Download Client 11 (Outdated 10.x) and extract the Tibia.dat and Tibia.spr in OTClientV8 /data/things/1100.

  • Compress the init.lua, data, modules, layouts, mods in data.zip running the create_android_assets.ps1 script in Powershell, the compressed data.zip will be copied to android/otclientv8/assets.

7 - Opening OTClientV8 Project for Android:

  • Open android\otclientv8.sln. This should launch Visual Studio.

8 - Android Extensions for Visual Studio:

  • Go to Options -> Cross Platforms -> C++ and set the configs like in the example below:

9 - Compiling OTClientV8 Sources for Android:

  • Choose build configuration from the drop downs (Release and ARM).

  • To start compiling go to the menu Build and choose Build Solution..

  • After build, the otclientv8_armv7a.apk is generated in android/otclientv8/ARM/Release folder.

10 - Installing OTClientV8 application on Android:

  • Install the otclientv8_armv7a.apk in your Android phone.

11 - Credits:

  • Kondrah, Oen, Vithrax (OTClientV8)

  • Majesty (OTClientV8 Tutorial for Android on VS2022)

Last updated