… | |
… | |
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. |
… | |
… | |
378 | /* LOGFILE specifies which file to log to when playing with the |
369 | /* LOGFILE specifies which file to log to when playing with the |
379 | * -daemon option. |
370 | * -daemon option. |
380 | */ |
371 | */ |
381 | |
372 | |
382 | #ifndef LOGFILE |
373 | #ifndef LOGFILE |
383 | #ifdef WIN32 /* change define path */ |
|
|
384 | #define LOGFILE "var\\crossfire.log" |
|
|
385 | #else |
|
|
386 | #define LOGFILE "/var/log/crossfire/logfile" |
374 | #define LOGFILE "/var/log/crossfire/logfile" |
387 | #endif |
|
|
388 | #endif |
375 | #endif |
389 | |
376 | |
390 | /* |
377 | /* |
391 | * MAP_MAXTIMEOUT tells the maximum of ticks until a map is swapped out |
378 | * 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 |
379 | * after a player has left it. If it is set to 0, maps are |
… | |
… | |
527 | * will drop the client connection for falling too far behind. So if |
514 | * will drop the client connection for falling too far behind. So if |
528 | * you have very slow client connections, a larger value may be |
515 | * you have very slow client connections, a larger value may be |
529 | * warranted. |
516 | * warranted. |
530 | */ |
517 | */ |
531 | |
518 | |
532 | #define SOCKETBUFSIZE 128*1024 |
519 | #define SOCKETBUFSIZE 256*1024 |
533 | |
520 | |
534 | /* |
521 | /* |
535 | * Your tmp-directory should be large enough to hold the uncompressed |
522 | * Your tmp-directory should be large enough to hold the uncompressed |
536 | * map-files for all who are playing. |
523 | * map-files for all who are playing. |
537 | * It ought to be locally mounted, since the function used to generate |
524 | * It ought to be locally mounted, since the function used to generate |
… | |
… | |
541 | * something that is NFS mounted (but performance may suffer as NFS is |
528 | * something that is NFS mounted (but performance may suffer as NFS is |
542 | * slower than local disk) |
529 | * slower than local disk) |
543 | */ |
530 | */ |
544 | |
531 | |
545 | /*#define TMPDIR "/home/hugin/a/crossfire/crossfire/tmp"*/ |
532 | /*#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" |
533 | #define TMPDIR "/tmp" |
550 | #endif |
|
|
551 | |
534 | |
552 | |
535 | |
553 | /* Directory to use for unique items. This is placed into the 'lib' |
536 | /* Directory to use for unique items. This is placed into the 'lib' |
554 | * directory. Changing this will cause any old unique items file |
537 | * directory. Changing this will cause any old unique items file |
555 | * not to be used. |
538 | * not to be used. |
… | |
… | |
575 | * These define the players starting map and location on that map, and where |
558 | * 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 |
559 | * emergency saves are defined. This should be left as is unless you make |
577 | * major changes to the map. |
560 | * major changes to the map. |
578 | */ |
561 | */ |
579 | |
562 | |
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" |
563 | #define EMERGENCY_MAPPATH "/city/city" |
587 | # define EMERGENCY_X 15 |
564 | #define EMERGENCY_X 15 |
588 | # define EMERGENCY_Y 19 |
565 | #define EMERGENCY_Y 19 |
589 | #endif |
|
|
590 | |
566 | |
591 | |
567 | |
592 | /* |
568 | /* |
593 | * These defines tells where, relative to LIBDIR, the maps, the map-index, |
569 | * These defines tells where, relative to LIBDIR, the maps, the map-index, |
594 | * archetypes highscore and treaures files and directories can be found. |
570 | * archetypes highscore and treaures files and directories can be found. |