Difference between revisions of "Game Formulas"

From Earth Empires Wiki
Jump to: navigation, search
(→‎Basic Formulae)
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
−
{{attention|It needs to be determined what formulas are no longer accurate}}
+
{{attention|These formula may not be entirely accurate. Use at your own risk!}}
 
This page contains a listing of various formulae for [[Earth Empires]].
 
This page contains a listing of various formulae for [[Earth Empires]].
  
−
==Basic Formulae==
+
{{Note|Some of these are old formulas, and need to be updated. This list does not include every formula either. Those highlighted in green are as accurate as possible. Anything in red is known to be incorrect. A good player does not have to know all the formulas, but a basic understanding helps.}}
−
*[[Networth]]
+
<sub>Most formulae use standard [[Round (math)|rounding]], but some, like [[networth]], use [[truncate | truncation]].</sub>
  
−
*[[Maximum population]]
+
== General Formulas ==
−
*[[Population growth]]
 
−
*[[Maximum per capita income]]
 
−
*[[Per capita income growth]]
 
  
−
<P>'''Please note, a lot of these are old formulas, and need to be updated. This list does not include every formula either. Those highlighted in <Font Color="#00FF00">green</Font> are as accurate as possible.'''</P>
 
−
<P>Earth is a game of numbers and formulas. So here they are:</p>
 
−
<BR>
 
−
<center>
 
 
<table class="wikitable">
 
<table class="wikitable">
 +
<tr>
 +
  <th>Calculating</th>
 +
  <th>Formula</th></tr>
 +
<tr>
 +
  <td BGColor="#00FF00">Per Capita Income (PCI)</td>
 +
  <td>22.5 * (1 - Taxrate) * (1 + ((Networth/Land)/90000)) * (1 + (2 * (Ent/Land))) * BusTech * GvtPCIBonus</td></tr>
 +
<tr>
 +
  <td BGColor="#00FF00">Revenue</td><td>PCI * Pop * Taxrate</td></tr>
 +
<tr>
 +
  <td BGColor="#00FF00">Construction Cost</td><td><s>3 * Land + 1500</s> 3*(max(1,land-750)^1.03)+1500</td></tr>
 +
<tr>
 +
  <td BGColor="#00FF00">Destruction Cost</td><td>0.2 * (3 * Land + 1500)</td></tr>
 +
<tr>
 +
  <td>Rebuilding Cost</td><td></td></tr>
 +
<tr>
 +
  <td BGColor="#00FF00">Oil Consumption</td><td>(Troops + Jets + Tanks)/25</td></tr>
 +
<tr>
 +
  <td BGColor="#00FF00">Buildings Per Turn</td><td>(CS/4 + 5) * GvtContrBonus</td></tr>
 +
<tr>
 +
  <td BGColor="#FF0000">Military Upkeep</td>
 +
  <td>((Troops * .11) + (Jets * .14) + (Turrets * .18) + (Tanks * .57) + Spies) * MilTech% * (1 + Networth/40000000) * GvtBonus * MilBaseFactor
 +
<br>
 +
MilBaseFactor has a lower limit of .61 and is calculated as follows:<br>
 +
MilBaseFactor = 1 - 1. 3 *(MilBases/Land)</td></tr>
 +
<tr>
 +
  <td BGColor="#00FF00">Alliance Upkeep</td>
 +
  <td>(NumOfDef/OffAllies * 4 + NumOfIntel/ResAllies * 3 + NumOfTradePacts) * ( Networth / 2000 )<br><br>If a member of GDI, add: Land * 3 * GvtPenalty<BR>If a war is declared, add: Land * 10
 +
<br />
 +
Or, broken out into individual Ally costs:
 +
<ul>
 +
<li>Defensive Allies: DefAllies * Networth * 0.002 (0.2% of NW each)</li>
 +
<li>Offensive Allies: OffAllies * Networth * 0.002 (0.2% of NW each)</li>
 +
<li>Intelligence Allies: IntelAllies * Networth * 0.0015 (0.15% of NW each)</li>
 +
<li>Research Allies: ResAllies * Networth * 0.0015 (0.15% of NW each)</li>
 +
<li>Trade Pacts: TradePacts * Networth * 0.0005 (0.05% of NW each)</li>
 +
<li>GDI Costs (Theocracy): Land * 8</li>
 +
<li>GDI Costs (All Others): Land * 4</li>
 +
<li>Declare War Costs: Land * 10</li>
 +
</ul>
 +
</td></tr>
 +
<tr>
 +
  <td>GDI Penalty</td>
 +
  <td>Because of the defensive nature of the alliance, one side effect of GDI is 10% lower gains from your attacks.</td></tr>
 +
<tr>
 +
  <td BGColor="#0F0">Total Expense</td>
 +
  <td>Military Upkeep + Alliance Upkeep + Land Upkeep</td></tr>
 +
<tr>
 +
  <td bgcolor="#0F0">Land Upkeep</td>
 +
  <td>If land < 1500: (7 / 1500) * (Land^2) + (3 * Land)<br>Otherwise: 10 * Land</td></tr>
 +
<tr>
 +
  <td BGColor="#00FF00">Networth</td><td>(Troops * 0.5) + (Jets * 0.6) + (Turrets * 0.6) + (Tanks * 2) + (Spies * 1) + (Tech * 2) + (Land * 45) + (Buildings * 35) + (Money / 20000) +  (Food/1000) + (Missles * 2500) + (Pop/6) + (Oil/100)<br>This formula does not specify whether each term is to be rounded or truncated, which varies.</td></tr>
 +
<tr><td BGColor="#00FF00">Food Production</td><td>(Farms * 5.3) + (Unused Acres*0.4) * GovFoodBonus * AgriTech
 +
<tr><td BGColor="#00FF00">Food Consumption</td><td>(Pop * 0.03) + (Spies * 0.005) + ((Troops + Jets + Turrets) * 0.001) + (Tanks * 0.003)</td></tr>
 +
<tr><td BGColor="#00FF00">Food Decay</td><td>Bushels Before Turn is Taken = BBT<br>Bushels Consumed During Turn = Cons<br>Bushels Produce During Turn = Prod<br>( BBT - Cons + Prod ) / 1000</td></tr>
 +
<TR><TD BGColor="#FFF">Technology Percentages</TD><TD>The technology percentage for countries is determined by the following formula:
  
−
<tr><th>Calculating</th><th>Formula</th></tr>
+
BaseTech%+(MaxTech%-BaseTech%)*GvtTech*(1-EXP(-GvtEff*TechPts/(C1+C2*Land)))
−
<tr><td BGColor="#00FF00">Per Capita Income (PCI)</td><td>22.5 * (1 - Taxrate) * (1 + ((Networth/Land)/90000)) * (1 + (2 * (Ent/Land))) * BusTech * GvtPCIBonus</td></tr>
+
 
−
<tr><td BGColor="#00FF00">Revenue</td><td>PCI * Pop * Taxrate</td></tr>
+
 
−
<tr><td BGColor="#00FF00">Construction Cost</td><td>3 * Land + 1500</td></tr>
+
With the variables C1, C2, GvtTech and GvtEff listed below.  The base and maximum for tech is listed in the table on [[Technology|Technology]].
−
<tr><td BGColor="#00FF00">Destruction Cost</td><td>0.2 * (3 * Land + 1500)</td></tr>
+
 
−
<tr><td>Rebuilding Cost</td><td></td></tr>
+
{|class="wikitable"
−
<tr><td BGColor="#00FF00">Oil Consumption</td><td>(Troops + Jets + Tanks)/25</td></tr>
+
!Variable!!Values
−
<tr><td BGColor="#00FF00">Buildings Per Turn</td><td>(CS/4 + 5) * GvtContrBonus</td></tr>
+
|-
−
<tr><td>Military Upkeep</td><td>Troops Upkeep: Troops * .11 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<BR>Jets Upkeep: Jets * .14 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<BR>Turrets Upkeep: Turrets * .18 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<BR>Tanks Upkeep: Tanks * .57 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<BR>Spies Upkeep: Spies * 1 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<BR>Constant = If MilBases/Land &lt; .295 Constant = 1 - 1. 3 *(MilBases/Land) Else (that is, if the number of MilBases built is more than 29.5% of your land) Constant = 0.61</td></tr>
+
!C1
−
<tr><td>Alliance Costs</td><td>Defensive Allies: DefAllies * Networth * 0.002 (0.2% of NW each)<BR>Offensive Allies: OffAllies * Networth * 0.002 (0.2% of NW each)<BR>Intelligence Allies: IntelAllies * Networth * 0.0015 (0.15% of NW each)<BR>Research Allies: ResAllies * Networth * 0.0015 (0.15% of NW each)<BR>Trade Pacts: TradePacts * Networth * 0.0005 (0.05% of NW each)<BR>GDI Costs (Theocracy): Land * 8<BR>GDI Costs (All Others): Land * 4<BR>Declare War Costs: Land * 10</td></tr>
+
|
−
<tr><td>GDI Penalty</td><td>Because of the defensive nature of the alliance, one side effect of GDI is 10% lower gains from your attacks.</td></tr>
+
*Normal Techs  192
−
<tr><td BGColor="#00FF00">Land Upkeep</td><td>Land Upkeep = Land * 10<BR></td></tr>
+
*Military Tech  780
−
<tr><td BGColor="#00FF00">Total Expense</td><td>Military Upkeep Costs + Alliance Upkeep Costs + Land Upkeep Costs</td></tr>
+
*Medical Tech  1650
−
<tr><td BGColor="#00FF00">Networth</td><td>(Troops * 0.5) + (Jets * 0.6) + (Turrets * 0.6) + (Tanks * 2) + (Spies * 1) + (Tech * 2) + (Land * 45) + (Buildings * 35) + (Money / 20000) + (Food/1000) + (Missles * 2500) + (Pop/6) + (Oil/100)</td></tr>
+
|-
−
<tr><td BGColor="#00FF00">Food Production</td><td>(Farms * 5.3) + (Unused Acres*0.4) * GovFoodBonus * AgriTech
+
!C2
−
<tr><td BGColor="#00FF00">Food Consumption</td><td>(Pop * 0.03) + (Spies * 0.005) + ((Troops + Jets + Turrets) * 0.001) + (Tanks * 0.003)</td></tr>
+
|
−
<tr><td>Food Decay</td><td>Bushels * 0.001</td></tr>
+
*Normal Techs  6.795
−
<TR><TD BGColor="#00FF00">Technology Percentages</TD><TD>BaseTech + (MaxTech - BaseTech) * GovtBonus * (1 - Exp(-Effective * TechPoints / (C1 + (C2* Land))))<BR>See [[Technology|techology]] for more info</TD></TR>
+
*Military Tech  5.75
 +
*Medical Tech  4.62
 +
|-
 +
!GvtTech
 +
|
 +
*Normal  1
 +
*[[Democracy|Democracy]]  1.1
 +
*[[Theocracy|Theocracy]]  0.65
 +
*Theocracy, Military Tech  0.65 (unverified)
 +
|-
 +
!GvtEff
 +
|
 +
*Normal  1
 +
*[[Communism|Communism]]  1.2
 +
|}</TD></TR>
 +
<tr><td BGColor="#00FF00">Tech Per Turn</td><td>TechPerTurn=Round(0.17*Labs*(1+Labs/Land)+3,0)</td></tr>
 
<TR><TD colspan=2><font size=3><b>Military Formulas</b></font></TD></TR>
 
<TR><TD colspan=2><font size=3><b>Military Formulas</b></font></TD></TR>
 
<tr><td BGColor="00FF00">SPAL<br>(<u>S</u>pies <u>P</u>er <u>A</u>cre <u>L</u>and)</td><td>(Spies*GovtBonus*Spytech + 1/4 AlliesSpies)/Land</td></tr>
 
<tr><td BGColor="00FF00">SPAL<br>(<u>S</u>pies <u>P</u>er <u>A</u>cre <u>L</u>and)</td><td>(Spies*GovtBonus*Spytech + 1/4 AlliesSpies)/Land</td></tr>
Line 41: Line 104:
 
<td>SS Strength * 1.5</td></tr>
 
<td>SS Strength * 1.5</td></tr>
 
</table>
 
</table>
−
</center>
+
=== Switching Governments ===
 +
If your current government is a [[Governments#Monarchy|Monarchy]] then there is no penalty for
 +
changing to another form.
 +
 
 +
When changing from any other form of government, there is are losses incurred to your countries
 +
[[resources]] during the change.
 +
 
 +
This loss is a percentage of all cash, [[Military_Units|military]], [[technology]] and [[buildings]]. Starting at
 +
14%, this number increases based on your [[networth|networth (NW)]] with the following formula:
 +
 
 +
{{Pre|
 +
NW < 10.5M: 14% losses
 +
 
 +
12M < NW < 30M: (14+25*(NW-10.5M)/18)% losses
  
−
Most formulae use standard [[Round (math)|rounding]], but some, like [[networth]], use [[truncate | truncation]].
+
NW > 30M: 39% losses
−
<p><b>Note:</b> A good player does not have to know all the formulas.</p>
+
}}
  
 
[[Category:Advanced Gameplay]]
 
[[Category:Advanced Gameplay]]
 
[[Category:Game Formulae]]
 
[[Category:Game Formulae]]

Latest revision as of 22:29, 28 May 2014

These formula may not be entirely accurate. Use at your own risk!


This page contains a listing of various formulae for Earth Empires.

Note: Some of these are old formulas, and need to be updated. This list does not include every formula either. Those highlighted in green are as accurate as possible. Anything in red is known to be incorrect. A good player does not have to know all the formulas, but a basic understanding helps.

Most formulae use standard rounding, but some, like networth, use truncation.

General Formulas

Calculating Formula
Per Capita Income (PCI) 22.5 * (1 - Taxrate) * (1 + ((Networth/Land)/90000)) * (1 + (2 * (Ent/Land))) * BusTech * GvtPCIBonus
RevenuePCI * Pop * Taxrate
Construction Cost3 * Land + 1500 3*(max(1,land-750)^1.03)+1500
Destruction Cost0.2 * (3 * Land + 1500)
Rebuilding Cost
Oil Consumption(Troops + Jets + Tanks)/25
Buildings Per Turn(CS/4 + 5) * GvtContrBonus
Military Upkeep ((Troops * .11) + (Jets * .14) + (Turrets * .18) + (Tanks * .57) + Spies) * MilTech% * (1 + Networth/40000000) * GvtBonus * MilBaseFactor


MilBaseFactor has a lower limit of .61 and is calculated as follows:

MilBaseFactor = 1 - 1. 3 *(MilBases/Land)
Alliance Upkeep (NumOfDef/OffAllies * 4 + NumOfIntel/ResAllies * 3 + NumOfTradePacts) * ( Networth / 2000 )

If a member of GDI, add: Land * 3 * GvtPenalty
If a war is declared, add: Land * 10


Or, broken out into individual Ally costs:

  • Defensive Allies: DefAllies * Networth * 0.002 (0.2% of NW each)
  • Offensive Allies: OffAllies * Networth * 0.002 (0.2% of NW each)
  • Intelligence Allies: IntelAllies * Networth * 0.0015 (0.15% of NW each)
  • Research Allies: ResAllies * Networth * 0.0015 (0.15% of NW each)
  • Trade Pacts: TradePacts * Networth * 0.0005 (0.05% of NW each)
  • GDI Costs (Theocracy): Land * 8
  • GDI Costs (All Others): Land * 4
  • Declare War Costs: Land * 10
GDI Penalty Because of the defensive nature of the alliance, one side effect of GDI is 10% lower gains from your attacks.
Total Expense Military Upkeep + Alliance Upkeep + Land Upkeep
Land Upkeep If land < 1500: (7 / 1500) * (Land^2) + (3 * Land)
Otherwise: 10 * Land
Networth(Troops * 0.5) + (Jets * 0.6) + (Turrets * 0.6) + (Tanks * 2) + (Spies * 1) + (Tech * 2) + (Land * 45) + (Buildings * 35) + (Money / 20000) + (Food/1000) + (Missles * 2500) + (Pop/6) + (Oil/100)
This formula does not specify whether each term is to be rounded or truncated, which varies.
Food Production(Farms * 5.3) + (Unused Acres*0.4) * GovFoodBonus * AgriTech
Food Consumption(Pop * 0.03) + (Spies * 0.005) + ((Troops + Jets + Turrets) * 0.001) + (Tanks * 0.003)
Food DecayBushels Before Turn is Taken = BBT
Bushels Consumed During Turn = Cons
Bushels Produce During Turn = Prod
( BBT - Cons + Prod ) / 1000
Technology PercentagesThe technology percentage for countries is determined by the following formula:

BaseTech%+(MaxTech%-BaseTech%)*GvtTech*(1-EXP(-GvtEff*TechPts/(C1+C2*Land)))


With the variables C1, C2, GvtTech and GvtEff listed below. The base and maximum for tech is listed in the table on Technology.

Variable Values
C1
  • Normal Techs 192
  • Military Tech 780
  • Medical Tech 1650
C2
  • Normal Techs 6.795
  • Military Tech 5.75
  • Medical Tech 4.62
GvtTech
GvtEff
Tech Per TurnTechPerTurn=Round(0.17*Labs*(1+Labs/Land)+3,0)
Military Formulas
SPAL
(Spies Per Acre Land)
(Spies*GovtBonus*Spytech + 1/4 AlliesSpies)/Land
Standard Strike Strength WeaponsTech% * GovtBonus * Readiness * (Troops + Jets*2 + Tanks*4) + min(WeaponsTech% * GovtBonus * Readiness * (Troops + Jets*2 + Tanks*4), 0.25 * (AlliesTroops + AlliesJets*2 + AlliesTanks*4)) where min(value1,value2) = lower of the two values
Planned Strike Strength SS Strength * 1.5

Switching Governments

If your current government is a Monarchy then there is no penalty for changing to another form.

When changing from any other form of government, there is are losses incurred to your countries resources during the change.

This loss is a percentage of all cash, military, technology and buildings. Starting at 14%, this number increases based on your networth (NW) with the following formula:

pre
NW < 10.5M: 14% losses

12M < NW < 30M: (14+25*(NW-10.5M)/18)% losses

NW > 30M: 39% losses