Atrinik Server  4.0
config.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Atrinik, a Multiplayer Online Role Playing Game *
3  * *
4  * Copyright (C) 2009-2014 Alex Tokar and Atrinik Development Team *
5  * *
6  * Fork from Crossfire (Multiplayer game for X-windows). *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
21  * *
22  * The author can be reached at admin@atrinik.org *
23  ************************************************************************/
24 
36 #ifndef PLUGINDIR
37 #define PLUGINDIR "./"
38 #endif
39 
40 
42 #ifndef BANFILE
43 #define BANFILE "bans"
44 #endif
45 
46 
47 #define BALSL_LOSS_CHANCE_RATIO 4
48 #define BALSL_NUMBER_LOSSES_RATIO 6
49 #define BALSL_MAX_LOSS_RATIO 2
50 
62 #define MAP_CLIENT_X 17
63 #define MAP_CLIENT_Y 17
64 
72 #define MAX_TIME 125000
73 
82 #define MAX_TIME_MULTIPLIER 1
83 
84 /* If you get a complaint about O_NDELAY not being known/undefined, try
85  * uncommenting this.
86  * This may cause problems - O_NONBLOCK will return -1 on blocking writes
87  * and set error to EAGAIN. O_NDELAY returns 0. This is only if no bytes
88  * can be written - otherwise, the number of bytes written will be returned
89  * for both modes. */
90 /*
91  * #define O_NDELAY O_NONBLOCK
92  */
93 
108 #define MAP_DEFAULTTIMEOUT 500
109 
112 #define MAP_MAXTIMEOUT 10000
113 
125 #define MAP_MAXRESET 7200
126 
127 #define MAP_DEFAULTRESET 7200
128 
134 #define EMERGENCY_MAPPATH "/emergency"
135 #define EMERGENCY_X 0
136 #define EMERGENCY_Y 0
137 
139 #define OBJECT_EXPAND 2500
140 
142 #define HIGHSCORE_LENGTH 1000
143 
144 #define MAXSTRING 20
145 
155 #define SAVE_MODE 0600
156 #define SAVE_MODE_DIR 0700
157 
166 /*#define SAVE_INTERVAL 300*/
167 
178 #define AUTOSAVE 5000
179 
181 #define SOCKET_VERSION 1066
182 
193 #define COMPRESS_DATA_PACKETS 0
194 
206 #define COMPRESS_DATA_PACKETS_SIZE 128