From TheManaWorld
This article is currently only a proposal
The features or design guidelines described in this article are only a proposal made by one or some persons. It has not been evaluated or accepted by the core development team yet. Feel free to add your personal opinion about them or make counter proposals.
This article contains information for Programmers working or interested in working for The Mana World
The file tmwserv.xml is the central point to configure your account- and gameserver(s). Every configuration option is defined as key, value pair like the following example shows:
<?xml version="1.0"?>
<configuration>
<option name="accountServerAddress" value="localhost"/>
<option name="accountServerPort" value="9601"/>
</configuration>
Database backend configuration
SQLite
SQLite only needs one parameter to define where to find the database file. If you omit this, the account server assumes that the file is called "tmw.db" and is located in the same diectory as the executeable.
| Parameter name | Required | Default value | Description
|
| sqlite_database
| NO
| ./tmw.db
| name and path to the sqlite database file
|
|
mySQL
| Parameter name | Required | Default value | Description
|
| mysql_hostname
| NO
| localhost
| ip or hostname of the database server
|
| mysql_port
| NO
| 3306
| the port where the mysql server listens to
|
| mysql_database
| NO
| tmw
| name of the installed database
|
| mysql_username
| NO
| tmw
| name of the user to connect to the database server
|
| mysql_password
| NO
| tmw
| password to use whith the mysql_username
|
|
PostgreSQL
Accountserver configuration
Player starting point
| Parameter name | Required | Default value | Description
|
| defaultMap
| YES
|
| Map id where new players should start. see: maps.xml
|
| startX
| YES
|
| X coordinate of the starting point in the map
|
| startY
| YES
|
| Y coordinate of the starting point in the map
|
|
Gameserver configuration
| Parameter name | Required | Default value | Description
|
| accountServerAddress
| NO
| localhost
| The game server uses this address to connect to the account server
|
| accountServerPort
| NO
| 9601
| port where the account server listens
|
|