Debian Codegraph @

include/config.h

raw symbols SCIP
1 #ifndef CONFIG_H
2 #define CONFIG_H
3
4 /**
5 * @file
6 * This file contains various \#defines that select various options.
7 * Some may not be desirable, and some just may not work.
8 *
9 * There are some options that are not selectable in this file which
10 * may not always be undesirable. An example would be certain
11 * treasures that you may not want to have available. To remove the
12 * activation code would make these items worthless - instead remove
13 * these from the treasure file. Some things to look for are:
14 *
15 * prepare_weapon, improve_*: Allow characters to enchant their own
16 * weapons
17 * ench_armour: Allow characters to enchant their armor.
18 *
19 * In theory, most of the values here should just be defaults, and
20 * everything here should just be selectable by different run time
21 * flags However, for some things, that would just be too messy.
22 */
23
24 /* There are 4 main sections to this file-
25 * Section 1 is feature selection (enabling/disabling certain features)
26 *
27 * Section 2 is compiler/machine dependant section (stuff that just
28 * makes the program compile and run properly, but don't change the
29 * behavior)
30 *
31 * Section 3 is location of certain files and other defaults. Things in
32 * this section generally do not need to be changed, and generally do
33 * not alter the play as perceived by players. However, you may
34 * have your own values you want to set here.
35 *
36 * Section 4 deals with save file related options.
37 */
38
39 /*******************************************************************
40 * SECTION 1 - FEATURES
41 *
42 * You don't have to change anything here to get a working program, but
43 * you may want to on personal preferance. Items are arranged
44 * alphabetically.
45 *
46 * Short list of features, and what to search for:
47 * CS_LOGSTATS - log various new client/server data.
48 * DEBUG - more verbose message logging?
49 * MAP_CLIENT_X, MAP_CLIENT_Y - determines max size client map will receive
50 * MAX_TIME - how long an internal tick is in microseconds
51 * MANY_CORES - generate core dumps on gross errors instead of continuing?
52 * PARTY_KILL_LOG - stores party kill information
53 * WATCHDOG - allows use of an external watchdog program
54 *
55 ***********************************************************************/
56
57 /* These are basically experimental values right now - perhaps should
58 * be turned into settings values at load time, but want to make
59 * sure we go down this road before doing that.
60 *
61 * MIN_PLAYER_SPEED: If a player is fully loaded with junk, this is
62 * how slow the character will move.
63 *
64 * MAX_PLAYER_SPEED: If the player is unloaded, this is how fast the
65 * player will move. Note that armor will still affect this (a
66 * character otherwise unloaded but wearing plate will be slower)
67 *
68 * FREE_PLAYER_LOAD_PERCENT: This value is how much of the players
69 * load is 'free' before it starts slowing them down - just because
70 * I pick up a book doesn't make me slower.
71 *
72 * Example: Player has a max carrying capacity of 1000 kg. If he is
73 * carrying 1000 KG, he moves at MIN_PLAYER_SPEED (0.25 by default).
74 * The free load is 0.50 (50%), which means he can carry 500 kg before
75 * he starts to slow down. So if his load is anywhere between 0 and 500 kg
76 * and character is otherwise not wearing armor or other things that slow
77 * him down, he moves at 0.75
78 * Once he goes above 500 kg, his speed is now a linear difference of
79 * MIN and MAX. With the nice round numbers chosen, it amounts to
80 * each 1 kg of look slows character down 0.001 (500 * 0.001 = 0.5,
81 * 0.75 - 0.5 = 0.25)
82 *
83 * The values can be adjusted in various ways - a free load percent
84 * of 1.0 means how much you carry does not affect movement speed.
85 * One could also adjust these values for slower of faster movement.
86 *
87 * 0.75 was chosen as default for fast movement as this gives room
88 * for magic (and other effects) to speed up the player, but speed
89 * still remain below 1.
90 *
91 * 0.25 was chosen as low end as that is still fairly slow (about
92 * 2 spaces/second), but not so slow to be really painful -
93 * typically it is low level characters that have this issue
94 * more, so I think this will improve playing quality.
95 */
96 #define MIN_PLAYER_SPEED 0.25
97 #define MAX_PLAYER_SPEED 0.75
98 #define FREE_PLAYER_LOAD_PERCENT 0.50
99
100 /*
101 * BASE_WEAPON_SPEED is sort of like the speed - what the characters
102 * weapon_speed is before we start factoring in bonuses & penalties.
103 * Want fast melee? Increase this. Slow melee? decrease this.
104 * Note that weapon_speed decreases this, so generally you want
105 * to start higher, as there isn't a lot of things that
106 * will increase this
107 */
108 #define BASE_WEAPON_SPEED 1.0
109
110 /* Use balanced stat loss code?
111 * This code is a little more merciful with repeated stat loss at lower
112 * levels. Basically, the more stats you have lost, the less likely that
113 * you will lose more. Additionally, lower level characters are shown
114 * a lot more mercy (there are caps on how much of a stat you can lose too).
115 * On the nasty side, if you are higher level, you can lose mutiple stats
116 * _at_once_ and are shown less mercy when you die. But when you're higher
117 * level, it is much easier to buy back your stats with potions.
118 * Turn this on if you want death-based stat loss to be more merciful
119 * at low levels and more cruel at high levels.
120 * Only works when stats are depleted rather than lost. This option has
121 * no effect if you are using genuine stat loss.
122 *
123 * The BALSL_.. values control this behaviour.
124 * BALSL_NUMBER_LOSSES_RATIO determines the number of stats to lose.
125 * the character level is divided by that value, and that is how many
126 * stats are lost.
127 *
128 * BALSL_MAX_LOSS_RATIO puts the upper limit on depletion of a stat -
129 * basically, level/max_loss_ratio is the most a stat can be depleted.
130 *
131 * BALSL_LOSS_CHANCE_RATIO controls how likely it is a stat is depleted.
132 * The chance not to lose a stat is
133 * depleteness^2 / (depletedness^2+ level/ratio).
134 * ie, if the stats current depleted value is 2 and the character is level
135 * 15, the chance not to lose the stat is 4/(4+3) or 4/7. The higher the
136 * level, the more likely it is a stat can get really depleted, but
137 * this gets more offset as the stat gets more depleted.
138 *
139 */
140 /* GD */
141
142 #define BALSL_LOSS_CHANCE_RATIO 4
143 #define BALSL_NUMBER_LOSSES_RATIO 6
144 #define BALSL_MAX_LOSS_RATIO 2
145
146 /* Don't edit these values. They are configured in lib/settings. These are
147 Simply the defaults. */
148
149 #define BALANCED_STAT_LOSS FALSE
150 #define PERMANENT_EXPERIENCE_RATIO 50
151 #define DEATH_PENALTY_RATIO 20
152 #define DEATH_PENALTY_LEVEL 3
153 #define SET_TITLE TRUE
154 #define SIMPLE_EXP TRUE
155 #define SPELLPOINT_LEVEL_DEPEND TRUE
156 #define SPELL_ENCUMBRANCE TRUE
157 #define SPELL_FAILURE_EFFECTS FALSE
158 #define REAL_WIZ TRUE
159 #define RECYCLE_TMP_MAPS FALSE
160 #define ALWAYS_SHOW_HP FALSE
161 #define RESURRECTION FALSE
162 #define SEARCH_ITEMS TRUE
163 #define NOT_PERMADETH TRUE
164 #define STAT_LOSS_ON_DEATH FALSE
165 #define PK_LUCK_PENALTY 1
166 #define CASTING_TIME FALSE
167 #define SET_FRIENDLY_FIRE 5
168 #define ARMOR_MAX_ENCHANT 5
169 #define ARMOR_WEIGHT_REDUCTION 10
170 #define ARMOR_WEIGHT_LINEAR TRUE
171 #define ARMOR_SPEED_IMPROVEMENT 10
172 #define ARMOR_SPEED_LINEAR TRUE
173
174 /* you can edit the ones below */
175
176 /**
177 * CS_LOGSTATS will cause the server to log various usage stats
178 * (number of connections, amount of data sent, amount of data received,
179 * and so on.) This can be very useful if you are trying to measure
180 * server/bandwidth usage. It will periodially dump out information
181 * which contains usage stats for the last X amount of time.
182 * CS_LOGTIME is how often it will print out stats.
183 */
184 #ifndef WIN32 /* ***win32 we set the following stuff in the IDE */
185 #define CS_LOGSTATS
186 #endif
187 #ifdef CS_LOGSTATS
188 #define CS_LOGTIME 600
189 #endif
190
191 /**
192 * DEBUG generates copious amounts of output. I tend to change the CC options
193 * in the crosssite.def file if I want this. By default, you probably
194 * dont want this defined.
195 */
196 #ifndef WIN32 /* ***win32 we set the following stuff in the IDE */
197 #ifndef DEBUG
198 #define DEBUG
199 #endif
200 #endif
201
202 /**
203 * This option creates more core files. In some areas, there are certain
204 * checks done to try and make the program more stable (ie, check
205 * parameter for null, return if it is). These checks are being done
206 * for things that should not happen (ie, being supplied a null parameter).
207 * What MANY_CORES does, is if one of these checks is true, it will
208 * dump core at that time, allowing for fairly easy tracking down of the
209 * problem. Better to fix problems than create thousands of checks.
210 */
211 #define MANY_CORES
212
213 /**
214 * This determines the maximum map size the client can request (and
215 * thus what the server will send to the client.
216 *
217 * Client can still request a smaller map size (for bandwidth reasons
218 * or display size of whatever else).
219 *
220 * The larger this number, the more cpu time and memory the server will
221 * need to spend to figure this out in addition to bandwidth needs.
222 * The server cpu time should be pretty trivial.
223 *
224 * There may be reasons to keep it smaller for the 'classic' crossfire
225 * experience which was 11x11. Big maps will likely make the same at
226 * least somewhat easier, but client will need to worry about lag
227 * more.
228 *
229 * I put support in for non square map updates in the define, but
230 * there very well might be things that break horribly if this is
231 * used. I figure it is easier to fix that if needed than go back
232 * at the future and have to redo a lot of stuff to support rectangular
233 * maps at that point.
234 *
235 * MSW 2001-05-28
236 */
237 #define MAP_CLIENT_X 25
238 #define MAP_CLIENT_Y 25
239
240 /**
241 * If you feel the game is too fast or too slow, change MAX_TIME.
242 * You can experiment with the 'speed \<new_max_time\>' command first.
243 * The length of a tick is MAX_TIME microseconds. During a tick,
244 * players, monsters, or items with speed 1 can do one thing.
245 */
246 #define MAX_TIME 120000
247
248 /**
249 * Polymorph as it currently stands is unbalancing, so by default
250 * we have it disabled. It can be enabled and it works, but
251 * it can be abused in various ways.
252 */
253 #define NO_POLYMORPH
254
255 /**
256 * This determine how many entries are stored in the kill log. You
257 * can see this information with the 'party kills' command. More entries
258 * mean slower performance and more memory. IF this is not defined, then
259 * this feature is disabled.
260 */
261 /*
262 #define PARTY_KILL_LOG 20
263 */
264
265 /**
266 * The PERM_EXP values adjust the behaviour of permenent experience. - if
267 * the setting permanent_experience_percentage is zero, these values have
268 * no meaning. The value in the settings file is the percentage of the
269 * experience that is permenent, the rest could be lost on death. When dying,
270 * the greatest amount of non-permenent exp it is possible to lose at one time
271 * is PERM_EXP_MAX_LOSS_RATIO - this is calculated as
272 * total exp - perm exp * loss ratio. The gain ratio is how much of experienced
273 * experience goes to the permanent value. This does not detract from total
274 * exp gain (ie, if you gained 100 exp, 100 would go to the skill total and
275 * 10 to the permanent value).
276 *
277 * A few thoughts on these default value (by MSW)
278 * gain ratio is pretty much meaningless until exp has been lost, as until
279 * that point, the value in the settings file will be used.
280 * It is also impossible for the exp to actually be reduced to the permanent
281 * exp ratio - since the loss ratio is .5, it will just get closer and
282 * closer. However, after about half a dozen hits, pretty much all the
283 * exp that can be lost has been lost, and after that, only minor loss
284 * will occur.
285 */
286 /* GD */
287
288 #define PERM_EXP_GAIN_RATIO 0.50f
289 #define PERM_EXP_MAX_LOSS_RATIO 0.50f
290
291 /**
292 * WATCHDOG lets sends datagrams to port 13325 on localhost
293 * in (more-or-less) regular intervals, so an external watchdog
294 * program can kill the server if it hangs (for whatever reason).
295 * It shouldn't hurt anyone if this is defined but you don't
296 * have an watchdog program.
297 */
298 #ifndef WIN32 /* ***win32 disable watchdog as win32 default */
299 #define WATCHDOG
300 #endif
301
302
303 /***********************************************************************
304 * SECTION 2 - Machine/Compiler specific stuff.
305 *
306 * Short list of items:
307 * O_NDELAY - If you don't have O_NDELAY, uncomment it.
308 *
309 ***********************************************************************/
310
311 /**
312 * If you get a complaint about O_NDELAY not being known/undefined, try
313 * uncommenting this.
314 * This may cause problems - O_NONBLOCK will return -1 on blocking writes
315 * and set error to EAGAIN. O_NDELAY returns 0. This is only if no bytes
316 * can be written - otherwise, the number of bytes written will be returned
317 * for both modes.
318 */
319
320 /*
321 #define O_NDELAY O_NONBLOCK
322 */
323
324
325 /***********************************************************************
326 * Section 3
327 *
328 * General file and other defaults that don't need to be changed, and
329 * do not change gameplay as percieved by players much. Some options
330 * may affect memory consumption however.
331 *
332 * Values:
333 *
334 * BANFILE - ban certain users/hosts.
335 * CSPORT - port to use for new client/server
336 * DMFILE - file with dm/wizard access lists
337 * LOGFILE - where to log if using -daemon option
338 * MAP_ - various map timeout and swapping parameters
339 * MOTD - message of the day - printed each time someone joins the game
340 * PERM_FILE - limit play times
341 * SHUTDOWN - used when shutting down the server
342 * SOCKETBUFSIZE - size of the output socket buffer
343 * TMPDIR - directory to use for temp files
344 * UNIQUE_DIR - directory to put unique item files into
345 * USE_CALLOC for some memory requests
346 ***********************************************************************
347 */
348
349 /**
350 * BANFILE - file used to ban certain sites from playing. See the example
351 * ban_file for examples.
352 */
353 #ifndef BANFILE
354 #define BANFILE "ban_file"
355 #endif
356
357 /**
358 * CSPORT is the port used for the new client/server code. Change
359 * if desired. Only of relevance if ERIC_SERVER is set above
360 */
361 #define CSPORT 13327 /* old port + 1 */
362
363 /**
364 * File containing valid names that can be dm, one on each line. See
365 * example dm_file for syntax help.
366 */
367 #ifndef DMFILE
368 #define DMFILE "dm_file"
369 #endif
370
371 /**
372 * LOGFILE specifies which file to log to when playing with the
373 * -daemon option.
374 */
375 #ifndef LOGFILE
376 #ifdef WIN32 /* change define path */
377 #define LOGFILE "var\\crossfire.log"
378 #else
379 #define LOGFILE "/var/log/crossfire/logfile"
380 #endif
381 #endif
382
383 /**
384 * MAP_MAXTIMEOUT tells the maximum of ticks until a map is swapped out
385 * after a player has left it. If it is set to 0, maps are
386 * swapped out the instant the last player leaves it.
387 * If you are low on memory, you should set this to 0.
388 * Note that depending on the map timeout variable, the number of
389 * objects can get quite high. This is because depending on the maps,
390 * a player could be having the objects of several maps in memory
391 * (the map he is in right now, and the ones he left recently.)
392 * Each map has it's own TIMEOUT value and value field and it is
393 * defaulted to 300
394 *
395 * Having a nonzero value can be useful: If a player leaves a map (and thus
396 * is on a new map), and realizes they want to go back pretty quickly, the
397 * old map is still in memory, so don't need to go disk and get it.
398 *
399 * MAP_MINTIMEOUT is used as a minimum timeout value - if the map is set
400 * to swap out in less than that many ticks, we use the MINTIMEOUT value
401 * below. If MINTIMEOUT > MAXTIMEOUT, MAXTIMEOUT will be used for all
402 * maps.
403 */
404
405 /** How many ticks till maps are swapped out. */
406 #define MAP_MAXTIMEOUT 1000
407 /** At least that many ticks before swapout. */
408 #define MAP_MINTIMEOUT 500
409
410 /**
411 * MAP_MAXRESET is the maximum time a map can have before being reset. It
412 * will override the time value set in the map, if that time is longer than
413 * MAP_MAXRESET. This value is in seconds. If you are low on space on the
414 * TMPDIR device, set this value to somethign small. The default
415 * value in the map object is MAP_DEFAULTRESET (given in seconds.)
416 * I personally like 1 hour myself, for solo play. It is long enough that
417 * maps won't be resetting as a solve a quest, but short enough that some
418 * maps (like shops and inns) will be reset during the time I play.
419 * Comment out MAP_MAXRESET time if you always want to use the value
420 * in the map archetype.
421 */
422
423 /** Maximum time to reset. */
424 #define MAP_MAXRESET 7200
425 /** Default time to reset. */
426 #define MAP_DEFAULTRESET 7200
427
428 /**
429 * Defining MEMORY_DEBUG disables Crossfire's object allocator, which allocates
430 * OBJ_EXPAND objects at a time and manages its own free list. It is faster at
431 * allocating lots of objects, but defeats memory debuggers and mitigation
432 * techniques by managing its own allocations and enabling use-after-free bugs.
433 *
434 * Unfortunately, much of the code does not work without use-after-free because
435 * even checking if an object was freed requires looking in the object. Until
436 * these issues are fixed, Crossfire needs MEMORY_DEBUG unset in order to run
437 * without crashing frequently.
438 */
439 /*#define MEMORY_DEBUG*/
440
441 /**
442 * If you want to have a Message Of The Day file, define MOTD to be
443 * the file with the message. If the file doesn't exist or if it
444 * is empty, no message will be displayed.
445 * (It resides in the CONFDIR directory)
446 */
447 #define MOTD "motd"
448
449 /**
450 * You can restrict playing in certain times by creating a PERMIT_FILE
451 * in CONFDIR. See the sample for usage notes.
452 */
453 #define PERM_FILE "forbid"
454
455 /**
456 * If you want to take the game down while installing new versions, or
457 * for other reasons, put a message into the SHUTDOWN_FILE file.
458 * Remember to delete it when you open the game again.
459 * (It resides in the CONFDIR directory)
460 */
461 #ifndef SHUTDOWN_FILE
462 #define SHUTDOWN_FILE "shutdown"
463 #endif
464
465 /**
466 * SOCKETBUFSIZE is the size of the output socket buffer we request from the
467 * operating system. If this buffer is exhausted, the server will drop the
468 * client connection. Increase this if players with large player files are
469 * causing this buffer to fill up.
470 */
471 #define SOCKETBUFSIZE 256*1024
472
473 /**
474 * Your tmp-directory should be large enough to hold the uncompressed
475 * map-files for all who are playing.
476 * It ought to be locally mounted, since the function used to generate
477 * unique temporary filenames isn't guaranteed to work over NFS or AFS
478 * On the other hand, if you know that only one crossfire server will be
479 * running using this temporary directory, it is likely to be safe to use
480 * something that is NFS mounted (but performance may suffer as NFS is
481 * slower than local disk)
482 */
483 /*#define TMPDIR "/home/hugin/a/crossfire/crossfire/tmp"*/
484 #ifdef WIN32 /* change define path tmp */
485 #define TMPDIR "tmp"
486 #else
487 #define TMPDIR "/tmp"
488 #endif
489
490 /**
491 * Directory to use for unique items. This is placed into the 'lib'
492 * directory. Changing this will cause any old unique items file
493 * not to be used.
494 */
495 #define UNIQUE_DIR "unique-items"
496
497 /**
498 * These define the players starting map and location on that map, and where
499 * emergency saves are defined. This should be left as is unless you make
500 * major changes to the map.
501 */
502 #ifdef WIN32 /* change define path city */
503 # define EMERGENCY_MAPPATH "\\world\\world_105_115"
504 #else
505 # define EMERGENCY_MAPPATH "/world/world_105_115"
506 #endif
507 # define EMERGENCY_X 5
508 # define EMERGENCY_Y 37
509
510 /**
511 * These defines tells where, relative to LIBDIR, the maps, the map-index,
512 * archetypes highscore and treaures files and directories can be found.
513 */
514 #define MAPDIR "maps"
515 #define TEMPLATE_DIR "template-maps"
516 #define ARCHETYPES "archetypes"
517 #define REGIONS "regions.reg"
518 #define HIGHSCORE "highscore"
519 #define TREASURES "treasures"
520 #define BANISHFILE "banish_file"
521
522 #define MAX_ERRORS 25 /**< Bail out if more are received during tick. */
523 #define STARTMAX 500 /**< How big array of objects to start with. */
524 #define OBJ_EXPAND 100 /**< How big steps to use when expanding array. */
525
526 #define HIGHSCORE_LENGTH 1000 /**< How many entries there are room for. */
527
528 #define ARCHTABLE 8192 /**< Used when hashing archetypes. */
529 #define MAXSTRING 20
530
531 #define COMMAND_HASH_SIZE 107 /**< If you change this, delete all characters :) */
532
533 /***********************************************************************
534 * Section 4 - save player options.
535 *
536 * There are a lot of things that deal with the save files, and what
537 * gets saved with them, so I put them in there own section.
538 *
539 ***********************************************************************/
540
541 /**
542 * If you want the players to be able to save their characters between
543 * games, define SAVE_PLAYER and set PLAYERDIR to the directories
544 * where the player-files will be put.
545 * Remember to create the directory (make install will do that though).
546 *
547 * If you intend to run a central server, and not allow the players to
548 * start their own Crossfire, you won't need to define this.
549 *
550 */
551 #ifndef PLAYERDIR
552 #define PLAYERDIR "players"
553 #endif
554
555 /**
556 * If you have defined SAVE_PLAYER, you might want to change this, too.
557 * This is the access rights for the players savefiles.
558 * Given that crossfire runs in a client/server model, there should
559 * be no issue setting these to be quite restrictive (600 and 700).
560 * Before client/server, multiple people might run the executable,
561 * thus requiring that the server be setuid/setgid, and more generous
562 * permisisons needed.
563 * SAVE_MODE is permissions for the files, SAVE_DIR_MODE is permission
564 * for nay directories created.
565 */
566 #define SAVE_MODE 0660
567 #define SAVE_DIR_MODE 0770
568
569 /* NOTE ON SAVE_INTERVAL and AUTOSAVE: Only one of these two really
570 * needs to be selected. You can set both, and things will work fine,
571 * however, it just means that a lot more saving will be done, which
572 * can slow things down some.
573 */
574
575 /**
576 * How often (in seconds) the player is saved if he drops things. If it is
577 * set to 0, the player will be saved for every item he drops. Otherwise,
578 * if the player drops and item, and the last time he was saved
579 * due to item drop is longer
580 * the SAVE_INTERVAL seconds, he is then saved. Depending on your playing
581 * environment, you may want to set this to a higher value, so that
582 * you are not spending too much time saving the characters.
583 * This option should now work (Crossfire 0.90.5)
584 */
585 /*#define SAVE_INTERVAL 300*/
586
587 /**
588 * AUTOSAVE saves the player every AUTOSAVE ticks. A value of
589 * 5000 with MAX_TIME set at 120,000 means that the player will be
590 * saved every 10 minutes. Some effort should probably be made to
591 * spread out these saves, but that might be more effort than it is
592 * worth (Depending on the spacing, if enough players log on, the spacing
593 * may not be large enough to save all of them.) As it is now, it will
594 * just set the base tick of when they log on, which should keep the
595 * saves pretty well spread out (in a fairly random fashion.)
596 */
597 #define AUTOSAVE 5000
598
599 /**
600 * Often, emergency save fails because the memory corruption that caused
601 * the crash has trashed the characters too. Define NO_EMERGENCY_SAVE
602 * to disable emergency saves. This actually does
603 * prevent emergency saves now (Version 0.90.5).
604 */
605 #define NO_EMERGENCY_SAVE
606
607 /**
608 * By selecting the following, whenever a player does a backup save (with
609 * the 'save' command), the player will be saved at home (EMERGENCY_MAP_*
610 * information that is specified later). If this is not set, the player
611 * will be saved at his present location.
612 */
613 /*#define BACKUP_SAVE_AT_HOME*/
614
615 /**
616 * RESET_LOCATION_TIME is the number of seconds that must elapse before
617 * we fill return the player to his savebed location. If this is zero,
618 * this feature is disabled (player will resume where ever he was
619 * when he last logged off). If this is set to less than two hours,
620 * it will prevent players from camping out in treasure rooms.
621 * Do not comment this out - it must be set to something - if you
622 * comment this out, the program will not compile.
623 *
624 * This will work to BACKUP_SAVE_AT_HOME at home above, but where the player
625 * where appear under what conditions is a little complicated depending
626 * on how the player exited the game. But if the elapsed time is greater than
627 * the value below, player will always get returned to savebed location
628 * location.
629 *
630 * Set to one hour as default
631 */
632 #define RESET_LOCATION_TIME 3600
633
634 /**
635 * Interval between heartbeat requests. If a client hasn't sent a command
636 * within this time period, and heartbeat is enabled, that client lost
637 * connection.
638 */
639 #define BEAT_INTERVAL 3
640
641 #endif /* CONFIG_H */