[Basic Guide] Compiling a Shaiya Repository

Garret

Active member
Joined
Oct 4, 2023
Messages
37
A basic guide for compiling shaiya libraries
This guide supposes you are starting to learn the basics of coding and compilation.
It only explains how to sucesfully compile a repository into a DLL without further changes.
Note that while this works for EP6 and essentials repositories, you may need another things for compile other public shaiya stuff.

First steps:
- Download if needed Microsoft Visual C++ Redistributable
- Download if needed Microsoft DirectX SDK (June 2010)
- Download Visual Studio 2022 for personal use (The free one).
You need to create or use a windows account.

Visual Studio installing:
- Install the software in the standard way.
- Just install basic C++ libraries and standard ones, you don't need additional components.

With everything done, let's compile a repository.
We use essentials one as a test: https://github.com/Spelunkern/Shaiya-Essentials

Click 'Code' (The green one) and copy the link under HTTPS.

Open Visual Studio 2022 and select 'Clone repository' at start.
You need to put the link to the repository and define an export folder, nothing hard.

Let the things charge a bit and once you see the code and everything ready.

You are gonna see an option above your code, near the menu options, that says x64, change that to x84.
This is mandatory or the compilation it's gonna fail.
Once you do that, click on the main solution at the right corner where you see the whole code, and select 'Compile'.
Let the program compile the solution (Takes a few seconds), then you know have the dll compiled and ready for use on your export folder.

You can add the dll to the executable using StudPH.

Learning to do this it's important, it's always better to compile rather than wait for a release or pre-compiled files.
 
大哥 感谢你的分享 这个源码为什么不能同步武器强化和防具强化? 用的是你打包的客户端 和服务器Shaiya Essentials v12.3.zip
 
Back
Top