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 Sat Dec 14, 2024 12:00 am
All times are UTC + 0
Dumb questions needing answers regarding ai editor
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Mon Nov 06, 2023 7:38 pm    Post subject:  Dumb questions needing answers regarding ai editor Reply with quote  Mark this post and the followings unread

Since i am trying to create my own AI for the mod i need some help to understand what is what

Teams section:

What is Priority?
What is max?
Why do you need Tech level?
What is Whiner?

Triggers section:

Difference in primary and support team?
Tech level why repeat it and what is it for?
Minimum weight?
Initial weight?
Maximum weight?

Back to top
View user's profile Send private message
McPwny
Chem Warrior


Joined: 29 Jan 2018

PostPosted: Mon Nov 06, 2023 10:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

priority is used in the recruiting system. if a team is recruitable, and has a lower priority than a recruiter team, then the recruiter team
can snatch the recruitable team's units when forming a team. also used in the suspendpriority setup which isnt really used in ra2

max means the maximum amount of this teamtype that the AI can make at any one time

techlevel was more of a tiberian sun holdover and isnt very relevant to ra2

whiner teams ive not used a lot but they are supposed to alert the base of an attack. not sure if it calls teams
that are under suspendpriority, basedef teams, or if it works at all

i typically only use primary team. maby someone else knows about how and if the secondary team is used

min/initial/max weight are used in the AI weighting system. the higher the weight, the more likely the AI is to make the team. the weight goes
up or down depending on whether or not the team reaches the 'success' action in its script.

_________________
visit my moddb profile for .shp downloads and stuff

Back to top
View user's profile Send private message
McPwny
Chem Warrior


Joined: 29 Jan 2018

PostPosted: Mon Nov 06, 2023 11:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

aircraft are particularly dumb about following scripts and also break if the AI orders them to attack before they are reloaded.
if i recall what they did was make them recruitable and give them a simple attack script, so they just go and attack, automatically
land, and only attack again when then ai re-makes the team, recruiting the existing planes. its kind of precarious, but the delay
between recruitment is usually longer than the reload time, so the aircraft only rarely break that way.

_________________
visit my moddb profile for .shp downloads and stuff

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Tue Nov 07, 2023 2:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Use the latest AI Editor - https://ppmforums.com/post-616786/ai-editor-for-ra2-and-ts/#616786

Keep backups of your AIMD.ini.

There is info at ModEnc, can search there:
https://modenc.renegadeprojects.com/

Also the editor comes with a help file.

Primary team is needed. Support team is optional. If support team is given, game will create both teams and then execute their scripts.

Tech level in teamtype is used in single player missions, not important in AI ini. Tech level in AITrigger is re-computed, so just give a minimum tech level value that is expected for its teams.

Keep Initial weight between min and max. Initial weight is adjusted as current weight for the trigger based on failure/success of its teams. Which trigger will get fired depends on the relative current weights of all triggers. Higher means more chance. Value 5000 is considered as special, it clears the queue of other triggers and puts this trigger on top to be fired.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 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.6358s ][ Queries: 11 (0.0950s) ][ Debug on ]