Detection of Metal Makers

Detection of Metal Makers

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
AI Developer
Posts: 810
Joined: 31 Jan 2005, 20:04

Detection of Metal Makers

Post 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.
0 x

User avatar
MC: Legacy & Spring 1944 Developer
Posts: 6179
Joined: 29 Apr 2005, 01:14

Re: Detection of Metal Makers

Post 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.
0 x

Post Reply

Return to “Engine”