Author Topic: AI breaks when a morphed unit produces units with negative resource requirements  (Read 1092 times)

MirceaKitsune

  • Technician
  • ****
  • Posts: 147
    • View Profile
I noticed this less obvious bug while working on my tech tree: The AI will refuse to build or produce anything if an unit can morph into another unit which is able to produce an unit that has a negative resource requirement. I preformed various tests and this is a certain conclusion.

To offer an example with the Tech faction: Currently, the farm can produce cows, and cows take -100 food. However, if the farm wasn't an unit which was built directly, but say the Blacksmith could be morphed into a farm, the AI would refuse to do anything.

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
The ai has issues morphing structures in general. I think its due to the AI being designed to only morph to warrior units. Perhaps If the post morph unit had an attack skill this might encourage AI to morph. But its still an uncertainty.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

MirceaKitsune

  • Technician
  • ****
  • Posts: 147
    • View Profile
The ai has issues morphing structures in general. I think its due to the AI being designed to only morph to warrior units. Perhaps If the post morph unit had an attack skill this might encourage AI to morph. But its still an uncertainty.

My faction relies on morphing both units and buildings. Although many said the current AI isn't good at morphing yet (especially buildings), it's doing a very good job from what I'm seeing. But yeah... I think this is a bug regardless, which has something to do with an incorrect calculation of units that give negative resources. For now I changed the design, so no unit which produces minus-resource units can be morphed to, only build directly.

 

anything