ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/config.h
(Generate patch)

Comparing deliantra/server/include/config.h (file contents):
Revision 1.50 by root, Tue May 6 16:55:25 2008 UTC vs.
Revision 1.64 by root, Sat Apr 23 04:56:48 2011 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992 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.
114 115
115 116
116/* Don't edit these values. They are configured in lib/settings. These are 117/* Don't edit these values. They are configured in lib/settings. These are
117 Simply the defaults. */ 118 Simply the defaults. */
118 119
119#define BALANCED_STAT_LOSS FALSE 120#define BALANCED_STAT_LOSS TRUE
120#define PERMANENT_EXPERIENCE_RATIO 25 121#define PERMANENT_EXPERIENCE_RATIO 30
121#define DEATH_PENALTY_RATIO 20 122#define DEATH_PENALTY_RATIO 10
122#define DEATH_PENALTY_LEVEL 3 123#define DEATH_PENALTY_LEVEL 2
123#define SET_TITLE TRUE 124#define SET_TITLE TRUE
124#define SIMPLE_EXP TRUE 125#define SIMPLE_EXP TRUE
125#define SPELLPOINT_LEVEL_DEPEND TRUE 126#define SPELLPOINT_LEVEL_DEPEND TRUE
126#define SPELL_ENCUMBRANCE TRUE 127#define SPELL_ENCUMBRANCE FALSE
127#define SPELL_FAILURE_EFFECTS FALSE 128#define SPELL_FAILURE_EFFECTS FALSE
128#define RESURRECTION FALSE 129#define RESURRECTION FALSE
129#define SEARCH_ITEMS TRUE 130#define SEARCH_ITEMS TRUE
130#define NOT_PERMADETH TRUE 131#define NOT_PERMADETH TRUE
131#define EXPLORE_MODE FALSE
132#define STAT_LOSS_ON_DEATH FALSE 132#define STAT_LOSS_ON_DEATH FALSE
133#define PK_LUCK_PENALTY 1 133#define PK_LUCK_PENALTY 0
134#define SET_FRIENDLY_FIRE 5 134#define SET_FRIENDLY_FIRE 0
135#define ARMOR_MAX_ENCHANT 5 135#define ARMOR_MAX_ENCHANT 5
136#define ARMOR_WEIGHT_REDUCTION 10 136#define ARMOR_WEIGHT_REDUCTION 10
137#define ARMOR_WEIGHT_LINEAR TRUE 137#define ARMOR_WEIGHT_LINEAR TRUE
138#define ARMOR_SPEED_IMPROVEMENT 10 138#define ARMOR_SPEED_IMPROVEMENT 10
139#define ARMOR_SPEED_LINEAR TRUE 139#define ARMOR_SPEED_LINEAR TRUE
179 * maps at that point. 179 * maps at that point.
180 * 180 *
181 * MSW 2001-05-28 181 * MSW 2001-05-28
182 */ 182 */
183 183
184// both must be 2**n
184#define MAP_CLIENT_X 31 185#define MAP_CLIENT_X 32
185#define MAP_CLIENT_Y 31 186#define MAP_CLIENT_Y 32
186 187
187/* 188/*
188 * If you feel the game is too fast or too slow, change MAX_TIME. 189 * If you feel the game is too fast or too slow, change MAX_TIME.
189 * You can experiment with the 'speed <new_max_time> command first. 190 * You can experiment with the 'speed <new_max_time> command first.
190 * The length of a tick is MAX_TIME microseconds. During a tick, 191 * The length of a tick is MAX_TIME microseconds. During a tick,
191 * players, monsters, or items with speed 1 can do one thing. 192 * players, monsters, or items with speed 1 can do one thing.
192 */ 193 */
193 194
194#define MAX_TIME 120000 195#define MAX_TIME 120000
195 196
196
197/* 197/*
198 * MAX_ITEM_PER_DROP defines how many items a player can drop at once. 198 * 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 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)). 200 * can be a performance problem (for which a fix is worked on)).
201 */ 201 */
202 202
203#define MAX_ITEM_PER_DROP 100 203#define MAX_ITEM_PER_ACTION 100
204 204
205/* Polymorph as it currently stands is unbalancing, so by default 205/* Polymorph as it currently stands is unbalancing, so by default
206 * 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
207 * it can be abused in various ways. 207 * it can be abused in various ways.
208 */ 208 */
248 * do not change gameplay as percieved by players much. Some options 248 * do not change gameplay as percieved by players much. Some options
249 * may affect memory consumption however. 249 * may affect memory consumption however.
250 * 250 *
251 * Values: 251 * Values:
252 * 252 *
253 * CSPORT - port to use for new client/server
254 * DMFILE - file with dm/wizard access lists 253 * DMFILE - file with dm/wizard access lists
255 * LOGFILE - where to log if using -daemon option 254 * LOGFILE - where to log if using -daemon option
256 * MAP_ - various map timeout and swapping parameters 255 * MAP_ - various map timeout and swapping parameters
257 * MAX_OBJECTS - how many objects to keep in memory. 256 * MAX_OBJECTS - how many objects to keep in memory.
258 * MAX_OBJECTS_LWM - only swap maps out if below that value 257 * 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 258 * PERM_FILE - limit play times
261 * SHUTDOWN - used when shutting down the server 259 * SHUTDOWN - used when shutting down the server
262 * SOCKETBUFSIZE - size of buffer used internally by the server for storing 260 * SOCKETBUFSIZE - size of buffer used internally by the server for storing
263 * backlogged messages. 261 * backlogged messages.
264 * TMPDIR - directory to use for temp files 262 * TMPDIR - directory to use for temp files
265 * UNIQUE_DIR - directory to put unique item files into 263 * UNIQUE_DIR - directory to put unique item files into
266 *********************************************************************** 264 ***********************************************************************
267 */ 265 */
268 266
269/* CSPORT is the port used for the new client/server code. Change
270 * if desired. Only of relevance if ERIC_SERVER is set above
271 */
272#define CSPORT 13327 /* old port + 1 */
273
274/* 267/*
275 * DMFILE 268 * DMFILE
276 * A file containing valid names that can be dm, one on each line. See 269 * A file containing valid names that can be dm, one on each line. See
277 * example dm_file for syntax help. 270 * example dm_file for syntax help.
278 */ 271 */
282 275
283/* LOGFILE specifies which file to log to when playing with the 276/* LOGFILE specifies which file to log to when playing with the
284 * -daemon option. 277 * -daemon option.
285 */ 278 */
286#ifndef LOGFILE 279#ifndef LOGFILE
287#define LOGFILE "/var/log/crossfire/logfile" 280#define LOGFILE "/var/log/deliantra/logfile"
288#endif 281#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 282
298/* 283/*
299 * You can restrict playing in certain times by creating a PERMIT_FILE 284 * You can restrict playing in certain times by creating a PERMIT_FILE
300 * in CONFDIR. See the sample for usage notes. 285 * in CONFDIR. See the sample for usage notes.
301 */ 286 */
337 322
338/* 323/*
339 * These defines tells where, relative to LIBDIR, the maps, the map-index, 324 * These defines tells where, relative to LIBDIR, the maps, the map-index,
340 * archetypes highscore and treaures files and directories can be found. 325 * archetypes highscore and treaures files and directories can be found.
341 */ 326 */
342
343#define MAPDIR "maps" 327#define MAPDIR "maps"
344#define TEMPLATE_DIR "template-maps"
345#define ARCHETYPES "archetypes"
346#define REGIONS "regions"
347#define HIGHSCORE "highscore"
348#define TREASURES "treasures"
349
350#define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */
351 328
352#define MAXSTRING 20 329#define MAXSTRING 20
353 330
354#define COMMAND_HASH_SIZE 107 /* If you change this, delete all characters :) */ 331#define COMMAND_HASH_SIZE 107 /* If you change this, delete all characters :) */
355 332

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines