Atrinik Server 2.5
include/config.h
Go to the documentation of this file.
00001 /************************************************************************
00002 *            Atrinik, a Multiplayer Online Role Playing Game            *
00003 *                                                                       *
00004 *    Copyright (C) 2009-2011 Alex Tokar and Atrinik Development Team    *
00005 *                                                                       *
00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game)     *
00007 * and Crossfire (Multiplayer game for X-windows).                       *
00008 *                                                                       *
00009 * This program is free software; you can redistribute it and/or modify  *
00010 * it under the terms of the GNU General Public License as published by  *
00011 * the Free Software Foundation; either version 2 of the License, or     *
00012 * (at your option) any later version.                                   *
00013 *                                                                       *
00014 * This program is distributed in the hope that it will be useful,       *
00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00017 * GNU General Public License for more details.                          *
00018 *                                                                       *
00019 * You should have received a copy of the GNU General Public License     *
00020 * along with this program; if not, write to the Free Software           *
00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.             *
00022 *                                                                       *
00023 * The author can be reached at admin@atrinik.org                        *
00024 ************************************************************************/
00025 
00036 #ifndef DATADIR
00037 #define DATADIR "./lib"
00038 #endif
00039 
00041 #ifndef MAPDIR
00042 #define MAPDIR  "../maps"
00043 #endif
00044 
00046 #ifndef LOCALDIR
00047 #define LOCALDIR "./data"
00048 #endif
00049 
00051 #ifndef PLAYERDIR
00052 #define PLAYERDIR "players"
00053 #endif
00054 
00056 #ifndef PLUGINDIR
00057 #define PLUGINDIR "./"
00058 #endif
00059 
00061 #ifndef DMFILE
00062 #define DMFILE "dmfile"
00063 #endif
00064 
00066 #ifndef BANFILE
00067 #define BANFILE "bans"
00068 #endif
00069 
00081 #ifndef TMPDIR
00082 #define TMPDIR LOCALDIR"/tmp"
00083 #endif
00084 
00089 #ifndef UNIQUE_DIR
00090 #define UNIQUE_DIR "unique-items"
00091 #endif
00092 
00122 #define BALANCED_STAT_LOSS 0
00123 #define BALSL_LOSS_CHANCE_RATIO 4
00124 #define BALSL_NUMBER_LOSSES_RATIO 6
00125 #define BALSL_MAX_LOSS_RATIO 2
00126 
00134 #define CS_LOGSTATS 0
00135 
00136 #if CS_LOGSTATS
00137 #define CS_LOGTIME 600
00138 #endif
00139 
00150 #define MAP_CLIENT_X 17
00151 #define MAP_CLIENT_Y 17
00152 
00159 #define MAX_TIME 125000
00160 
00169 #define REAL_WIZ
00170 
00181 #define RECYCLE_TMP_MAPS 0
00182 
00191 #define STAT_LOSS_ON_DEATH 0
00192 
00193 /* If you get a complaint about O_NDELAY not being known/undefined, try
00194  * uncommenting this.
00195  * This may cause problems - O_NONBLOCK will return -1 on blocking writes
00196  * and set error to EAGAIN.  O_NDELAY returns 0.  This is only if no bytes
00197  * can be written - otherwise, the number of bytes written will be returned
00198  * for both modes. */
00199 /*
00200 #define O_NDELAY O_NONBLOCK
00201 */
00202 
00206 #define CSPORT 13327
00207 
00221 #define MAP_DEFAULTTIMEOUT 500
00222 
00224 #define MAP_MAXTIMEOUT 10000
00225 
00236 #define MAP_MAXRESET 7200
00237 
00238 #define MAP_DEFAULTRESET 7200
00239 
00243 #define MEMORY_DEBUG 0
00244 
00257 #define USE_CALLOC
00258 
00263 #define EMERGENCY_MAPPATH "/emergency"
00264 #define EMERGENCY_X 0
00265 #define EMERGENCY_Y 0
00266 
00270 #define ARCHETYPES "archetypes"
00271 #define TREASURES "treasures"
00272 #define SETTINGS "settings"
00273 
00274 #define HIGHSCORE "highscore"
00275 
00277 #define MAX_ERRORS 25
00278 
00280 #define OBJECT_EXPAND 2500
00281 
00283 #define HIGHSCORE_LENGTH 1000
00284 
00286 #define ARCHTABLE 8192
00287 #define MAXSTRING 20
00288 
00297 #define SAVE_MODE   0660
00298 
00306 /*#define SAVE_INTERVAL 300*/
00307 
00317 #define AUTOSAVE 5000
00318 
00323 #define NO_EMERGENCY_SAVE
00324 
00326 #define SOCKET_VERSION 1055
00327 
00337 #define COMPRESS_DATA_PACKETS 0
00338 
00348 #define COMPRESS_DATA_PACKETS_SIZE 128