Server Configuration

From Sagramore Wiki

Jump to: navigation, search

Most of the configuration is done in the config.xml file. This file contains the database login, the maps to load, the locations of certain files on the server and the privileges. The rest of the configuration is done in the mysql database. The basic configuration looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
<settings>
 <mysql>
  <user>secretuser</user>
   <pass>secretpassword</pass>
   <port>3306</port>
   <host>secrethost<host>
   <daba>secretdatabase</daba>
  </mysql>
  <maps mapdir="../maps/">
   <map>village1</map>
   <map>demo_town</map>
   <map>demo_cave01</map>
   <map>demo_cave02</map>
   <map>demo_cave03</map>
  </maps>
  <locations>
   <itemsxml>../items.xml</itemsxml>
   <skillsxml>../skills.xml</skillsxml>
   <mobsxml>../mobs.xml</mobsxml>
   <mobimages>../images/chars/mobs/</mobimages>
   <effectimages>../images/effects/</effectimages>
   <effectsxml>../effects.xml</effectsxml>
   <questsxml>../quests.xml</questsxml>
  <locations>
  <privileges>
   <user title="player">
   </user>
 </privileges>
</settings>

The server will connect to this mysql server and read out several databases, which it then writes to the xml files specified in the config in the locations part, so that the client can read them

Personal tools