From The Mana World
Revision as of 03:56, 27 March 2024 by Move page script (talk | contribs) (Move page script moved page Dev:Localserver to Development:Localserver: Rename Dev: to Development: so the miraheze import works)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Local server install and configure

Before look first steps and local server

Before this step install and configure mariadb server

Add local server repository

1. Open command line in evol-all directory.

2. Run:

./init.sh local

If was no server-local repository, it will start cloning it

Now you can build server from sources

Build and install local server from sources

For build server you must install different deps.

 * mysqlclient-dev, mariadbclient-dev, libmysqlclient-dev, libmariadbclient-dev depend what sql and os you using.
 * libtool
 * zlib-dev or zlib1g-dev package
 * libpcre-dev package
 * gcc, make, automake, autoconf and may be some other common build tools.

For build do this steps:

1. Open command line in evol-all directory.

2. Run:

cd tools/localserver

you will see

~/evol-all/tools/localserver$

3. Run:

./installconfigs.sh

4. Run:

./build.sh

Or if you have gcc < 4.8

Run:

./build.sh old

4. If all went without errors now you can try to run server

Run local server

Open three terminals in /evol-all/server-data/

In first terminal run:

./login-server

In second terminal run:

./char-server

In last terminal run:

./map-server

All servers should not show errors.

If you see error like "plugin not found" you should build server, something wrong happend and plugins not working.

If you see "config not found" you probably running server not from server-data directory.

Upgrade local server

At first run ./pull.sh in evol-all directory for update all repositories.

Then follow steps from "Build and install local server from sources"

Also follow update database step

And follow update configs step