/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
- * Ken Stevens, Steve McClure
+ * Copyright (C) 1986-2020, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Ken Stevens, Steve McClure, Markus Armbruster
*
- * This program is free software; you can redistribute it and/or modify
+ * Empire is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* ---
*
* Known contributors to this file:
* Ken Stevens, 1995
* Steve McClure, 1996
- * Markus Armbruster, 2004-2008
+ * Markus Armbruster, 2004-2020
*/
#include <config.h>
/* E-mail of the deity */
char *privlog = "careless@invalid";
/* Divine hosts and networks */
-char *privip = "127.0.0.1 ::1 ::ffff:127.0.0.1";
+char *privip = "127.0.0.1 ::1"
+#ifndef HAVE_WORKING_IN6_IS_ADDR_V4MAPPED
+ " ::ffff:127.0.0.1" /* See sockaddr_ntop() */
+#endif
+ ;
char *post_crash_dump_hook = "";
char *disabled_commands = "";
+int running_test_suite = 0; /* For use by "make check" only */
+
int keep_journal = 0; /* journal log file enabled */
int WORLD_X = 64; /* World size - x */
int TRADE_DELAY = 7200; /* Seconds to bid on units */
int m_m_p_d = 1440; /* max mins of play per day (per country) */
-int etu_per_update = 60; /* # of etu's per update */
+int etu_per_update = 60; /* # of ETUs per update */
int update_window = 0; /* update window adjustment, in seconds */
int update_demand = UPD_DEMAND_NONE;
int update_wantmin = 1; /* votes required for demand update */
char *game_hours = ""; /* hours game is running */
char *pre_update_hook = "";
int max_idle = 15; /* session dies after max_idle minutes idle */
+int max_idle_visitor = 5; /* same for visitors */
+int login_grace_time = 120; /* Grace time for completing login (sec) */
int sect_mob_max = 127; /* sector mobility limits */
float sect_mob_scale = 1.0; /* accumulation multiplier */
double obrate = 0.005; /* other sectors birth rate */
double uwbrate = 0.0025; /* uncompensated worker birth rate */
/* values > 0.25 for either will overflow */
-int rollover_avail_max = 0; /* max. avail that can roll over an update */
+int rollover_avail_max = 50; /* max. avail that can roll over an update */
/* opt_FALLOUT */
-double decay_per_etu = 0.006; /* This gives a half life of ? etus,
+double decay_per_etu = 0.006; /* This gives a half life of ? ETUs,
about ? days.
half life in Jt
log(.5) / log(1-decay_per_etu)
float edu_avg = 16.0 * 12.0;
-/* tech build limitations. */
+/* tech build limitations. */
float easy_tech = 1.00; /* amount of tech built with no penality */
float tech_log_base = 2.0; /* base of log to take of in-efficient tech */
float ally_factor = 2.0; /* shared tech with allies = 1/factor */
-float level_age_rate = 96.0; /* 1% per 96 etu's; 0 -> no decline */
+float level_age_rate = 96.0; /* 1% per 96 ETUs; 0 -> no decline */
int players_at_00 = 0; /* players coord system on deity 0,0? */
float btu_build_rate = 0.0012; /* etu * civ * eff * btu_build_rate */
/* 8 * 999 * 100 * 0.0004 = 319 */
-int max_btus = 640; /* maximum # of btu's */
+int max_btus = 640; /* maximum # of BTUs */
double buil_bt = 10.0; /* tech level required to build a bridge */
int buil_bh = 100; /* hcm required to build a bridge */
double buil_bc = 1000.0; /* cash required to build a bridge */
double buil_tower_bt = 100.0; /* tech level required to build a tower */
-int buil_tower_bh = 400; /* hcm required to build a bridge tower */
+int buil_tower_bh = 300; /* hcm required to build a bridge tower */
double buil_tower_bc = 3000.0; /* cash required to build a bridge tower */
float drnuke_const = 0.0; /* research must be at least drnuke_const*tech */
* drnuke_const is .25, you need a 75 res to
* build a nuke that takes 300 tech
*/
-/* opt_TRADESHIPS */
+/* trade ships */
int trade_1_dist = 8; /* less than this gets no money */
int trade_2_dist = 14; /* less than this gets trade_1 money */
int trade_3_dist = 25; /* less than this gets trade_2 money */
float trade_3 = 0.050; /* return on trade_3 distance */
float trade_ally_bonus = 0.20; /* 20% bonus for trading with allies */
float trade_ally_cut = 0.10; /* 10% bonus for ally you trade with */
-/* end opt_TRADESHIPS */
int torpedo_damage = 40; /* damage is X + 1dX + 1dX, so 40+1d40+1d40 */
-long start_cash = 25000;
+int start_cash = 25000;
/* initial levels */
float start_education = 0.0;