1 | /* |
1 | /* |
2 | * CrossFire, A Multiplayer game |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (C) 1992 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * This program is free software; you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
10 | * the Free Software Foundation; either version 2 of the License, or |
10 | * the Free Software Foundation, either version 3 of the License, or |
11 | * (at your option) any later version. |
11 | * (at your option) any later version. |
12 | * |
12 | * |
13 | * This program is distributed in the hope that it will be useful, |
13 | * This program is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * GNU General Public License for more details. |
16 | * GNU General Public License for more details. |
17 | * |
17 | * |
18 | * You should have received a copy of the GNU General Public License |
18 | * You should have received a copy of the GNU General Public License |
19 | * along with this program; if not, write to the Free Software |
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
|
21 | * |
20 | * |
22 | * The authors can be reached via e-mail at crossfire@schmorp.de |
21 | * The authors can be reached via e-mail to <support@deliantra.net> |
23 | */ |
22 | */ |
24 | |
23 | |
25 | /* This file contains various #defines that select various options. |
24 | /* This file contains various #defines that select various options. |
26 | * Some may not be desirable, and some just may not work. |
25 | * Some may not be desirable, and some just may not work. |
27 | * |
26 | * |
… | |
… | |
61 | * You don't have to change anything here to get a working program, but |
60 | * You don't have to change anything here to get a working program, but |
62 | * you may want to on personal preferance. Items are arranged |
61 | * you may want to on personal preferance. Items are arranged |
63 | * alphabetically. |
62 | * alphabetically. |
64 | * |
63 | * |
65 | * Short list of features, and what to search for: |
64 | * Short list of features, and what to search for: |
66 | * CS_LOGSTATS - log various new client/server data. |
|
|
67 | * DEBUG - more verbose message logging? |
65 | * DEBUG - more verbose message logging? |
68 | * MAP_CLIENT_X, MAP_CLIENT_Y - determines max size client map will receive |
66 | * MAP_CLIENT_X, MAP_CLIENT_Y - determines max size client map will receive |
69 | * MAX_TIME - how long an internal tick is in microseconds |
67 | * MAX_TIME - how long an internal tick is in microseconds |
70 | * MANY_CORES - generate core dumps on gross errors instead of continuing? |
68 | * MANY_CORES - generate core dumps on gross errors instead of continuing? |
71 | * PARTY_KILL_LOG - stores party kill information |
69 | * PARTY_KILL_LOG - stores party kill information |
… | |
… | |
141 | #define ARMOR_SPEED_LINEAR TRUE |
139 | #define ARMOR_SPEED_LINEAR TRUE |
142 | #define CREATE_HOME_PORTALS FALSE |
140 | #define CREATE_HOME_PORTALS FALSE |
143 | |
141 | |
144 | /* you can edit the ones below */ |
142 | /* you can edit the ones below */ |
145 | |
143 | |
146 | |
|
|
147 | /* CS_LOGSTATS will cause the server to log various usage stats |
|
|
148 | * (number of connections, amount of data sent, amount of data received, |
|
|
149 | * and so on.) This can be very useful if you are trying to measure |
|
|
150 | * server/bandwidth usage. It will periodially dump out information |
|
|
151 | * which contains usage stats for the last X amount of time. |
|
|
152 | * CS_LOGTIME is how often it will print out stats. |
|
|
153 | */ |
|
|
154 | #define CS_LOGSTATS |
|
|
155 | #define CS_LOGTIME 600 |
|
|
156 | |
|
|
157 | /* DEBUG generates copious amounts of output. I tend to change the CC options |
144 | /* DEBUG generates copious amounts of output. I tend to change the CC options |
158 | * in the crosssite.def file if I want this. By default, you probably |
145 | * in the crosssite.def file if I want this. By default, you probably |
159 | * dont want this defined. |
146 | * dont want this defined. |
160 | */ |
147 | */ |
161 | #ifndef DEBUG |
148 | #ifndef DEBUG |
… | |
… | |
204 | * players, monsters, or items with speed 1 can do one thing. |
191 | * players, monsters, or items with speed 1 can do one thing. |
205 | */ |
192 | */ |
206 | |
193 | |
207 | #define MAX_TIME 120000 |
194 | #define MAX_TIME 120000 |
208 | |
195 | |
|
|
196 | |
|
|
197 | /* |
|
|
198 | * MAX_ITEM_PER_DROP defines how many items a player can drop at once. |
|
|
199 | * (be careful to set this to high values, as dropping lots of things |
|
|
200 | * can be a performance problem (for which a fix is worked on)). |
|
|
201 | */ |
|
|
202 | |
|
|
203 | #define MAX_ITEM_PER_DROP 100 |
|
|
204 | |
209 | /* Polymorph as it currently stands is unbalancing, so by default |
205 | /* Polymorph as it currently stands is unbalancing, so by default |
210 | * we have it disabled. It can be enabled and it works, but |
206 | * we have it disabled. It can be enabled and it works, but |
211 | * it can be abused in various ways. |
207 | * it can be abused in various ways. |
212 | */ |
208 | */ |
213 | #define NO_POLYMORPH |
209 | #define NO_POLYMORPH |
… | |
… | |
242 | */ |
238 | */ |
243 | /* GD */ |
239 | /* GD */ |
244 | |
240 | |
245 | #define PERM_EXP_GAIN_RATIO 0.10f |
241 | #define PERM_EXP_GAIN_RATIO 0.10f |
246 | #define PERM_EXP_MAX_LOSS_RATIO 0.50f |
242 | #define PERM_EXP_MAX_LOSS_RATIO 0.50f |
247 | |
|
|
248 | /* Enable the new material code - it needs some work. You can |
|
|
249 | * enable this, and things will work, just you'll see a whole |
|
|
250 | * bunch more materials show up, and thus a whole bunch more materials |
|
|
251 | * in your inventory, and the sorting for them isn't really good. |
|
|
252 | */ |
|
|
253 | |
|
|
254 | /* |
|
|
255 | #define NEW_MATERIAL_CODE |
|
|
256 | */ |
|
|
257 | |
|
|
258 | |
243 | |
259 | /*********************************************************************** |
244 | /*********************************************************************** |
260 | * Section 3 |
245 | * Section 3 |
261 | * |
246 | * |
262 | * General file and other defaults that don't need to be changed, and |
247 | * General file and other defaults that don't need to be changed, and |
… | |
… | |
297 | |
282 | |
298 | /* LOGFILE specifies which file to log to when playing with the |
283 | /* LOGFILE specifies which file to log to when playing with the |
299 | * -daemon option. |
284 | * -daemon option. |
300 | */ |
285 | */ |
301 | #ifndef LOGFILE |
286 | #ifndef LOGFILE |
302 | #define LOGFILE "/var/log/crossfire/logfile" |
287 | #define LOGFILE "/var/log/deliantra/logfile" |
303 | #endif |
288 | #endif |
304 | |
289 | |
305 | /* |
290 | /* |
306 | * If you want to have a Message Of The Day file, define MOTD to be |
291 | * If you want to have a Message Of The Day file, define MOTD to be |
307 | * the file with the message. If the file doesn't exist or if it |
292 | * the file with the message. If the file doesn't exist or if it |