From: Gerd Flaig Date: Mon, 22 Feb 2010 21:56:20 +0000 (+0100) Subject: test setup X-Git-Url: http://git.pond.sub.org/?p=eow;a=commitdiff_plain;h=fb7b2e3dffd4b1750c6ed6ddc6a0e1b9ea75e8d2;ds=sidebyside test setup --- diff --git a/test/.gitignore b/test/.gitignore new file mode 100644 index 0000000..9999c1c --- /dev/null +++ b/test/.gitignore @@ -0,0 +1,2 @@ +empire +empserver diff --git a/test/build.sh b/test/build.sh new file mode 100755 index 0000000..09b0c44 --- /dev/null +++ b/test/build.sh @@ -0,0 +1,15 @@ +#! /bin/sh + +# This scripts assumes it is run from the test directory + +REPO=../../empserver +EMPIRE_PREFIX=`pwd`/empire + +rm -rf empserver + +git clone $REPO empserver +cd empserver +./bootstrap +./configure --prefix=$EMPIRE_PREFIX +make +make install diff --git a/test/setup.sh b/test/setup.sh new file mode 100755 index 0000000..50a9351 --- /dev/null +++ b/test/setup.sh @@ -0,0 +1,14 @@ +#! /bin/sh + +PATH=./bin:./sbin:$PATH + +cd empire +rm -rf newcap_script var/empire/* +yes | files empire/etc/empire/econfig +fairland 10 30 +emp_server -d & EMP_SERVER_PID=$! +echo "EMP_SERVER_PID=$EMP_SERVER_PID" +sleep 1 +empire POGO peter no decline) +level_age_rate 96 + +# Log base to apply to tech breakthroughs above the easy tech level +tech_log_base 2 + +# Shared tech with allies (1 / ally_factor) +ally_factor 2 + +# Number of ETUs education is averaged over +edu_avg 192 + +# Number of ETUs happiness is averaged over +hap_avg 48 + +# Education consumption (1 breakthrough per edu_cons) +edu_cons 600000 + +# Happiness consumption (1 breakthrough per hap_cons) +hap_cons 600000 + + +### Sectors + +# Starting mobility for sanctuaries +startmob 127 + +# Sector mobility accumulation per ETU +sect_mob_scale 1 + +# Maximum mobility for sectors +sect_mob_max 127 + +# Number of hcms required to build a bridge span +buil_bh 100 + +# Cash required to build a bridge span +buil_bc 1000 + +# Technology required to build a bridge span +buil_bt 10 + +# Number of hcms required to build a bridge tower +buil_tower_bh 400 + +# Cash required to build a bridge tower +buil_tower_bc 3000 + +# Technology required to build a bridge tower +buil_tower_bt 100 + + +### Land Units + +# Land unit mobility accumulation per ETU +land_mob_scale 1 + +# How fast efficiency grows for land units, per ETU +land_grow_scale 2 + +# Maximum mobility for land units +land_mob_max 127 + +# Cost per ETU to maintain land units (fraction of unit price) +money_land -0.001 + +# Base level for setting morale of land units +morale_base 42 + + +### Planes + +# Plane mobility accumulation per ETU +plane_mob_scale 1 + +# How fast efficiency grows for planes each update, per ETU +plane_grow_scale 2 + +# Maximum mobility for planes +plane_mob_max 127 + +# Cost per ETU to maintain planes (fraction of plane price) +money_plane -0.001 + + +### Ships + +# Ship mobility accumulation per ETU +ship_mob_scale 1.5 + +# How fast efficiency grows for ships each update, per ETU +ship_grow_scale 3 + +# Maximum mobility for ships +ship_mob_max 127 + +# Cost per ETU to maintain ships (fraction of ship price) +money_ship -0.001 + +# Torpedo damage (damage is X + 1dX + 1dX) +torpedo_damage 40 + + +### Combat/Damage + +# Maximum range (in sectors) a fort will try to interdict another country +fort_max_interdiction_range 8 + +# Maximum range (in sectors) a land unit will try to interdict another country +land_max_interdiction_range 8 + +# Maximum range (in sectors) a ship will try to interdict another country +ship_max_interdiction_range 8 + +# Scale factor for flak damage +flakscale 1.75 + +# How much mobility do units spend for combat (* casualties/bodies) +combat_mob 5 + +# People take this amount of normal damage +people_damage 1 + +# Land units take this amount of normal damage +unit_damage 0.3 + +# Side effect damage amount done to sector +collateral_dam 0.1 + +# Attack strength multiplier for paratroopers and assaulting +assault_penalty 0.5 + +# Scale normal firing ranges by this amount +fire_range_factor 1 + +# Initial mobility for MOB_ACCESS (-etu_per_update / sect_mob_neg_factor) +sect_mob_neg_factor 2 +# Applies to sector takeover, ship build, plane or land unit build, and trade. + +# Cost to put something on a mission (percentage of max mob) +#mission_mob_cost 0 + + +### Populace + +# Birth rate for uncompensated workers +uwbrate 0.0025 + +# Money gained from taxes on a civilian in one ETU +money_civ 0.0083333 + +# Money gained from taxes on an active soldier in one ETU +money_mil -0.0833333 + +# Money gained from taxes on a soldier on active reserve in one ETU +money_res -0.0083333 + +# Money gained from taxes on an uncompensated worker in one ETU +money_uw 0.0017777 + +# Amount of food to mature 1 baby into a civilian +babyeat 0.006 + +# Bank dollar gain (per bar per etu) +bankint 0.25 + +# Food eating rate for mature people +eatrate 0.0005 + +# Food cultivation rate (* workforce in sector) +fcrate 0.0013 + +# Food growth rate (* fertility of sector) +fgrate 0.0012 + +# Civilian birth rate +obrate 0.005 + +# Maximum avail that can roll over an update +rollover_avail_max 0 + + +### Nukes + +# Decay of fallout per ETU +decay_per_etu 0.006 + +# Amount of fallout that leaks into surrounding sectors +fallout_spread 0.005 + +# Research needed to build a nuke, as fraction of the tech needed +drnuke_const 0 +# A common value is 0.33. + + +### Market/Trade + +# Time commodities stay on the market for bidding (seconds) +MARK_DELAY 7200 + +# Time ships, planes, lands and nukes stay on the market for bidding (seconds) +TRADE_DELAY 7200 + +# Tax (in percentage points) charged to the buyer on market purchases +buytax 1 + +# Amount of a trade transaction the seller makes (the rest is tax) +tradetax 0.99 + + +### Trade ships + +# Less than this distance gets no money for cashing in +trade_1_dist 8 + +# Less than this distance gets trade_1 money for cashing in +trade_2_dist 14 + +# Less than this distance gets trade_2 money for cashing in, more gets trade_3 +trade_3_dist 25 + +# Return per sector on trade_1 distance amount +trade_1 0.025 + +# Return per sector on trade_2 distance amount +trade_2 0.035 + +# Return per sector on trade_3 distance amount +trade_3 0.05 + +# Bonus you get for cashing in with an ally +trade_ally_bonus 0.2 + +# Bonus your ally gets for you cashing in with them +trade_ally_cut 0.1 + + +### Miscellaneous + +# Disabled commands, separated by space +disabled_commands "" + +# How long until announcements expire (<0 means never) +anno_keep_days 7 + +# How long until news expire +news_keep_days 10 + +# How long until lost items expire +lost_keep_hours 48 +