MegaGlest Forum

MegaGlest => Bug reports => Topic started by: MirceaKitsune on 29 March 2014, 22:01:09

Title: AI breaks when a morphed unit produces units with negative resource requirements
Post by: MirceaKitsune on 29 March 2014, 22:01:09
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.
Title: Re: AI breaks when a morphed unit produces units with negative resource requirements
Post by: Ishmaru on 31 March 2014, 12:34:26
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.
Title: Re: AI breaks when a morphed unit produces units with negative resource requirements
Post by: MirceaKitsune on 31 March 2014, 14:39:27
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.