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 make a local testing
server, which is useful to have for development.
# first install all requirementssudo 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-devmkdir-p ~/sourceoftalescd ~/sourceoftales# get the actual servergit clone git://github.com/mana/manaserv.gitcd manaservcmake .makesudo make installcd ..# get the actual source of tales repositorygit clone git://github.com/tales/sourceoftales.gitcd sourceoftales# prepare the configuration for the servers.cp manaserv.xml.example manaserv.xml# create a database which holds all user accounts.cat ../manaserv/src/sql/sqlite/createTables.sql | sqlite3 mana.dbcd ..
Your local server is almost 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.
Make sure to edit the net_clientDataUrl value and any other configuration
you need to address in manaserv.xml before you start the server.
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/src/manaserv-accountsleep 5screen -d-m ../manaserv/src/manaserv-gamesleep 5cd ..
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 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