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.40 by elmex, Fri Feb 16 21:38:18 2007 UTC vs.
Revision 1.41 by root, Tue Mar 6 19:02:35 2007 UTC

165/* DEBUG generates copious amounts of output. I tend to change the CC options 165/* DEBUG generates copious amounts of output. I tend to change the CC options
166 * in the crosssite.def file if I want this. By default, you probably 166 * in the crosssite.def file if I want this. By default, you probably
167 * dont want this defined. 167 * dont want this defined.
168 */ 168 */
169#ifndef DEBUG 169#ifndef DEBUG
170#define DEBUG 170# define DEBUG
171#endif 171#endif
172/* 172/*
173 * This option creates more core files. In some areas, there are certain 173 * This option creates more core files. In some areas, there are certain
174 * checks done to try and make the program more stable (ie, check 174 * checks done to try and make the program more stable (ie, check
175 * parameter for null, return if it is). These checks are being done 175 * parameter for null, return if it is). These checks are being done
261 261
262/* 262/*
263#define NEW_MATERIAL_CODE 263#define NEW_MATERIAL_CODE
264*/ 264*/
265 265
266/***********************************************************************
267 * SECTION 2 - Machine/Compiler specific stuff.
268 *
269 * Short list of items:
270 * COMPRESS_SUFFIX - selection of compression programs
271 * O_NDELAY - If you don't have O_NDELAY, uncomment it.
272 *
273 ***********************************************************************/
274
275/*
276 * If you compress your files to save space, set the COMPRESS_SUFFIX below
277 * to the compression suffix you want (.Z, .gz, .bz2). The autoconf
278 * should already find the program to use. If you set the suffix to
279 * something that autoconf did not find, you are likely to have serious
280 * problems, so make sure you have the appropriate compression tool installed
281 * before you set this. You can look at the autoconf.h file to see
282 * what compression tools it found (search for COMPRESS).
283 * Note that this is used when saving files. Crossfire will search all
284 * methods when loading a file to see if it finds a match
285 */
286
287#ifndef COMPRESS_SUFFIX
288/* #define COMPRESS_SUFFIX ".Z" */
289#endif
290
291/* If you get a complaint about O_NDELAY not being known/undefined, try
292 * uncommenting this.
293 * This may cause problems - O_NONBLOCK will return -1 on blocking writes
294 * and set error to EAGAIN. O_NDELAY returns 0. This is only if no bytes
295 * can be written - otherwise, the number of bytes written will be returned
296 * for both modes.
297 */
298
299/*
300#define O_NDELAY O_NONBLOCK
301*/
302
303 266
304/*********************************************************************** 267/***********************************************************************
305 * Section 3 268 * Section 3
306 * 269 *
307 * General file and other defaults that don't need to be changed, and 270 * General file and other defaults that don't need to be changed, and
308 * do not change gameplay as percieved by players much. Some options 271 * do not change gameplay as percieved by players much. Some options
309 * may affect memory consumption however. 272 * may affect memory consumption however.
310 * 273 *
311 * Values: 274 * Values:
312 * 275 *
313 * BANFILE - ban certain users/hosts.
314 * CSPORT - port to use for new client/server 276 * CSPORT - port to use for new client/server
315 * DMFILE - file with dm/wizard access lists 277 * DMFILE - file with dm/wizard access lists
316 * LOGFILE - where to log if using -daemon option 278 * LOGFILE - where to log if using -daemon option
317 * MAP_ - various map timeout and swapping parameters 279 * MAP_ - various map timeout and swapping parameters
318 * MAX_OBJECTS - how many objects to keep in memory. 280 * MAX_OBJECTS - how many objects to keep in memory.
325 * TMPDIR - directory to use for temp files 287 * TMPDIR - directory to use for temp files
326 * UNIQUE_DIR - directory to put unique item files into 288 * UNIQUE_DIR - directory to put unique item files into
327 *********************************************************************** 289 ***********************************************************************
328 */ 290 */
329 291
330/*
331 * BANFILE - file used to ban certain sites from playing. See the example
332 * ban_file for examples.
333 */
334#ifndef BANFILE
335#define BANFILE "ban_file"
336#endif
337
338/* CSPORT is the port used for the new client/server code. Change 292/* CSPORT is the port used for the new client/server code. Change
339 * if desired. Only of relevance if ERIC_SERVER is set above 293 * if desired. Only of relevance if ERIC_SERVER is set above
340 */ 294 */
341#define CSPORT 13327 /* old port + 1 */ 295#define CSPORT 13327 /* old port + 1 */
342
343 296
344/* 297/*
345 * DMFILE 298 * DMFILE
346 * A file containing valid names that can be dm, one on each line. See 299 * A file containing valid names that can be dm, one on each line. See
347 * example dm_file for syntax help. 300 * example dm_file for syntax help.
348 */ 301 */
349#ifndef DMFILE 302#ifndef DMFILE
350#define DMFILE "dm_file" 303#define DMFILE "dm_file"
351#endif 304#endif
352
353 305
354/* LOGFILE specifies which file to log to when playing with the 306/* LOGFILE specifies which file to log to when playing with the
355 * -daemon option. 307 * -daemon option.
356 */ 308 */
357#ifndef LOGFILE 309#ifndef LOGFILE
379 * (It resides in the CONFDIR directory) 331 * (It resides in the CONFDIR directory)
380 */ 332 */
381#ifndef SHUTDOWN_FILE 333#ifndef SHUTDOWN_FILE
382#define SHUTDOWN_FILE "shutdown" 334#define SHUTDOWN_FILE "shutdown"
383#endif 335#endif
384
385 336
386/* 337/*
387 * SOCKETBUFSIZE is the size of the buffer used internally by the server for 338 * SOCKETBUFSIZE is the size of the buffer used internally by the server for
388 * storing backlogged messages for the client. This is not operating system 339 * storing backlogged messages for the client. This is not operating system
389 * buffers or the like. This amount is used per connection (client). 340 * buffers or the like. This amount is used per connection (client).
399 * Your tmp-directory should be large enough to hold the uncompressed 350 * Your tmp-directory should be large enough to hold the uncompressed
400 * map-files for all who are playing. Local to 'lib' directory. 351 * map-files for all who are playing. Local to 'lib' directory.
401 */ 352 */
402#define TMPDIR "tmp" 353#define TMPDIR "tmp"
403 354
404
405/* Directory to use for unique items. This is placed into the 'lib' 355/* Directory to use for unique items. This is placed into the 'lib'
406 * directory. Changing this will cause any old unique items file 356 * directory. Changing this will cause any old unique items file
407 * not to be used. 357 * not to be used.
408 */ 358 */
409#define UNIQUE_DIR "unique-items" 359#define UNIQUE_DIR "unique-items"
417#define TEMPLATE_DIR "template-maps" 367#define TEMPLATE_DIR "template-maps"
418#define ARCHETYPES "archetypes" 368#define ARCHETYPES "archetypes"
419#define REGIONS "regions" 369#define REGIONS "regions"
420#define HIGHSCORE "highscore" 370#define HIGHSCORE "highscore"
421#define TREASURES "treasures" 371#define TREASURES "treasures"
422#define BANISHFILE "banish_file"
423 372
424#define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */ 373#define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */
425 374
426#define MAXSTRING 20 375#define MAXSTRING 20
427 376
466/* IMPORTANT: there is a race during saving, where the umask is being applied */ 415/* IMPORTANT: there is a race during saving, where the umask is being applied */
467#define SAVE_MODE 0660 416#define SAVE_MODE 0660
468#define SAVE_DIR_MODE 0770 417#define SAVE_DIR_MODE 0770
469 418
470/* 419/*
471 * AUTOSAVE saves the player every AUTOSAVE ticks. A value of
472 * 5000 with MAX_TIME set at 120,000 means that the player will be
473 * saved every 10 minutes. Some effort should probably be made to
474 * spread out these saves, but that might be more effort than it is
475 * worth (Depending on the spacing, if enough players log on, the spacing
476 * may not be large enough to save all of them.) As it is now, it will
477 * just set the base tick of when they log on, which should keep the
478 * saves pretty well spread out (in a fairly random fashion.)
479 */
480
481#define AUTOSAVE 1000
482
483/* RESET_LOCATION_TIME is the number of seconds that must elapse before
484 * we will return the player to his savebed location. If this is zero,
485 * this feature is disabled (player will resume where ever he was
486 * when he last logged off). If this is set to less than two hours,
487 * it will prevent players from camping out in treasure rooms.
488 * Do not comment this out - it must be set to something - if you
489 * comment this out, the program will not compile.
490 *
491 * This will work to BACKUP_SAVE_AT_HOME at home above, but where the player
492 * where appear under what conditions is a little complicated depending
493 * on how the player exited the game. But if the elapsed time is greater than
494 * the value below, player will always get returned to savebed location
495 * location.
496 *
497 * Set to one hour as default
498 */
499
500#define RESET_LOCATION_TIME 3600
501
502/*
503 * The message to send to clients when the server calls cleanup (on crash, shutdown, restart and so on). 420 * The message to send to clients when the server calls cleanup (on crash, shutdown, restart and so on).
504 */ 421 */
505#define CLEANUP_MESSAGE "The server will likely restart within the minute. Our apologies." 422#define CLEANUP_MESSAGE "The server will likely restart within the minute. Our apologies."
506 423

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines