Posted: Fri Apr 11, 2025 11:14 pm Post subject:
AI builds added unit, but doesn't send it in attack groups =why?
AI is a real enigma field for me, so i tended to not do drastic changes, so not to deal with AI editing. This experiment seemed fine, but didn't work:
- i added a variant of dog to one of sub-factions(with other parameters and unit name)
- made it "exclusive via Ares RequiredHouse=
- edited aimd.ini inserting this new unit's name in all groups where dogs for this side are mentioned
- my presumption was that other sub-factions will build ordinary dog and this one will build new one, since it's listed in already existing AI battle groups
= in result AI does order these new dogs, exclusive for faction just as i wanted, but all of them stay in base - AI doesn't send them in patrol/recon/attack, though unit properly reacts when base is attacked.
Apparently unit needs to be added somewhere else to be used for forward attacks, but i didn't manage to figure it out via reverse-engineering. Tried searching anywhere for dog entries, hoping there is some "basic recon unit"-lists.(like those lists of defences in General section)
Adding your new unit to existing teams means that those teams will only work for that specific house now as they are the only ones that can build that unit.
Dogs are only used by the AI for base defense if you want them to attack then you need to change the script attached to the team type. _________________
Dogs are only used by the AI for base defense if you want them to attack then you need to change the script attached to the team type.
Nah, i'm experimenting not over vanilla but over mod's AI, which already has scripts to send dogs attacking enemy bases, especially at the start of match. That's why i expected new unit to be in those teams for particular sub-faction.
Mig Eater wrote:
Adding your new unit to existing teams means that those teams will only work for that specific house now as they are the only ones that can build that unit.
Didn't notice that initially, but indeed other sub-factions stopped using dogs for attack teams too, since new dog is listed in team and they can't get it.
Damn, that's a real flaw from an engine side. Say in Generals if the unit is non-existing/commented, AI simply skips that, but does everything else.
But hey, smth is wrong here:
- other sub-factions stopped sending dogs cause new dog got added to teams = understood;
- this sub-faction doesn't send new dogs to recon/attacks, presumably cause very same teams contain vanilla dogs, which this sub-faction doesn't have = presumed and understood;
- then if i get vanilla dogs out of teams, at least this one faction should start sending new dogs in recon/attack = right?
- did that, replaced all dogs in teams with new dogs entries = Nope, new dogs get produced but not send. Yet other sub-factions stopped even producing vanilla dogs.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum