1. Installing the compilation tools
Make sure you have CMake (version 3.0.2 or higher) and G++ installed, as they are required to build the server software.
2. Connecting resources
Navigate to the root directory of the server software (roserver).
Run the ./create_make.sh script with the path to the resources directory as an argument.
If there are any missing files, comment them out in the code if necessary.
3. Installing and compiling dependent software
Use yum to install the MySQL development libraries and MySQL server.
This is necessary to work with the game server database.
4. Compiling the server
Navigate to the Build/Debug directory inside roserver.
Go to the directory of each server component (gameserver, controlserver, etc.) and run the make command.
If any missing files are found during compilation, comment them out if necessary.
5. Configuring MySQL
Start the MySQL server.
Run the SQL scripts located in each directory in roserver/exe to configure the database.
Add the server information to the gateinfo table in the login database.
6. Solutions to Possible Problems
Solutions are provided for common problems such as MySQL startup errors, setting the initial password, and correcting SQL mode for time default values.
7. Generating and modifying server configuration
Use the conf_create.py script to generate configuration files.
Modify the XML configuration files for each server component