Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 18, 2025 8:32 am
All times are UTC + 0
AI builds added unit, but doesn't send it in attack groups =why?
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
rey
Disk Thrower


Joined: 15 Jul 2019

PostPosted: Fri Apr 11, 2025 11:14 pm    Post subject:  AI builds added unit, but doesn't send it in attack groups =why? Reply with quote  Mark this post and the followings unread

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)

Any hints please.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat Apr 12, 2025 8:19 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
rey
Disk Thrower


Joined: 15 Jul 2019

PostPosted: Sat Apr 12, 2025 12:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
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.

Smth is definitely missing...

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1716s ][ Queries: 11 (0.0088s) ][ Debug on ]