… | |
… | |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra 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 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * it under the terms of the GNU General Public License as published by |
9 | * the terms of the Affero GNU General Public License as published by the |
10 | * the Free Software Foundation, either version 3 of the License, or |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * (at your option) any later version. |
11 | * 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 Affero GNU General Public License |
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | * and the GNU General Public License along with this program. If not, see |
|
|
20 | * <http://www.gnu.org/licenses/>. |
20 | * |
21 | * |
21 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | */ |
23 | */ |
23 | |
24 | |
24 | /* This file contains various #defines that select various options. |
25 | /* This file contains various #defines that select various options. |
… | |
… | |
179 | * maps at that point. |
180 | * maps at that point. |
180 | * |
181 | * |
181 | * MSW 2001-05-28 |
182 | * MSW 2001-05-28 |
182 | */ |
183 | */ |
183 | |
184 | |
|
|
185 | // both must be 2**n |
184 | #define MAP_CLIENT_X 32 |
186 | #define MAP_CLIENT_X 32 |
185 | #define MAP_CLIENT_Y 32 |
187 | #define MAP_CLIENT_Y 32 |
186 | |
188 | |
187 | /* |
189 | /* |
188 | * 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. |
… | |
… | |
191 | * players, monsters, or items with speed 1 can do one thing. |
193 | * players, monsters, or items with speed 1 can do one thing. |
192 | */ |
194 | */ |
193 | |
195 | |
194 | #define MAX_TIME 120000 |
196 | #define MAX_TIME 120000 |
195 | |
197 | |
196 | |
|
|
197 | /* |
198 | /* |
198 | * MAX_ITEM_PER_DROP defines how many items a player can drop at once. |
199 | * MAX_ITEM_PER_ACTION defines how many items a player can drop/take etc. at once. |
199 | * (be careful to set this to high values, as dropping lots of things |
200 | * (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 | * can be a performance problem (for which a fix is worked on)). |
201 | */ |
202 | */ |
202 | |
203 | |
203 | #define MAX_ITEM_PER_DROP 100 |
204 | #define MAX_ITEM_PER_ACTION 100 |
204 | |
205 | |
205 | /* Polymorph as it currently stands is unbalancing, so by default |
206 | /* Polymorph as it currently stands is unbalancing, so by default |
206 | * we have it disabled. It can be enabled and it works, but |
207 | * we have it disabled. It can be enabled and it works, but |
207 | * it can be abused in various ways. |
208 | * it can be abused in various ways. |
208 | */ |
209 | */ |
… | |
… | |
254 | * DMFILE - file with dm/wizard access lists |
255 | * DMFILE - file with dm/wizard access lists |
255 | * LOGFILE - where to log if using -daemon option |
256 | * LOGFILE - where to log if using -daemon option |
256 | * MAP_ - various map timeout and swapping parameters |
257 | * MAP_ - various map timeout and swapping parameters |
257 | * MAX_OBJECTS - how many objects to keep in memory. |
258 | * MAX_OBJECTS - how many objects to keep in memory. |
258 | * MAX_OBJECTS_LWM - only swap maps out if below that value |
259 | * MAX_OBJECTS_LWM - only swap maps out if below that value |
259 | * MOTD - message of the day - printed each time someone joins the game |
|
|
260 | * PERM_FILE - limit play times |
260 | * PERM_FILE - limit play times |
261 | * SHUTDOWN - used when shutting down the server |
261 | * SHUTDOWN - used when shutting down the server |
262 | * SOCKETBUFSIZE - size of buffer used internally by the server for storing |
262 | * SOCKETBUFSIZE - size of buffer used internally by the server for storing |
263 | * backlogged messages. |
263 | * backlogged messages. |
264 | * TMPDIR - directory to use for temp files |
264 | * TMPDIR - directory to use for temp files |
… | |
… | |
284 | * -daemon option. |
284 | * -daemon option. |
285 | */ |
285 | */ |
286 | #ifndef LOGFILE |
286 | #ifndef LOGFILE |
287 | #define LOGFILE "/var/log/deliantra/logfile" |
287 | #define LOGFILE "/var/log/deliantra/logfile" |
288 | #endif |
288 | #endif |
289 | |
|
|
290 | /* |
|
|
291 | * If you want to have a Message Of The Day file, define MOTD to be |
|
|
292 | * the file with the message. If the file doesn't exist or if it |
|
|
293 | * is empty, no message will be displayed. |
|
|
294 | * (It resides in the CONFDIR directory) |
|
|
295 | */ |
|
|
296 | #define MOTD "motd" |
|
|
297 | |
289 | |
298 | /* |
290 | /* |
299 | * You can restrict playing in certain times by creating a PERMIT_FILE |
291 | * You can restrict playing in certain times by creating a PERMIT_FILE |
300 | * in CONFDIR. See the sample for usage notes. |
292 | * in CONFDIR. See the sample for usage notes. |
301 | */ |
293 | */ |