TopGaming  

How to Set Up a Shaiya Private Server Using Imgeneus Emulator

Follow this step-by-step guide to create a Shaiya private server using the Imgeneus emulator on Windows.

Step 1: Install Prerequisites

Ensure that you have the following prerequisites installed:

Step 2: Clone the Imgeneus Repository

Open Git Bash and clone the Imgeneus emulator repository:

git clone https://github.com/huynguyen-hl/shaiya.git

Navigate into the project folder:

cd shaiya

Step 3: Set Up MySQL Database

Log in to MySQL and create a new database and user:

CREATE DATABASE shaiya_db;
CREATE USER 'shaiya_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON shaiya_db.* TO 'shaiya_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Replace password with a secure password. Make note of these credentials for later.

Step 4: Build the Imgeneus Emulator

Open the Imgeneus.sln solution file in Visual Studio:

  1. Open Visual Studio and load the solution file.
  2. Set the build configuration to Release.
  3. Select Build > Build Solution to compile. The compiled files will appear in the Release folder.

Step 5: Configure the Server Files

Locate the configuration files in the Release folder and edit them as follows:

  • db_config.ini: Enter the database name, username, and password created earlier.
  • server_config.ini: Set server IP address, ports, and other network settings.

Save the files after making the necessary changes.

Step 6: Import Database Structure

Use the provided SQL scripts to initialize the database. Run the following command in MySQL:

mysql -u shaiya_user -p shaiya_db < path/to/setup_script.sql

Replace path/to/setup_script.sql with the path to the SQL setup script provided in the repository.

Step 7: Start the Server

In the Release folder, run the main server executable to start the server. This file may be named ShaiyaServer.exe or similar:

./ShaiyaServer.exe

Monitor the console output to ensure the server starts correctly without errors.

Step 8: Configure the Client

Download a compatible Shaiya client and modify the client’s configuration file (typically named config.ini or similar) to set the server IP and port to match your server’s configuration.

Step 9: Test the Server Connection

Launch the Shaiya client and attempt to connect to your server. If successful, you should be able to log in and explore your Shaiya private server environment.

If connection issues occur, review server logs and configurations to troubleshoot.