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.21 by root, Sun Nov 26 19:48:49 2006 UTC vs.
Revision 1.24 by root, Thu Dec 14 21:46:34 2006 UTC

66 * DEBUG - more verbose message logging? 66 * DEBUG - more verbose message logging?
67 * MAP_CLIENT_X, MAP_CLIENT_Y - determines max size client map will receive 67 * MAP_CLIENT_X, MAP_CLIENT_Y - determines max size client map will receive
68 * MAX_TIME - how long an internal tick is in microseconds 68 * MAX_TIME - how long an internal tick is in microseconds
69 * MANY_CORES - generate core dumps on gross errors instead of continuing? 69 * MANY_CORES - generate core dumps on gross errors instead of continuing?
70 * PARTY_KILL_LOG - stores party kill information 70 * PARTY_KILL_LOG - stores party kill information
71 * WATCHDOG - allows use of an external watchdog program
72 * 71 *
73 ***********************************************************************/ 72 ***********************************************************************/
74 73
75/* Use a very easy, non-challenging server? 74/* Use a very easy, non-challenging server?
76 * Defining the COZY_SERVER will make the server much less challenging: 75 * Defining the COZY_SERVER will make the server much less challenging:
158 * and so on.) This can be very useful if you are trying to measure 157 * and so on.) This can be very useful if you are trying to measure
159 * server/bandwidth usage. It will periodially dump out information 158 * server/bandwidth usage. It will periodially dump out information
160 * which contains usage stats for the last X amount of time. 159 * which contains usage stats for the last X amount of time.
161 * CS_LOGTIME is how often it will print out stats. 160 * CS_LOGTIME is how often it will print out stats.
162 */ 161 */
163#ifndef WIN32 /* ***win32 we set the following stuff in the IDE */
164#define CS_LOGSTATS 162#define CS_LOGSTATS
165#endif
166#ifdef CS_LOGSTATS
167#define CS_LOGTIME 600 163#define CS_LOGTIME 600
168#endif
169 164
170/* 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
171 * 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
172 * dont want this defined. 167 * dont want this defined.
173 */ 168 */
174#ifndef WIN32 /* ***win32 we set the following stuff in the IDE */
175#ifndef DEBUG 169#ifndef DEBUG
176#define DEBUG 170#define DEBUG
177#endif
178#endif 171#endif
179/* 172/*
180 * 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
181 * 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
182 * 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
259/* GD */ 252/* GD */
260 253
261#define PERM_EXP_GAIN_RATIO 0.10f 254#define PERM_EXP_GAIN_RATIO 0.10f
262#define PERM_EXP_MAX_LOSS_RATIO 0.50f 255#define PERM_EXP_MAX_LOSS_RATIO 0.50f
263 256
264/*
265 * WATCHDOG lets sends datagrams to port 13325 on localhost
266 * in (more-or-less) regular intervals, so an external watchdog
267 * program can kill the server if it hangs (for whatever reason).
268 * It shouldn't hurt anyone if this is defined but you don't
269 * have an watchdog program.
270 */
271#ifndef WIN32 /* ***win32 disable watchdog as win32 default */
272#define WATCHDOG
273#endif
274
275
276/* Enable the new material code - it needs some work. You can 257/* Enable the new material code - it needs some work. You can
277 * enable this, and things will work, just you'll see a whole 258 * enable this, and things will work, just you'll see a whole
278 * bunch more materials show up, and thus a whole bunch more materials 259 * bunch more materials show up, and thus a whole bunch more materials
279 * in your inventory, and the sorting for them isn't really good. 260 * in your inventory, and the sorting for them isn't really good.
280 */ 261 */
342 * SHUTDOWN - used when shutting down the server 323 * SHUTDOWN - used when shutting down the server
343 * SOCKETBUFSIZE - size of buffer used internally by the server for storing 324 * SOCKETBUFSIZE - size of buffer used internally by the server for storing
344 * backlogged messages. 325 * backlogged messages.
345 * TMPDIR - directory to use for temp files 326 * TMPDIR - directory to use for temp files
346 * UNIQUE_DIR - directory to put unique item files into 327 * UNIQUE_DIR - directory to put unique item files into
347 * USE_CALLOC for some memory requests
348 *********************************************************************** 328 ***********************************************************************
349 */ 329 */
350 330
351/* 331/*
352 * BANFILE - file used to ban certain sites from playing. See the example 332 * BANFILE - file used to ban certain sites from playing. See the example
378/* LOGFILE specifies which file to log to when playing with the 358/* LOGFILE specifies which file to log to when playing with the
379 * -daemon option. 359 * -daemon option.
380 */ 360 */
381 361
382#ifndef LOGFILE 362#ifndef LOGFILE
383#ifdef WIN32 /* change define path */
384#define LOGFILE "var\\crossfire.log"
385#else
386#define LOGFILE "/var/log/crossfire/logfile" 363#define LOGFILE "/var/log/crossfire/logfile"
387#endif
388#endif 364#endif
389 365
390/* 366/*
391 * MAP_MAXTIMEOUT tells the maximum of ticks until a map is swapped out 367 * MAP_MAXTIMEOUT tells the maximum of ticks until a map is swapped out
392 * after a player has left it. If it is set to 0, maps are 368 * after a player has left it. If it is set to 0, maps are
541 * something that is NFS mounted (but performance may suffer as NFS is 517 * something that is NFS mounted (but performance may suffer as NFS is
542 * slower than local disk) 518 * slower than local disk)
543 */ 519 */
544 520
545/*#define TMPDIR "/home/hugin/a/crossfire/crossfire/tmp"*/ 521/*#define TMPDIR "/home/hugin/a/crossfire/crossfire/tmp"*/
546#ifdef WIN32 /* change define path tmp */
547#define TMPDIR "tmp"
548#else
549#define TMPDIR "/tmp" 522#define TMPDIR "/tmp"
550#endif
551 523
552 524
553/* Directory to use for unique items. This is placed into the 'lib' 525/* Directory to use for unique items. This is placed into the 'lib'
554 * directory. Changing this will cause any old unique items file 526 * directory. Changing this will cause any old unique items file
555 * not to be used. 527 * not to be used.
556 */ 528 */
557#define UNIQUE_DIR "unique-items" 529#define UNIQUE_DIR "unique-items"
558 530
559/* 531/*
560 * If undefined, malloc is always used.
561 * It looks like this can be oboleted. However, it can be useful to
562 * track down some bugs, as it will make sure that the entire data structure
563 * is set to 0, at the expense of speed.
564 * Rupert Goldie has run Purify against the code, and if this is disabled,
565 * apparantly there are a lot of uninitialized memory reads - I haven't
566 * seen any problem (maybe the memory reads are copies, and the destination
567 * doesn't actually use the garbage values either?), but the impact on speed
568 * of using this probably isn't great, and should make things more stable.
569 * Msw 8-9-97
570 */
571#define USE_CALLOC
572
573
574/*
575 * These define the players starting map and location on that map, and where 532 * These define the players starting map and location on that map, and where
576 * emergency saves are defined. This should be left as is unless you make 533 * emergency saves are defined. This should be left as is unless you make
577 * major changes to the map. 534 * major changes to the map.
578 */ 535 */
579 536
580#ifdef WIN32 /* change define path city */
581
582# define EMERGENCY_MAPPATH "\\city\\city"
583# define EMERGENCY_X 15
584# define EMERGENCY_Y 19
585#else
586# define EMERGENCY_MAPPATH "/city/city" 537#define EMERGENCY_MAPPATH "/city/city"
587# define EMERGENCY_X 15 538#define EMERGENCY_X 15
588# define EMERGENCY_Y 19 539#define EMERGENCY_Y 19
589#endif
590 540
591 541
592/* 542/*
593 * These defines tells where, relative to LIBDIR, the maps, the map-index, 543 * These defines tells where, relative to LIBDIR, the maps, the map-index,
594 * archetypes highscore and treaures files and directories can be found. 544 * archetypes highscore and treaures files and directories can be found.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines