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 Mar 29, 2024 12:25 pm
All times are UTC + 0
Making AI Oftenly Used
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
deathreaperz
Commander


Joined: 20 May 2013
Location: Indonesia

PostPosted: Fri Nov 10, 2017 3:15 am    Post subject:  Making AI Oftenly Used Reply with quote  Mark this post and the followings unread

Hello, guys.

I am currently reworking "Megawealth" gamemode by improving it's AI (thanks  to CnCNet Client that made this possible).
But the AI is seldom to appear (especially when AI Boosters are toggled on).

Here is the code that I use for Megawealth:

Code:
[0CE0D5FC-G]
Name=Capture Tech OilDerrick
0=47,131207
1=0,11
2=49,0

[NWTTAL35-G]
Autocreate=yes
Whiner=yes
LooseRecruit=no
Priority=30
IsBaseDefense=yes
AreTeamMembersRecruitable=no

[NWTTSV35-G]
Autocreate=yes
Whiner=yes
LooseRecruit=no
Priority=30
IsBaseDefense=yes
AreTeamMembersRecruitable=no

[NWTTYR35-G]
Autocreate=yes
Whiner=yes
LooseRecruit=no
Priority=30
IsBaseDefense=yes
AreTeamMembersRecruitable=no

[AITriggerTypes]
NWAIAL35-G=AEngineer Capture Tech OilDerrick - All,NWTTAL35-G,<all>,2,7,CAOILD,0100000003000000000000000000000000000000000000000000000000000000,1000.000000,1000.000000,1000.000000,1,0,1,1,NWTTAL35-G,1,1,1
NWAIAL46-G=AEngineer Capture Enemy Tech OilDerrick - All,NWTTAL35-G,<all>,2,0,CAOILD,0100000003000000000000000000000000000000000000000000000000000000,1000.000000,1000.000000,1000.000000,1,0,1,1,NWTTAL35-G,1,1,1
NWAISV35-G=SEngineer Capture Tech OilDerrick - All,NWTTSV35-G,<all>,2,7,CAOILD,0100000003000000000000000000000000000000000000000000000000000000,1000.000000,1000.000000,1000.000000,1,0,2,1,NWTTSV35-G,1,1,1
NWAISV46-G=SEngineer Capture Enemy Tech OilDerrick - All,NWTTSV35-G,<all>,2,0,CAOILD,0100000003000000000000000000000000000000000000000000000000000000,1000.000000,1000.000000,1000.000000,1,0,2,1,NWTTSV35-G,1,1,1
NWAIYR35-G=YEngineer Capture Tech OilDerrick - All,NWTTYR35-G,<all>,2,7,CAOILD,0100000003000000000000000000000000000000000000000000000000000000,1000.000000,1000.000000,1000.000000,1,0,3,1,NWTTYR35-G,1,1,1
NWAIYR46-G=YEngineer Capture Enemy Tech OilDerrick - All,NWTTYR35-G,<all>,2,0,CAOILD,0100000003000000000000000000000000000000000000000000000000000000,1000.000000,1000.000000,1000.000000,1,0,3,1,NWTTYR35-G,1,1,1

Any clues on how to fix this problem?

_________________
Quote:
Humans were born for two things: to pray and be productive.


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


Joined: 28 May 2013

PostPosted: Fri Nov 10, 2017 6:39 am    Post subject: Reply with quote  Mark this post and the followings unread

If inserting into maps, give [AITriggerTypesEnable] entries.

Back to top
View user's profile Send private message
deathreaperz
Commander


Joined: 20 May 2013
Location: Indonesia

PostPosted: Fri Nov 10, 2017 3:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

I did and the result is same. Is this all about weighting and ThreatPosed?

_________________
Quote:
Humans were born for two things: to pray and be productive.


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


Joined: 28 May 2013

PostPosted: Fri Nov 10, 2017 4:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

Checked the CnCnet client. In Brutal AI INI, the max defensive teams
is set to 0, to favour attack teams. And you have made these as
IsBaseDefense=yes, so it exceeds the limit. So, either raise the max
def limit or make these as IsBaseDefense=no.

Your weights are well above average and threat posed is not related.

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Nov 10, 2017 6:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

E1 for something critical on a MW map like capturing derricks, a high weight is necessary, the mistake he's making in that regard is the quantity of the condition.

You should have multiple triggers with increasing weights for 1 thru 4 derricks if you're serious about MW. So for example if the enemy has 4 derricks you should have 1000, but if they have 1 derrick then 100 is more reasonable. So your cumulative weight to capture will increase the enemy 4 derrick attack by the weights of all applicable triggers, 1000+500+250+100 if that's how you set them.

You can also do the inverse, have triggers that capture more derricks the less the AI owns, but there's no answer which way is best, some of everything is more adaptable.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

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