Skip to content

andreluisos/de_server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The client is in this repo.

If you're using Windows or Docker environment, skip the following content and see install using docker.

TL;DR

Compile

The development environment is Ubuntu 20.04, other linux release should also work.

dependency

  • libmysqlclient-dev 5.7
  • lua 5.1
  • xerces-c 3.2.3

All the dependencies can be installed using apt.

sudo apt install \
    libxerces-c-dev \
    libmysqlclient-dev \
    liblua5.1-dev

compile

Compile is easy, just call:

make

or make -j 8 if you have a 8 cores CPU computor to accelerate the compilation.

Setup the Database

MySQL 5.7 or 8 are tested.

Create a user 'elcastle'@'%' with password 'elca110'

Create the DARKEDEN and USERINFO database:

create database DARKEDEN;
create database USERINFO;

Make sure the sql_mode allow zero date time, remove the NO_ZERO_DATE from the sql_mode. And also remove the STRICT_TRANS_TABLES from it to workaround a guild related issue :

mysql> select @@global.sql_mode;
+-------------------------------------------------------------------------------------------------------------------------------------------+
| @@global.sql_mode                                                                                                                         |
+-------------------------------------------------------------------------------------------------------------------------------------------+
| ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
+-------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> set @@global.sql_mode = 'ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
Query OK, 0 rows affected (0.02 sec)

Then load the SQL file initdb/DARKEDEN.sql and initdb/USERINFO.sql:

mysql -h 127.0.0.1 -u elcastle -D 'DARKEDEN' -p < initdb/DARKEDEN.sql
mysql -h 127.0.0.1 -u elcastle -D 'USERINFO' -p < initdb/USERINFO.sql

Update the DARKEDEN.WorldDBInfo and DARKEDEN.GameServerInfo table to set the correct IP/PORT().

Modify Configure

You need to change the configure files in the conf/ directory. HomePath should be the repository directory path.

The DB_HOST should be you database IP address, LoginServerIP should also be changed accordingly.

DON'T forget the DARKEDEN.WorldDBInfo and DARKEDEN.GameServerInfo tables in the database, they are not in the configure files, but the data should match, otherwise you can't login.

Start the server

Start the loginserver, sharedserver, gameserver in order:

./bin/loginserver -f ./conf/loginserver.conf
./bin/sharedserver -f ./conf/sharedserver.conf
./bin/gameserver -f ./conf/gameserver.conf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.9%
  • Makefile 1.0%
  • C 0.5%
  • CMake 0.3%
  • Lua 0.2%
  • Shell 0.1%