1 | /* |
1 | /* |
2 | * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Crossfire TRT is free software; you can redistribute it and/or modify it |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * under the terms of the GNU General Public License as published by the Free |
9 | * the terms of the Affero GNU General Public License as published by the |
10 | * Software Foundation; either version 2 of the License, or (at your option) |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * any later version. |
11 | * option) any later version. |
12 | * |
12 | * |
13 | * This program is distributed in the hope that it will be useful, but |
13 | * This program is distributed in the hope that it will be useful, |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * 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 along |
18 | * You should have received a copy of the Affero GNU General Public License |
19 | * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51 |
19 | * and the GNU General Public License along with this program. If not, see |
20 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 | * <http://www.gnu.org/licenses/>. |
21 | * |
21 | * |
22 | * The authors can be reached via e-mail to <crossfire@schmorp.de> |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
23 | */ |
23 | */ |
24 | |
24 | |
25 | /* This file contains various #defines that select various options. |
25 | /* This file contains various #defines that select various options. |
26 | * Some may not be desirable, and some just may not work. |
26 | * Some may not be desirable, and some just may not work. |
27 | * |
27 | * |
… | |
… | |
180 | * maps at that point. |
180 | * maps at that point. |
181 | * |
181 | * |
182 | * MSW 2001-05-28 |
182 | * MSW 2001-05-28 |
183 | */ |
183 | */ |
184 | |
184 | |
|
|
185 | // both must be 2**n |
185 | #define MAP_CLIENT_X 31 |
186 | #define MAP_CLIENT_X 32 |
186 | #define MAP_CLIENT_Y 31 |
187 | #define MAP_CLIENT_Y 32 |
187 | |
188 | |
188 | /* |
189 | /* |
189 | * If you feel the game is too fast or too slow, change MAX_TIME. |
190 | * If you feel the game is too fast or too slow, change MAX_TIME. |
190 | * You can experiment with the 'speed <new_max_time> command first. |
191 | * You can experiment with the 'speed <new_max_time> command first. |
191 | * The length of a tick is MAX_TIME microseconds. During a tick, |
192 | * The length of a tick is MAX_TIME microseconds. During a tick, |
192 | * players, monsters, or items with speed 1 can do one thing. |
193 | * players, monsters, or items with speed 1 can do one thing. |
193 | */ |
194 | */ |
194 | |
195 | |
195 | #define MAX_TIME 120000 |
196 | #define MAX_TIME 120000 |
|
|
197 | |
|
|
198 | |
|
|
199 | /* |
|
|
200 | * MAX_ITEM_PER_DROP defines how many items a player can drop at once. |
|
|
201 | * (be careful to set this to high values, as dropping lots of things |
|
|
202 | * can be a performance problem (for which a fix is worked on)). |
|
|
203 | */ |
|
|
204 | |
|
|
205 | #define MAX_ITEM_PER_DROP 100 |
196 | |
206 | |
197 | /* Polymorph as it currently stands is unbalancing, so by default |
207 | /* Polymorph as it currently stands is unbalancing, so by default |
198 | * we have it disabled. It can be enabled and it works, but |
208 | * we have it disabled. It can be enabled and it works, but |
199 | * it can be abused in various ways. |
209 | * it can be abused in various ways. |
200 | */ |
210 | */ |
… | |
… | |
231 | /* GD */ |
241 | /* GD */ |
232 | |
242 | |
233 | #define PERM_EXP_GAIN_RATIO 0.10f |
243 | #define PERM_EXP_GAIN_RATIO 0.10f |
234 | #define PERM_EXP_MAX_LOSS_RATIO 0.50f |
244 | #define PERM_EXP_MAX_LOSS_RATIO 0.50f |
235 | |
245 | |
236 | /* Enable the new material code - it needs some work. You can |
|
|
237 | * enable this, and things will work, just you'll see a whole |
|
|
238 | * bunch more materials show up, and thus a whole bunch more materials |
|
|
239 | * in your inventory, and the sorting for them isn't really good. |
|
|
240 | */ |
|
|
241 | |
|
|
242 | /* |
|
|
243 | #define NEW_MATERIAL_CODE |
|
|
244 | */ |
|
|
245 | |
|
|
246 | |
|
|
247 | /*********************************************************************** |
246 | /*********************************************************************** |
248 | * Section 3 |
247 | * Section 3 |
249 | * |
248 | * |
250 | * General file and other defaults that don't need to be changed, and |
249 | * General file and other defaults that don't need to be changed, and |
251 | * do not change gameplay as percieved by players much. Some options |
250 | * do not change gameplay as percieved by players much. Some options |
… | |
… | |
257 | * DMFILE - file with dm/wizard access lists |
256 | * DMFILE - file with dm/wizard access lists |
258 | * LOGFILE - where to log if using -daemon option |
257 | * LOGFILE - where to log if using -daemon option |
259 | * MAP_ - various map timeout and swapping parameters |
258 | * MAP_ - various map timeout and swapping parameters |
260 | * MAX_OBJECTS - how many objects to keep in memory. |
259 | * MAX_OBJECTS - how many objects to keep in memory. |
261 | * MAX_OBJECTS_LWM - only swap maps out if below that value |
260 | * MAX_OBJECTS_LWM - only swap maps out if below that value |
262 | * MOTD - message of the day - printed each time someone joins the game |
|
|
263 | * PERM_FILE - limit play times |
261 | * PERM_FILE - limit play times |
264 | * SHUTDOWN - used when shutting down the server |
262 | * SHUTDOWN - used when shutting down the server |
265 | * SOCKETBUFSIZE - size of buffer used internally by the server for storing |
263 | * SOCKETBUFSIZE - size of buffer used internally by the server for storing |
266 | * backlogged messages. |
264 | * backlogged messages. |
267 | * TMPDIR - directory to use for temp files |
265 | * TMPDIR - directory to use for temp files |
… | |
… | |
285 | |
283 | |
286 | /* LOGFILE specifies which file to log to when playing with the |
284 | /* LOGFILE specifies which file to log to when playing with the |
287 | * -daemon option. |
285 | * -daemon option. |
288 | */ |
286 | */ |
289 | #ifndef LOGFILE |
287 | #ifndef LOGFILE |
290 | #define LOGFILE "/var/log/crossfire/logfile" |
288 | #define LOGFILE "/var/log/deliantra/logfile" |
291 | #endif |
289 | #endif |
292 | |
|
|
293 | /* |
|
|
294 | * If you want to have a Message Of The Day file, define MOTD to be |
|
|
295 | * the file with the message. If the file doesn't exist or if it |
|
|
296 | * is empty, no message will be displayed. |
|
|
297 | * (It resides in the CONFDIR directory) |
|
|
298 | */ |
|
|
299 | #define MOTD "motd" |
|
|
300 | |
290 | |
301 | /* |
291 | /* |
302 | * You can restrict playing in certain times by creating a PERMIT_FILE |
292 | * You can restrict playing in certain times by creating a PERMIT_FILE |
303 | * in CONFDIR. See the sample for usage notes. |
293 | * in CONFDIR. See the sample for usage notes. |
304 | */ |
294 | */ |