a recent update to a mod had me digging around in AICoreOfficerPlugin and it gave me a few thoughts -
1 - is it possible to restrict what AI core types can be installed? e.g., if I have a special fancy automated ship and I only want my special fancy AI cores being installed in it, is that possible without janktm?
2 - is it possible to change what skills are available to AI cores? that mod I mentioned does have a custom AI core w/ a custom skill, but it doesn't appear in the picker menu to be reassigned.
(and to get a bit API request-y, if they're not currently possible, can we get methods to do them if they're not too much of a pain to implement?)
For the skill picker, if the skill is npc_only, then it only shows that skill if it also has the "ai_core" tag.
For restricting which AI cores are used, hmm. I don't think it's currently possible without, as you say, jank - if you provide your own custom plugin for the cores you *don't* want on your ship, you'd still have to create a PersonAPI for that core ID, or the game would crash. I've changed it so that the game will skip over that core ID instead.
In the meantime your best bet might be to (jankily) create a person with no skills and a name like "CAN NOT INSTALL" or something
And also to make sure that your plugin kicks in for *all* commodities with the ai_core tag, so that it can grab priority for your ship... er, hmm, you don't have access to which ship the core is being picked for either, do you? That seems like a problem.
Let me add a FleetMemberAPI parameter to the relevant methods... there, done. Actually, never mind - that has some complications. Sorry!