Alpha Centauri 2

Sid Meier's Alpha Centauri & Alien Crossfire => Modding => Topic started by: Bearu on May 16, 2020, 01:15:49 AM

Title: Ecodamage Calculations from Base Mineral Production
Post by: Bearu on May 16, 2020, 01:15:49 AM
This formula and operations cover the Eco-damage calculations under the Base Mineral Production procedure.
I do not know exactly what the large values at the end of the equations means in terms of eco-damage production. I recognize the values for Gross Mineral Production, Clean Mineral numbers, Major Atrocities, Global Sea Level Change, Faction PLANET Score, Technologies discovered, World Fungus abundance, and Base size factor into Eco-damage.

Operation:
(Base Eco-damage / 8 )
Operation:
(Clean Minerals + 10) - Eco-damage (Return 0 if negative)

Return to Register for Eco-damage

Local 4: (1-5)
Base = 1
Base = 2 for EITHER Nanoreplicator in base OR The Singularity Inductor controlled by faction
+1 for Centauri Preserve
+1 for Temple of Planet
+1 for Pholus Mutagen

Operation:
Gross Base Minerals - Base Size - Clean Minerals / Local 4 (1-5)

Add quotient to Eco-damage

Variables:
Global Sea level Change: 0-100
Global Sea level Change Magnitude: 1-100 (World Builder's Alphax variable; set at 5 in stock game)

Operation:
Global Sea level Change: 0-100/ Global Sea level Magnitude (base 5): 1-100
Operation:

Major Atrocities * 5 / (Quotient of Global Sea level Change: 0-100 / Global Sea level Magnitude (stock at 5): 1-100)
+ Sum of Local 4 (1-5)
Add result to eco-damage.

# of Tectonic Missiles activated * 5 / (Quotient of Global Sea level Change: 0-100/ Global Sea level Magnitude (base 5): 1-100)
 + Sum of Local 4 (1-5)

Add result to eco-damage

If Voice of Planet Active and Transcendent Victory on:
Eco-damage * 2
Perihelion Active:
Eco-damage * 2
Variables
If Human:
Set to 2 if Faction Difficulty at 2 or lower; otherwise set to 3
Or if AI:
6 - Global Difficulty Level
3 - SOCIAL Planet (Maximum 2??? min: -3)

u= (Faction Technology Points (+2 per tech discovered) - Faction Transcendent Thoughts Discovered) * Modified PLANET Value * Planer Fungosity (0-2) + 1 * Faction PLANET Score (-3 to 2) * Eco-damage * Difficulty Value * 715827883/ 2^31

Eco-damage value: (Eco-damage + 50 * 1374389535) / 2147483648
Add result to Eco-damage.

Title: Re: Ecodamage Calculations from Base Mineral Production
Post by: Nexii on May 16, 2020, 03:47:23 AM
This thread has it summarized well. I ended up making a spreadsheet recently so it was easier to figure out ecodamage for a given amount of minerals, PLANET rating, clean minerals, etc. Did you come across anything that gives the probability to have a fungal pop? I estimated it at 1% per 1 ecodamage but couldn't find any threads where that was investigated or confirmed.

I see AI gets 1 for difficulty modifier. That's good to confirm I was just estimating it was somewhere around 1/5th of a human player. Difficulty modifier is 5 on Transcend for a human.

http://alphacentauri2.info/index.php?topic=40.0

Title: Re: Ecodamage Calculations from Base Mineral Production
Post by: Bearu on May 16, 2020, 04:09:19 AM
This thread has it summarized well. I ended up making a spreadsheet recently so it was easier to figure out ecodamage for a given amount of minerals, PLANET rating, clean minerals, etc. Did you come across anything that gives the probability to have a fungal pop? I estimated it at 1% per 1 ecodamage but couldn't find any threads where that was investigated or confirmed.

I see AI gets 1 for difficulty modifier. That's good to confirm I was just estimating it was somewhere around 1/5th of a human player. Difficulty modifier is 5 on Transcend for a human.

http://alphacentauri2.info/index.php?topic=40.0

Thank you for the page from sisko on the calculations for ecological damage.

The operations for a chance of a fungal pop exists in the function for the fungal pop script; the fungal pop script operates under the start of turn checks. I have not explored thoroughly the start of turn checks because Yitzi modified the section extensively.
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 31 - 840KB. (show)
Queries used: 14.

[Show Queries]