... | ... | @@ -3,37 +3,24 @@ This page shows how to setup a local testing server for various systems. |
|
|
On Debian and Ubuntu
|
|
|
======
|
|
|
As this is relying on manasource technology, which is highly flexible,
|
|
|
some things need to be wired. The following commands can be run as a script
|
|
|
to get have a local testing server, which comes useful for development.
|
|
|
some things need to be wired.
|
|
|
|
|
|
The following commands can be run as a script to make a local testing
|
|
|
server, which is useful to have for development.
|
|
|
|
|
|
# first install all requirements
|
|
|
sudo apt-get install --yes sqlite3 screen git cmake make gcc libxml2-dev liblua5.1-0-dev libphysfs-dev libsqlite3-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-pango-dev libsdl-ttf2.0-dev libsdl1.2-dev libguichan-dev libphysfs-dev libenet2a libcurl4-openssl-dev libcurl3 zlib1g-dev libsigc++-2.0-dev
|
|
|
|
|
|
mkdir -p sourceoftales
|
|
|
cd sourceoftales
|
|
|
mkdir -p ~/sourceoftales
|
|
|
cd ~/sourceoftales
|
|
|
|
|
|
# get the actual server
|
|
|
git clone git://github.com/mana/manaserv.git
|
|
|
cd manaserv
|
|
|
cmake .
|
|
|
make
|
|
|
mkdir -p ~/bin
|
|
|
export PATH="$HOME/bin:$PATH"
|
|
|
cp src/manaserv-account ~/bin
|
|
|
cp src/manaserv-game ~/bin
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
# setup client
|
|
|
git clone git://github.com/mana/mana.git
|
|
|
cd mana
|
|
|
# Switch to the lpc tag
|
|
|
git checkout lpc2012
|
|
|
# configure make and install. When error occurs it stops
|
|
|
cmake . && make && sudo make install
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
# get the actual source of tales repository
|
|
|
git clone git://github.com/tales/sourceoftales.git
|
|
|
cd sourceoftales
|
... | ... | @@ -43,36 +30,28 @@ to get have a local testing server, which comes useful for development. |
|
|
cat ../manaserv/src/sql/sqlite/createTables.sql | sqlite3 mana.db
|
|
|
cd ..
|
|
|
|
|
|
The local server is now ready to use. If you haven't already done so,
|
|
|
make sure to look over the "Installation of client" wiki page to learn
|
|
|
how to install the client.
|
|
|
|
|
|
# now start the game servers, leave out if testing on our server.:
|
|
|
cd sourceoftales
|
|
|
# run the servers in the background, so don't block the script here.
|
|
|
screen -d -m manaserv-account
|
|
|
To start your newly made game server, you can use this script:
|
|
|
|
|
|
# now start the game servers, leave out if testing on our server.
|
|
|
cd ~/sourceoftales/sourceoftales
|
|
|
# run the servers in the background, so they don't block the script here.
|
|
|
screen -d -m ../manaserv/manaserv-account
|
|
|
sleep 5
|
|
|
screen -d -m manaserv-game
|
|
|
screen -d -m ../manaserv/manaserv-game
|
|
|
sleep 5
|
|
|
cd ..
|
|
|
|
|
|
If you'd like to start the server right after compiling, automatically,
|
|
|
just add the start script to the end of the compile script.
|
|
|
|
|
|
# The client lets you actually play
|
|
|
cd mana
|
|
|
# -u tell the mana client software to not download the game content,
|
|
|
# but use the content as provided in the -d directory
|
|
|
# The parameters --server and --port tells the mana client to directly
|
|
|
# connect to the server we just setup.
|
|
|
src/mana -u -d ../sourceoftales --server=localhost --port 9601
|
|
|
|
|
|
|
|
|
Now you should see the mana client started and you are ready to log onto the local testing server.
|
|
|
|
|
|
It is ready to register an account at your local server, so click on
|
|
|
'Register' and provide a username, password and an email address.
|
|
|
The email address is not needed for local testing, but it is intended
|
|
|
to be used for password reset, but unfortunately you need to provide an
|
|
|
email address which looks reasonable.
|
|
|
|
|
|
The game servers keep running, so you can later join again. In case you
|
|
|
want to stop them as well:
|
|
|
The game servers keep running even after you exit the game client so that
|
|
|
you can log onto them later. In case you want to stop them as well, use
|
|
|
these commands:
|
|
|
|
|
|
killall manaserv-game
|
|
|
sleep 5
|
... | ... | |