… | |
… | |
16 | |
16 | |
17 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 | |
20 | |
21 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at crossfire@schmorp.de |
22 | */ |
22 | */ |
23 | |
23 | |
24 | /* This file contains various #defines that select various options. |
24 | /* This file contains various #defines that select various options. |
25 | * Some may not be desirable, and some just may not work. |
25 | * Some may not be desirable, and some just may not work. |
26 | * |
26 | * |
… | |
… | |
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: |
… | |
… | |
132 | #define SIMPLE_EXP TRUE |
131 | #define SIMPLE_EXP TRUE |
133 | #define SPELLPOINT_LEVEL_DEPEND TRUE |
132 | #define SPELLPOINT_LEVEL_DEPEND TRUE |
134 | #define SPELL_ENCUMBRANCE TRUE |
133 | #define SPELL_ENCUMBRANCE TRUE |
135 | #define SPELL_FAILURE_EFFECTS FALSE |
134 | #define SPELL_FAILURE_EFFECTS FALSE |
136 | #define REAL_WIZ TRUE |
135 | #define REAL_WIZ TRUE |
137 | #define RECYCLE_TMP_MAPS FALSE |
|
|
138 | #define RESURRECTION FALSE |
136 | #define RESURRECTION FALSE |
139 | #define SEARCH_ITEMS TRUE |
137 | #define SEARCH_ITEMS TRUE |
140 | #define NOT_PERMADETH TRUE |
138 | #define NOT_PERMADETH TRUE |
141 | #define EXPLORE_MODE FALSE |
139 | #define EXPLORE_MODE FALSE |
142 | #define STAT_LOSS_ON_DEATH FALSE |
140 | #define STAT_LOSS_ON_DEATH FALSE |
… | |
… | |
253 | /* GD */ |
251 | /* GD */ |
254 | |
252 | |
255 | #define PERM_EXP_GAIN_RATIO 0.10f |
253 | #define PERM_EXP_GAIN_RATIO 0.10f |
256 | #define PERM_EXP_MAX_LOSS_RATIO 0.50f |
254 | #define PERM_EXP_MAX_LOSS_RATIO 0.50f |
257 | |
255 | |
258 | /* |
|
|
259 | * WATCHDOG lets sends datagrams to port 13325 on localhost |
|
|
260 | * in (more-or-less) regular intervals, so an external watchdog |
|
|
261 | * program can kill the server if it hangs (for whatever reason). |
|
|
262 | * It shouldn't hurt anyone if this is defined but you don't |
|
|
263 | * have an watchdog program. |
|
|
264 | */ |
|
|
265 | #define WATCHDOG |
|
|
266 | |
|
|
267 | /* Enable the new material code - it needs some work. You can |
256 | /* Enable the new material code - it needs some work. You can |
268 | * enable this, and things will work, just you'll see a whole |
257 | * enable this, and things will work, just you'll see a whole |
269 | * bunch more materials show up, and thus a whole bunch more materials |
258 | * bunch more materials show up, and thus a whole bunch more materials |
270 | * in your inventory, and the sorting for them isn't really good. |
259 | * in your inventory, and the sorting for them isn't really good. |
271 | */ |
260 | */ |
… | |
… | |
403 | /* |
392 | /* |
404 | * MAP_MAXRESET is the maximum time a map can have before being reset. It |
393 | * MAP_MAXRESET is the maximum time a map can have before being reset. It |
405 | * will override the time value set in the map, if that time is longer than |
394 | * will override the time value set in the map, if that time is longer than |
406 | * MAP_MAXRESET. This value is in seconds. If you are low on space on the |
395 | * MAP_MAXRESET. This value is in seconds. If you are low on space on the |
407 | * TMPDIR device, set this value to somethign small. The default |
396 | * TMPDIR device, set this value to somethign small. The default |
408 | * value in the map object is MAP_DEFAULTRESET (given in seconds.) |
397 | * value in the map object is given in seconds.->defaultreset |
409 | * I personally like 1 hour myself, for solo play. It is long enough that |
398 | * I personally like 1 hour myself, for solo play. It is long enough that |
410 | * maps won't be resetting as a solve a quest, but short enough that some |
399 | * maps won't be resetting as a solve a quest, but short enough that some |
411 | * maps (like shops and inns) will be reset during the time I play. |
400 | * maps (like shops and inns) will be reset during the time I play. |
412 | * Comment out MAP_MAXRESET time if you always want to use the value |
401 | * Comment out MAP_MAXRESET time if you always want to use the value |
413 | * in the map archetype. |
402 | * in the map archetype. |
… | |
… | |
537 | * not to be used. |
526 | * not to be used. |
538 | */ |
527 | */ |
539 | #define UNIQUE_DIR "unique-items" |
528 | #define UNIQUE_DIR "unique-items" |
540 | |
529 | |
541 | /* |
530 | /* |
542 | * These define the players starting map and location on that map, and where |
|
|
543 | * emergency saves are defined. This should be left as is unless you make |
|
|
544 | * major changes to the map. |
|
|
545 | */ |
|
|
546 | |
|
|
547 | #define EMERGENCY_MAPPATH "/city/city" |
|
|
548 | #define EMERGENCY_X 15 |
|
|
549 | #define EMERGENCY_Y 19 |
|
|
550 | |
|
|
551 | |
|
|
552 | /* |
|
|
553 | * These defines tells where, relative to LIBDIR, the maps, the map-index, |
531 | * These defines tells where, relative to LIBDIR, the maps, the map-index, |
554 | * archetypes highscore and treaures files and directories can be found. |
532 | * archetypes highscore and treaures files and directories can be found. |
555 | */ |
533 | */ |
556 | |
534 | |
557 | #define MAPDIR "maps" |
535 | #define MAPDIR "maps" |
… | |
… | |
559 | #define ARCHETYPES "archetypes" |
537 | #define ARCHETYPES "archetypes" |
560 | #define REGIONS "regions" |
538 | #define REGIONS "regions" |
561 | #define HIGHSCORE "highscore" |
539 | #define HIGHSCORE "highscore" |
562 | #define TREASURES "treasures" |
540 | #define TREASURES "treasures" |
563 | #define BANISHFILE "banish_file" |
541 | #define BANISHFILE "banish_file" |
564 | |
|
|
565 | #define MAX_ERRORS 25 /* Bail out if more are received during tick */ |
|
|
566 | #define OBJ_EXPAND 5000 /* How big steps to use when expanding array */ |
|
|
567 | |
542 | |
568 | #define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */ |
543 | #define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */ |
569 | |
544 | |
570 | #define ARCHTABLE 16384 /* Arch hashtable size */ |
545 | #define ARCHTABLE 16384 /* Arch hashtable size */ |
571 | #define MAXSTRING 20 |
546 | #define MAXSTRING 20 |
… | |
… | |
641 | * saves pretty well spread out (in a fairly random fashion.) |
616 | * saves pretty well spread out (in a fairly random fashion.) |
642 | */ |
617 | */ |
643 | |
618 | |
644 | #define AUTOSAVE 1000 |
619 | #define AUTOSAVE 1000 |
645 | |
620 | |
646 | /* Often, emergency save fails because the memory corruption that caused |
|
|
647 | * the crash has trashed the characters too. Define NO_EMERGENCY_SAVE |
|
|
648 | * to disable emergency saves. This actually does |
|
|
649 | * prevent emergency saves now (Version 0.90.5). |
|
|
650 | */ |
|
|
651 | |
|
|
652 | #define NO_EMERGENCY_SAVE |
|
|
653 | |
|
|
654 | /* By selecting the following, whenever a player does a backup save (with |
|
|
655 | * the 'save command), the player will be saved at home (EMERGENCY_MAP_* |
|
|
656 | * information that is specified later). IF this is not set, the player |
|
|
657 | * will be saved at his present location. |
|
|
658 | */ |
|
|
659 | |
|
|
660 | /*#define BACKUP_SAVE_AT_HOME*/ |
|
|
661 | |
|
|
662 | /* RESET_LOCATION_TIME is the number of seconds that must elapse before |
621 | /* RESET_LOCATION_TIME is the number of seconds that must elapse before |
663 | * we will return the player to his savebed location. If this is zero, |
622 | * we will return the player to his savebed location. If this is zero, |
664 | * this feature is disabled (player will resume where ever he was |
623 | * this feature is disabled (player will resume where ever he was |
665 | * when he last logged off). If this is set to less than two hours, |
624 | * when he last logged off). If this is set to less than two hours, |
666 | * it will prevent players from camping out in treasure rooms. |
625 | * it will prevent players from camping out in treasure rooms. |