… | |
… | |
158 | * and so on.) This can be very useful if you are trying to measure |
158 | * and so on.) This can be very useful if you are trying to measure |
159 | * server/bandwidth usage. It will periodially dump out information |
159 | * server/bandwidth usage. It will periodially dump out information |
160 | * which contains usage stats for the last X amount of time. |
160 | * which contains usage stats for the last X amount of time. |
161 | * CS_LOGTIME is how often it will print out stats. |
161 | * CS_LOGTIME is how often it will print out stats. |
162 | */ |
162 | */ |
163 | #ifndef WIN32 /* ***win32 we set the following stuff in the IDE */ |
|
|
164 | #define CS_LOGSTATS |
163 | #define CS_LOGSTATS |
165 | #endif |
|
|
166 | #ifdef CS_LOGSTATS |
|
|
167 | #define CS_LOGTIME 600 |
164 | #define CS_LOGTIME 600 |
168 | #endif |
|
|
169 | |
165 | |
170 | /* DEBUG generates copious amounts of output. I tend to change the CC options |
166 | /* 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 |
167 | * in the crosssite.def file if I want this. By default, you probably |
172 | * dont want this defined. |
168 | * dont want this defined. |
173 | */ |
169 | */ |
174 | #ifndef WIN32 /* ***win32 we set the following stuff in the IDE */ |
|
|
175 | #ifndef DEBUG |
170 | #ifndef DEBUG |
176 | #define DEBUG |
171 | #define DEBUG |
177 | #endif |
|
|
178 | #endif |
172 | #endif |
179 | /* |
173 | /* |
180 | * This option creates more core files. In some areas, there are certain |
174 | * 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 |
175 | * 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 |
176 | * parameter for null, return if it is). These checks are being done |
… | |
… | |
266 | * in (more-or-less) regular intervals, so an external watchdog |
260 | * in (more-or-less) regular intervals, so an external watchdog |
267 | * program can kill the server if it hangs (for whatever reason). |
261 | * 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 |
262 | * It shouldn't hurt anyone if this is defined but you don't |
269 | * have an watchdog program. |
263 | * have an watchdog program. |
270 | */ |
264 | */ |
271 | #ifndef WIN32 /* ***win32 disable watchdog as win32 default */ |
|
|
272 | #define WATCHDOG |
265 | #define WATCHDOG |
273 | #endif |
|
|
274 | |
|
|
275 | |
266 | |
276 | /* Enable the new material code - it needs some work. You can |
267 | /* Enable the new material code - it needs some work. You can |
277 | * enable this, and things will work, just you'll see a whole |
268 | * 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 |
269 | * 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. |
270 | * in your inventory, and the sorting for them isn't really good. |
… | |
… | |
342 | * SHUTDOWN - used when shutting down the server |
333 | * SHUTDOWN - used when shutting down the server |
343 | * SOCKETBUFSIZE - size of buffer used internally by the server for storing |
334 | * SOCKETBUFSIZE - size of buffer used internally by the server for storing |
344 | * backlogged messages. |
335 | * backlogged messages. |
345 | * TMPDIR - directory to use for temp files |
336 | * TMPDIR - directory to use for temp files |
346 | * UNIQUE_DIR - directory to put unique item files into |
337 | * UNIQUE_DIR - directory to put unique item files into |
347 | * USE_CALLOC for some memory requests |
|
|
348 | *********************************************************************** |
338 | *********************************************************************** |
349 | */ |
339 | */ |
350 | |
340 | |
351 | /* |
341 | /* |
352 | * BANFILE - file used to ban certain sites from playing. See the example |
342 | * BANFILE - file used to ban certain sites from playing. See the example |
… | |
… | |
378 | /* LOGFILE specifies which file to log to when playing with the |
368 | /* LOGFILE specifies which file to log to when playing with the |
379 | * -daemon option. |
369 | * -daemon option. |
380 | */ |
370 | */ |
381 | |
371 | |
382 | #ifndef LOGFILE |
372 | #ifndef LOGFILE |
383 | #ifdef WIN32 /* change define path */ |
|
|
384 | #define LOGFILE "var\\crossfire.log" |
|
|
385 | #else |
|
|
386 | #define LOGFILE "/var/log/crossfire/logfile" |
373 | #define LOGFILE "/var/log/crossfire/logfile" |
387 | #endif |
|
|
388 | #endif |
374 | #endif |
389 | |
375 | |
390 | /* |
376 | /* |
391 | * MAP_MAXTIMEOUT tells the maximum of ticks until a map is swapped out |
377 | * 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 |
378 | * 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 |
527 | * something that is NFS mounted (but performance may suffer as NFS is |
542 | * slower than local disk) |
528 | * slower than local disk) |
543 | */ |
529 | */ |
544 | |
530 | |
545 | /*#define TMPDIR "/home/hugin/a/crossfire/crossfire/tmp"*/ |
531 | /*#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" |
532 | #define TMPDIR "/tmp" |
550 | #endif |
|
|
551 | |
533 | |
552 | |
534 | |
553 | /* Directory to use for unique items. This is placed into the 'lib' |
535 | /* Directory to use for unique items. This is placed into the 'lib' |
554 | * directory. Changing this will cause any old unique items file |
536 | * directory. Changing this will cause any old unique items file |
555 | * not to be used. |
537 | * not to be used. |
556 | */ |
538 | */ |
557 | #define UNIQUE_DIR "unique-items" |
539 | #define UNIQUE_DIR "unique-items" |
558 | |
540 | |
559 | /* |
541 | /* |
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 |
542 | * 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 |
543 | * emergency saves are defined. This should be left as is unless you make |
577 | * major changes to the map. |
544 | * major changes to the map. |
578 | */ |
545 | */ |
579 | |
546 | |
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" |
547 | #define EMERGENCY_MAPPATH "/city/city" |
587 | # define EMERGENCY_X 15 |
548 | #define EMERGENCY_X 15 |
588 | # define EMERGENCY_Y 19 |
549 | #define EMERGENCY_Y 19 |
589 | #endif |
|
|
590 | |
550 | |
591 | |
551 | |
592 | /* |
552 | /* |
593 | * These defines tells where, relative to LIBDIR, the maps, the map-index, |
553 | * These defines tells where, relative to LIBDIR, the maps, the map-index, |
594 | * archetypes highscore and treaures files and directories can be found. |
554 | * archetypes highscore and treaures files and directories can be found. |