summaryrefslogtreecommitdiffstats
path: root/docs/manaserv.xml.example
blob: d41b2984eac89800b9db71d200a016d150187343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0"?>
<!--
	An example configuration file.
	
	Documentation: http://doc.manasource.org/manaserv.xml

	Developers:	If you add any new parameters read from this configuration file
	don't forget to update the wiki documentation!
-->
<configuration>
 
<!-- Database configuration ***************************************************
 Uncomment one of the following parts according to the database backend you
 would like to use.
-->
 
<!--
	SQLite specific configuration.

	sqlite_database:	name and path to the sqlite database file
						optional, default="mana.db"
-->
<!-- <option name="sqlite_database" value="mana.db"/> -->


<!--
	mySQL specific configuration.

	mysql_hostname:		ip or hostname of the database server
						optional, default="localhost"
	mysql_port:			the port where the mysql server listens to
						optional, default=3306
	mysql_database:		name of the installed database
						optional, default="mana"
	mysql_username:		name of the user to connect to the database server
						optional, default="mana"
	mysql_password:		password to use whith the mysql_username
						optional, default="mana"
-->
<!--
<option name="mysql_hostname" value="localhost"/>
<option name="mysql_port" value="3306"/>
<option name="mysql_database" value="mana"/>
<option name="mysql_username" value="mana"/>
<option name="mysql_password" value="mana"/>
-->


<!--
	PostgreSQL specific configuration.

	TODO!
-->

<!-- end of database configuration *************************************** -->

 <!--
 Log levels configuration.
 Available values are:
   0. Fatal Errors only.
   1. All Errors.
   2. Plus warnings.
   3. Plus standard information.
   4. Plus debugging information.
 -->
 <option name="log_gameServerLogLevel" value="2"/>
 <option name="log_accountServerLogLevel" value="2"/>

 <!--
 New player starting location. The map should be defined in data/maps.xml.
 -->
 <option name="char_startMap" value="1"/>
 <option name="char_startX" value="720"/>
 <option name="char_startY" value="840"/>

 <!--
 The game server uses this address to connect to the account server. Clients
 will also need to be able to connect to the account server.
 -->
 <option name="net_accountServerAddress" value="localhost"/>
 <option name="net_accountServerPort" value="9601"/>
 <!--
 The clients use this address to connect to a game server on this machine.
 -->
 <option name="net_gameServerAddress" value="localhost"/>
 <option name="net_gameServerPort" value="9604"/>

 <!-- Paths to data files -->
 <option name="serverPath" value="." />
 <option name="clientDataPath" value="example/clientdata" />
 <option name="serverDataPath" value="example/serverdata" />

 <!-- Gameplay-related config option -->
 <option name="visualRange" value="448"/>
 <option name="respawnMap" value="4"/>
 <option name="respawnX" value="1000"/>
 <option name="respawnY" value="1000"/>
 <option name="defaultPvp" value="free" />
 <option name="floorItemDecayTime" value="10" />
 <option name="hpRegenBreakAfterHit" value="50" />

 <!-- Network-related config options -->
 <option name="net_maxClients" value="1000"/>

 <!-- Account-creation-related config options -->
 <option name="account_allowRegister" value="1" />
 <option name="account_denyRegisterReason" value="The server administrator has disabled automatic registration!" />
 <option name="account_minEmailLength" value="7" />
 <option name="account_maxEmailLength" value="128" />
 <option name="account_minNameLength" value="4" />
 <option name="account_maxNameLength" value="16" />
 <option name="account_minPasswordLength" value="6" />
 <option name="account_maxPasswordLength" value="25" />

 <!-- Character-creation-related config options -->
 <option name="char_numHairStyles" value="17" />
 <option name="char_numHairColors" value="9" />
 <option name="char_numGenders" value="2" />
 <option name="char_minNameLength" value="4" />
 <option name="char_maxNameLength" value="25" />
 <option name="char_maxCharacters" value="3" />
 <option name="char_startingPoints" value="60" />

 <!-- Chat-related config options -->
 <option name="chat_maxChannelNameLength" value="15" />
   <!-- I noticed the following configuration-like enumeration values which are never checked:
        //chat-related
         MAX_PUBLIC_CHANNELS_RANGE  = 1000,
        MAX_PRIVATE_CHANNELS_RANGE = 10000,
        MAX_CHANNEL_ANNOUNCEMENT   = 150,
        MAX_CHANNEL_PASSWORD       = 12,
    -->

 <!-- Mail-system related-->
 <option name="mail_maxAttachments" value="3" />
 <option name="mail_maxLetters" value="10" />
 
 
</configuration>