Alpha Centauri 2

Sid Meier's Alpha Centauri & Alien Crossfire => Modding => Bug/Patch Discussion => Topic started by: Nexii on April 14, 2020, 07:44:39 PM

Title: AI Ignores Tech for Terraforming
Post by: Nexii on April 14, 2020, 07:44:39 PM
Recently I've been trying out formers as a base unit that don't require Centauri Ecology to build. Farms and Forests terraform actions require Centauri Ecology, but the AI can build them before researching the tech unlike the human player. Also the 'fully automate' command circumvents required technologies. I think it may apply to other improvements as well... at least 'basic' ones like mines, solar, roads, maybe sensors
Title: Re: AI Ignores Tech for Terraforming
Post by: scient on April 15, 2020, 12:14:19 AM
Sounds like there is some AI behavior missing a check to terrain_avail() (https://github.com/b-casey/OpenSMACX/blob/master/src/terraforming.cpp#L50). In this check, the only bypass for terraforming is if you have Weather Paradigm it gives you access to Condenser, Echelon Mirror, Thermal Borehole and Aquifer without needing tech perquisites.
Title: Re: AI Ignores Tech for Terraforming
Post by: bvanevery on April 15, 2020, 12:50:37 AM
Sounds like they didn't foresee a decoupling of the Former from terrain being terraformed.

The Spartans in the original game are actually pretty well known for not doing any terraforming at all, for quite some time.  I think because they don't learn Centauri Ecology?
Title: Re: AI Ignores Tech for Terraforming
Post by: Nexii on April 16, 2020, 10:06:25 PM
It's because they can't build formers actually. If a faction has the ability to build formers it tends to make a few. Had some amusing games where Sparta had like half a continent terraformed before getting Centauri Ecology. It's actually a decent fix for AI making strange tech choices though there's probably a better one that doesn't just give Centauri Ecology to everyone. Oddly this mod was to moreso help the human Hive or Believers character get some energy going because Centauri Ecology can take some time to get

I do wonder if the AI just does like 'auto' terraforming (just farm/forest/solar/mine/sensor) or uses its own algorithm. I've never seen it do any advanced terraforming for example.
Title: Re: AI Ignores Tech for Terraforming
Post by: bvanevery on April 17, 2020, 09:16:57 PM
Fixing the Spartan Former problem is easy.  Just give Centauri Ecology a power=1 weight.  Justified because roads are a means of conquest and defense.
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: 15.

[Show Queries]