Page 1 of 1

Detection of Metal Makers

Posted: 28 Jun 2020, 09:46
by submarine
Hello together,

within AAI I used to check the "metalMake" parameter of the UnitDefinition. At least with BA 10.24, this is not working anymore as the value is 0. I could not find any other hint whether a unit converts energy to metal. Does somebody know how this is handled?

Currently, metal makers have to be defined manually for AAI in the mod/game configuration file. I would like to get rid of this and detect them automatically from the unit properties.

Re: Detection of Metal Makers

Posted: 28 Jun 2020, 13:41
by FLOZi
It's possible that it is handled entirely through lua so may not be recognizable from unitdef tags, unless perhaps an entry in customParams.

Re: Detection of Metal Makers

Posted: 22 Oct 2020, 09:14
by IceXuick
Afaik metal makers have been automated - they turn on/off through a widget/gadget.

Re: Detection of Metal Makers

Posted: 22 Oct 2020, 15:55
by Silentwings
The gadget can set the unit on/off property (in fact, iirc, that's how this gadget works). An AI can see this.

I guess what may not be made "public info" by the gadget is the ratio/efficiency of the conversion.

Re: Detection of Metal Makers

Posted: 22 Oct 2020, 18:39
by Floris
For BAR I modified the gadget recently to look for customparams
energyconv_capacity + energyconv_efficiency

example armmkr