1 | /* |
1 | /* |
2 | * static char *rcsid_config_h = |
2 | * static char *rcsid_config_h = |
3 | * "$Id: config.h,v 1.13 2006/04/14 22:10:45 root Exp $"; |
3 | * "$Id: config.h,v 1.17 2006/05/31 23:30:56 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
151 | #define ARMOR_MAX_ENCHANT 5 |
151 | #define ARMOR_MAX_ENCHANT 5 |
152 | #define ARMOR_WEIGHT_REDUCTION 10 |
152 | #define ARMOR_WEIGHT_REDUCTION 10 |
153 | #define ARMOR_WEIGHT_LINEAR TRUE |
153 | #define ARMOR_WEIGHT_LINEAR TRUE |
154 | #define ARMOR_SPEED_IMPROVEMENT 10 |
154 | #define ARMOR_SPEED_IMPROVEMENT 10 |
155 | #define ARMOR_SPEED_LINEAR TRUE |
155 | #define ARMOR_SPEED_LINEAR TRUE |
|
|
156 | #define CREATE_HOME_PORTALS FALSE |
156 | |
157 | |
157 | /* you can edit the ones below */ |
158 | /* you can edit the ones below */ |
158 | |
159 | |
159 | |
160 | |
160 | /* CS_LOGSTATS will cause the server to log various usage stats |
161 | /* CS_LOGSTATS will cause the server to log various usage stats |
… | |
… | |
211 | * maps at that point. |
212 | * maps at that point. |
212 | * |
213 | * |
213 | * MSW 2001-05-28 |
214 | * MSW 2001-05-28 |
214 | */ |
215 | */ |
215 | |
216 | |
216 | #define MAP_CLIENT_X 40 |
217 | #define MAP_CLIENT_X 31 |
217 | #define MAP_CLIENT_Y 40 |
218 | #define MAP_CLIENT_Y 31 |
218 | |
219 | |
219 | /* |
220 | /* |
220 | * If you feel the game is too fast or too slow, change MAX_TIME. |
221 | * If you feel the game is too fast or too slow, change MAX_TIME. |
221 | * You can experiment with the 'speed <new_max_time> command first. |
222 | * You can experiment with the 'speed <new_max_time> command first. |
222 | * The length of a tick is MAX_TIME microseconds. During a tick, |
223 | * The length of a tick is MAX_TIME microseconds. During a tick, |
… | |
… | |
412 | * velow. If MINTIMEOUT > MAXTIMEOUT, MAXTIMEOUT will be used for all |
413 | * velow. If MINTIMEOUT > MAXTIMEOUT, MAXTIMEOUT will be used for all |
413 | * maps. |
414 | * maps. |
414 | */ |
415 | */ |
415 | |
416 | |
416 | /* How many ticks till maps are swapped out */ |
417 | /* How many ticks till maps are swapped out */ |
417 | #define MAP_MAXTIMEOUT 1000 |
418 | #define MAP_MAXTIMEOUT 500 |
418 | /* At least that many ticks before swapout */ |
419 | /* At least that many ticks before swapout */ |
419 | #define MAP_MINTIMEOUT 500 |
420 | #define MAP_MINTIMEOUT 300 |
420 | |
421 | |
421 | /* |
422 | /* |
422 | * MAP_MAXRESET is the maximum time a map can have before being reset. It |
423 | * MAP_MAXRESET is the maximum time a map can have before being reset. It |
423 | * will override the time value set in the map, if that time is longer than |
424 | * will override the time value set in the map, if that time is longer than |
424 | * MAP_MAXRESET. This value is in seconds. If you are low on space on the |
425 | * MAP_MAXRESET. This value is in seconds. If you are low on space on the |
… | |
… | |
448 | * consumes more memory. If you have gobs of free memory, a high number |
449 | * consumes more memory. If you have gobs of free memory, a high number |
449 | * might not be a bad idea. Each object is around 350 bytes right now. |
450 | * might not be a bad idea. Each object is around 350 bytes right now. |
450 | * 25000 is about 8.5 MB |
451 | * 25000 is about 8.5 MB |
451 | */ |
452 | */ |
452 | |
453 | |
453 | #define MAX_OBJECTS 100000 |
454 | #define MAX_OBJECTS 200000 |
454 | |
455 | |
455 | /* |
456 | /* |
456 | * Max objects low water mark (lwm). If defined, the map swapping strategy |
457 | * Max objects low water mark (lwm). If defined, the map swapping strategy |
457 | * is a bit different: |
458 | * is a bit different: |
458 | * 1) We only start swapping maps if the number of objects in use is |
459 | * 1) We only start swapping maps if the number of objects in use is |
… | |
… | |
605 | #define HIGHSCORE "highscore" |
606 | #define HIGHSCORE "highscore" |
606 | #define TREASURES "treasures" |
607 | #define TREASURES "treasures" |
607 | #define BANISHFILE "banish_file" |
608 | #define BANISHFILE "banish_file" |
608 | |
609 | |
609 | #define MAX_ERRORS 25 /* Bail out if more are received during tick */ |
610 | #define MAX_ERRORS 25 /* Bail out if more are received during tick */ |
610 | #define STARTMAX 500 /* How big array of objects to start with */ |
611 | #define STARTMAX 4000 /* How big array of objects to start with */ |
611 | #define OBJ_EXPAND 100 /* How big steps to use when expanding array */ |
612 | #define OBJ_EXPAND 500 /* How big steps to use when expanding array */ |
612 | |
613 | |
613 | #define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */ |
614 | #define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */ |
614 | |
615 | |
615 | #define ARCHTABLE 16384 /* Arch hashtable size */ |
616 | #define ARCHTABLE 16384 /* Arch hashtable size */ |
616 | #define MAXSTRING 20 |
617 | #define MAXSTRING 20 |
… | |
… | |
684 | * may not be large enough to save all of them.) As it is now, it will |
685 | * may not be large enough to save all of them.) As it is now, it will |
685 | * just set the base tick of when they log on, which should keep the |
686 | * just set the base tick of when they log on, which should keep the |
686 | * saves pretty well spread out (in a fairly random fashion.) |
687 | * saves pretty well spread out (in a fairly random fashion.) |
687 | */ |
688 | */ |
688 | |
689 | |
689 | #define AUTOSAVE 500 |
690 | #define AUTOSAVE 1000 |
690 | |
691 | |
691 | /* Often, emergency save fails because the memory corruption that caused |
692 | /* Often, emergency save fails because the memory corruption that caused |
692 | * the crash has trashed the characters too. Define NO_EMERGENCY_SAVE |
693 | * the crash has trashed the characters too. Define NO_EMERGENCY_SAVE |
693 | * to disable emergency saves. This actually does |
694 | * to disable emergency saves. This actually does |
694 | * prevent emergency saves now (Version 0.90.5). |
695 | * prevent emergency saves now (Version 0.90.5). |