This guide will help you set up a Silkroad Online private server on Windows using the Phoenix emulator.
Step 1: Install Prerequisites
Ensure you have the following prerequisites installed:
- MySQL Server for the database.
- Visual C++ Build Tools to compile the source code.
- Git for Windows to clone the Phoenix emulator repository.
Step 2: Clone the Phoenix Emulator Repository
Open Git Bash and clone the Phoenix emulator repository:
git clone https://gitlab.com/Chernobyl_/phoenix.git
Navigate to the project folder:
cd phoenix
Step 3: Configure the MySQL Database
Log in to MySQL and create a new database and user for the Phoenix emulator:
CREATE DATABASE silkroad_db;
CREATE USER 'sro_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON silkroad_db.* TO 'sro_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Replace password
with a secure password. Save these credentials for use in configuration files later.
Step 4: Build the Phoenix Emulator
Open the Phoenix solution file (Phoenix.sln
) in Visual Studio to build the emulator:
- Open Visual Studio and load the solution file.
- Set the build configuration to Release.
- Build the solution by selecting Build > Build Solution. The compiled files will appear in the
Release
folder.
Step 5: Locate or Create Configuration Files
Some emulators, including the Phoenix emulator, may not include configuration files directly in the repository. To locate or create configuration files, follow these steps:
- Search the Repository: Look for folders like
config/
,configs/
, or files with.example
or.sample
suffixes. - Consult the Documentation: Check the repositoryโs README or documentation for specific setup instructions, as it may list required configuration files or variables.
- Create Custom Config Files: If configuration files are not provided, you may need to manually create them using the recommended settings in the documentation. Typical settings include:
- Database Configurations: Host, port, database name, username, and password for MySQL.
- Server Settings: IP address, port, and other server-specific parameters.
If you have questions, check community forums or ask the repository owner for further guidance.
Step 6: Import Database Structure
Import the SQL database structure provided by the Phoenix emulator. In MySQL, run the SQL script to create the necessary tables and data:
mysql -u sro_user -p silkroad_db < path/to/setup_script.sql
Replace path/to/setup_script.sql
with the actual path to the SQL setup script included in the repository.
Step 7: Start the Server
In the compiled Release
folder, run the main server executable to start the Phoenix emulator. This may be named PhoenixServer.exe
:
./PhoenixServer.exe
Monitor the console output to ensure the server starts successfully without any errors.
Step 8: Configure the Client
Download a compatible Silkroad Online client and modify the clientโs configuration file (usually silkroad.ini
or similar) to point to your serverโs IP address and port.
Step 9: Test the Connection
Launch the Silkroad Online client and attempt to connect to your server. If successful, you should be able to log in and explore your Silkroad Online private server.
If you encounter issues, review the server logs and settings to troubleshoot any connection problems.