1 | /* |
1 | /* |
2 | * static char *rcsid_config_h = |
2 | * static char *rcsid_config_h = |
3 | * "$Id: config.h,v 1.4 2006/02/09 02:22:04 root Exp $"; |
3 | * "$Id: config.h,v 1.5 2006/03/07 13:44:43 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 | |
… | |
… | |
653 | * thus requiring that the server be setuid/setgid, and more generous |
653 | * thus requiring that the server be setuid/setgid, and more generous |
654 | * permisisons needed. |
654 | * permisisons needed. |
655 | * SAVE_MODE is permissions for the files, SAVE_DIR_MODE is permission |
655 | * SAVE_MODE is permissions for the files, SAVE_DIR_MODE is permission |
656 | * for nay directories created. |
656 | * for nay directories created. |
657 | */ |
657 | */ |
|
|
658 | /* IMPORTANT: there is a race during saving, where the umask is being applied */ |
658 | #define SAVE_MODE 0660 |
659 | #define SAVE_MODE 0660 |
659 | #define SAVE_DIR_MODE 0770 |
660 | #define SAVE_DIR_MODE 0770 |
660 | |
661 | |
661 | /* NOTE ON SAVE_INTERVAL and AUTOSAVE: Only one of these two really |
662 | /* NOTE ON SAVE_INTERVAL and AUTOSAVE: Only one of these two really |
662 | * needs to be selected. You can set both, and things will work fine, |
663 | * needs to be selected. You can set both, and things will work fine, |
… | |
… | |
672 | * environment, you may want to set this to a higher value, so that |
673 | * environment, you may want to set this to a higher value, so that |
673 | * you are not spending too much time saving the characters. |
674 | * you are not spending too much time saving the characters. |
674 | * This option should now work (Crossfire 0.90.5) |
675 | * This option should now work (Crossfire 0.90.5) |
675 | */ |
676 | */ |
676 | |
677 | |
677 | #define SAVE_INTERVAL 60 |
678 | //#define SAVE_INTERVAL 60 |
678 | |
679 | |
679 | /* |
680 | /* |
680 | * AUTOSAVE saves the player every AUTOSAVE ticks. A value of |
681 | * AUTOSAVE saves the player every AUTOSAVE ticks. A value of |
681 | * 5000 with MAX_TIME set at 120,000 means that the player will be |
682 | * 5000 with MAX_TIME set at 120,000 means that the player will be |
682 | * saved every 10 minutes. Some effort should probably be made to |
683 | * saved every 10 minutes. Some effort should probably be made to |
… | |
… | |
693 | * the crash has trashed the characters too. Define NO_EMERGENCY_SAVE |
694 | * the crash has trashed the characters too. Define NO_EMERGENCY_SAVE |
694 | * to disable emergency saves. This actually does |
695 | * to disable emergency saves. This actually does |
695 | * prevent emergency saves now (Version 0.90.5). |
696 | * prevent emergency saves now (Version 0.90.5). |
696 | */ |
697 | */ |
697 | |
698 | |
698 | #define NO_EMERGENCY_SAVE |
699 | //#define NO_EMERGENCY_SAVE |
699 | |
700 | |
700 | /* By selecting the following, whenever a player does a backup save (with |
701 | /* By selecting the following, whenever a player does a backup save (with |
701 | * the 'save command), the player will be saved at home (EMERGENCY_MAP_* |
702 | * the 'save command), the player will be saved at home (EMERGENCY_MAP_* |
702 | * information that is specified later). IF this is not set, the player |
703 | * information that is specified later). IF this is not set, the player |
703 | * will be saved at his present location. |
704 | * will be saved at his present location. |