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 Wed Sep 11, 2024 2:38 am
All times are UTC + 0
Aimd Bug
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
weak
Civilian


Joined: 24 Jun 2024

PostPosted: Tue Jun 25, 2024 8:56 am    Post subject:  Aimd Bug
Subject description: Ai not working as intented
Reply with quote  Mark this post and the followings unread

I decided to make a new aimd.ini file,  but the different factions don't act as intended. The Allied  and Yuri don't attack, and just makes defensive teams, Soviet just attacks, they don't make defense, and just spams miners. Also, when they make taskforces , they sometimes just goes standby at their base and not attack. I don't know what happened, but it happened when I made the ground attackers

these are the team and aitrigger for the ground attack


    [01000085-G]
    Name=deso
    0=6,APOC
    1=5,DESOB
    2=7,DESO
    Group=-1

    [01000086-G]
    Name=terrorist
    0=5,TERROR
    1=1,HTK
    Group=-1

    [01000087-G]
    Name=ivan
    0=5,IVAN
    1=1,HTK
    Group=-1

    [01000088-G]
    Name=tank destroy
    0=8,TNKD
    1=6,MTNK
    Group=-1

    [01000089-G]
    Name=teslatank
    0=7,TTNK
    1=6,HTNK
    2=4,HTK
    Group=-1

    [0100008C-G]
    Name=teslatrooperconscript
    0=5,SHK
    1=10,E2
    2=5,FLAKT
    Group=-1

    [0100008D-G]
    Name=GIGGI,rock
    0=8,E1
    1=6,GGI
    2=6,JUMPJET
    Group=-1

    [0100008E-G]
    Name=grizzlyprismmirage
    0=7,MTNK
    1=5,SREF
    2=5,MGTK
    Group=-1

    [010000A8-G]
    Name=MBTSoviet
    0=6,HTNK
    1=4,HTK
    Group=-1





    [01000092-G]
    Name=Libyan Demolition Truck Early curtain
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=yes
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100009F-G
    TaskForce=01000084-G

    [01000093-G]
    Name=Flak Track Ivan Attacker
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=2
    TechLevel=3
    Group=-1
    OnTransOnly=yes
    AvoidThreats=yes
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=01000091-G
    TaskForce=01000087-G

    [01000094-G]
    Name=Ground Attack Early by Yuri
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=01000090-G
    TaskForce=0100008B-G

    [01000095-G]
    Name=Ground Attack Early by Yuri(initiate)
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100008F-G
    TaskForce=0100008A-G

    [01000096-G]
    Name=Ground Attack Early Soviet ( Conscript )
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100008F-G
    TaskForce=0100008C-G

    [01000097-G]
    Name=Ground Attack Early Allied ( GI )
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100008F-G
    TaskForce=0100008D-G

    [01000098-G]
    Name=Ground Attack Early Allied Tanks
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100006A-G
    TaskForce=0100008E-G

    [01000099-G]
    Name=Ground Attack Early Russia ( Tanks )
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100006A-G
    TaskForce=01000089-G

    [0100009B-G]
    Name=Flak Track Terrorist Attacker
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=2
    TechLevel=3
    Group=-1
    OnTransOnly=yes
    AvoidThreats=yes
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=01000091-G
    TaskForce=01000086-G

    [0100009C-G]
    Name=Ground Attack Early Allied ( Germany )
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100006A-G
    TaskForce=01000088-G

    [0100009D-G]
    Name=Ground Attack Early by Iraq
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100006A-G
    TaskForce=01000085-G

    [010000A9-G]
    Name=SovietMBT
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=no
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=no
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=no
    OnlyTargetHouseEnemy=yes
    Script=0100006A-G
    TaskForce=010000A8-G



    0100009E-G=German Attack Allied,0100009C-G,<all>,0,1,BLD013,0100000003000000000000000000000000000000000000000000000000000000,50.000000,50.000000,50.000000,1,0,1,0,01000097-G,0,0,1
    010000A2-G=Allied Attack Allied,01000098-G,<all>,0,1,BLD013,0100000003000000000000000000000000000000000000000000000000000000,500.000000,500.000000,500.000000,1,0,1,0,01000097-G,0,0,1
    010000A4-G=Soviet Attack Soviet Demolition Truck,01000092-G,<all>,3,1,NAIRON,0100000003000000000000000000000000000000000000000000000000000000,500.000000,500.000000,500.000000,1,0,2,0,010000A9-G,0,0,1
    010000AD-G=Russia Attack Allied,01000099-G,<all>,3,1,BLD015,0100000003000000000000000000000000000000000000000000000000000000,50.000000,50.000000,50.000000,1,0,2,0,01000096-G,0,0,1
    010000AE-G=Russia Attack Soviet Tanks,01000099-G,<all>,3,0,NATECH,0100000003000000000000000000000000000000000000000000000000000000,50.000000,50.000000,50.000000,1,0,2,0,01000096-G,0,0,1
    010000AF-G=Russia Attack Yuri Tanks,01000099-G,<all>,3,0,YATECH,0100000003000000000000000000000000000000000000000000000000000000,50.000000,50.000000,50.000000,1,0,2,0,01000096-G,0,0,1
    010000B1-G=Iraq Attack Allied Tanks,0100009D-G,<all>,3,1,BLD015,0100000003000000000000000000000000000000000000000000000000000000,50.000000,50.000000,50.000000,1,0,2,0,01000096-G,0,0,1
    010000B5-G=Cuba Attack Allied,0100009B-G,<all>,3,1,BLD015,0100000003000000000000000000000000000000000000000000000000000000,50.000000,50.000000,50.000000,1,0,2,0,0100009B-G,0,0,1
    010000B6-G=Ivan Attack Allied,01000093-G,<all>,3,1,BLD015,0100000003000000000000000000000000000000000000000000000000000000,50.000000,50.000000,50.000000,1,0,2,0,01000093-G,0,0,1



These are the guards


    [01000000-G]
    Name=GuardSoviet
    0=18,HTK
    1=10,APOC
    2=10,HYD
    3=20,FLAKT
    4=3,SMCV
    5=10,HTNK
    Group=-1

    [01000001-G]
    Name=GuardAllied
    0=20,SREF
    1=30,JUMPJET
    2=3,AMCV
    3=15,FV
    Group=-1


    [01000004-G]
    Name=AGuard
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=yes
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=yes
    Aggressive=yes
    Suicide=no
    Priority=1
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=yes
    IsBaseDefense=yes
    OnlyTargetHouseEnemy=no
    Script=01000003-G
    TaskForce=01000001-G

    [01000007-G]
    Name=SGuard
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=yes
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=yes
    Aggressive=yes
    Suicide=no
    Priority=5
    Max=1
    TechLevel=0
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=yes
    IsBaseDefense=yes
    OnlyTargetHouseEnemy=no
    Script=01000003-G
    TaskForce=01000000-G

    [0100000C-G]
    Name=YGuard
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=yes
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=yes
    Aggressive=yes
    Suicide=no
    Priority=1
    Max=3
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=yes
    IsBaseDefense=yes
    OnlyTargetHouseEnemy=no
    Script=01000003-G
    TaskForce=01000002-G


    0100000F-G=AlliedGuard,01000004-G,<all>,3,1,CMIN,0500000003000000000000000000000000000000000000000000000000000000,100.000000,100.000000,100.000000,1,0,1,0,0100007A-G,0,0,1
    01000011-G=SovietGuard,01000007-G,<all>,0,1,HARV,0400000003000000000000000000000000000000000000000000000000000000,5000.000000,5000.000000,6000.000000,1,0,2,1,<none>,0,0,1
    01000012-G=YuriGuard,0100000C-G,<all>,0,1,YAREFN,0400000003000000000000000000000000000000000000000000000000000000,100.000000,100.000000,100.000000,1,0,3,1,0100007B-G,0,0,1




these are miners for allied and soviet



    [0A86ACAC-G]
    Name=MinerAllied
    0=3,CMIN
    Group=-1

    [0CE4DCDC-G]
    Name=HARV
    0=5,HARV
    Group=-1


    [0617EEFC-G]
    Name=CMIN
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=yes
    Prebuild=no
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=yes
    Aggressive=no
    Suicide=no
    Priority=10
    Max=1
    TechLevel=3
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=yes
    OnlyTargetHouseEnemy=no
    Script=0612EDBC-G
    TaskForce=0A86ACAC-G

    [06BB88BC-G]
    Name=HARV
    VeteranLevel=1
    MindControlDecision=0
    Loadable=no
    Full=no
    Annoyance=no
    GuardSlower=no
    House=<none>
    Recruiter=no
    Autocreate=yes
    Prebuild=yes
    Reinforce=no
    Droppod=no
    UseTransportOrigin=no
    Whiner=no
    LooseRecruit=yes
    Aggressive=no
    Suicide=no
    Priority=10
    Max=1
    TechLevel=0
    Group=-1
    OnTransOnly=no
    AvoidThreats=no
    IonImmune=no
    TransportsReturnOnUnload=no
    AreTeamMembersRecruitable=no
    IsBaseDefense=yes
    OnlyTargetHouseEnemy=no
    Script=0612EDBC-G
    TaskForce=0CE4DCDC-G

    0CAD0C7C-G=Miner,06BB88BC-G,<all>,0,1,NAWEAP,0100000003000000000000000000000000000000000000000000000000000000,500.000000,500.000000,500.000000,1,0,2,0,<none>,1,1,1
    0CAD0B2C-G=MinerA,0617EEFC-G,<all>,0,1,GAWEAP,0100000003000000000000000000000000000000000000000000000000000000,500.000000,500.000000,500.000000,1,0,1,0,01000004-G,0,0,1




I also attached rules and aimd files



Yuri's Revenge 25_06_2024 4_21_12 pm.png
 Description:
allied base
 Filesize:  967.57 KB
 Viewed:  313 Time(s)

Yuri's Revenge 25_06_2024 4_21_12 pm.png



Yuri's Revenge 25_06_2024 4_21_21 pm.png
 Description:
yuri base
 Filesize:  1.04 MB
 Viewed:  313 Time(s)

Yuri's Revenge 25_06_2024 4_21_21 pm.png



Yuri's Revenge 25_06_2024 4_21_45 pm.png
 Description:
Soviet base , image shows war miner spam, and attack taskforce stuck at base,
 Filesize:  1.07 MB
 Viewed:  313 Time(s)

Yuri's Revenge 25_06_2024 4_21_45 pm.png



RulesMD.ini
 Description:
rulesmd file

Download
 Filename:  RulesMD.ini
 Filesize:  765.01 KB
 Downloaded:  1 Time(s)


aimd.ini
 Description:
aimd file

Download
 Filename:  aimd.ini
 Filesize:  72.36 KB
 Downloaded:  2 Time(s)


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


Joined: 29 Jan 2018

PostPosted: Tue Jun 25, 2024 10:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

so miners are actually handled independently from the AI system (see the related keys in rules.ini to adjust them) and setting miners as teams
in the AI triggers will, as you can see, confuse the AI and cause it to keep spamming miners.

I see also that the miners are set as base defense teams, and that the other base defense teams look like this
Code:
[01000001-G]
Name=GuardAllied
0=20,SREF
1=30,JUMPJET
2=3,AMCV
3=15,FV
Group=-1


so like base defense teams are teams that have a few functions; one function is that the AI builds them before it 'makes an enemy' and starts producing attack
teams. another function is that the AI will always have a minimum number of defense teams (again see rules for the relevant tags) before it builds any attack
teams, meaning the AI wont function at all if it cant build enough of these teams. another (optional) function is to have them act like a pool team by setting priority
to 1 and recruitable= to yes

so whats wrong with that team there? first of all its too big; that many units in a single team will make the units unable to 'group up' since they cant get in grouping
distance and therefore cant follow any scripts or do anything really. second of all, its too advanced; these are teams that the AI should start belting out as soon as
it builds its basic factories and have ready before its tech tree is developed. if you want advanced units in the pool teams, then make separate pool teams with the
battle lab or something as the prerequisite. third of all it has MCVs in it; if you want mcv's you should make a separate team for it because they arent going to know
how to deploy when part of a bigger team. in fact, the factory clone bug applies to buildingtypes also, so get ready to see some memes if they ever do deploy.

_________________
visit my moddb profile for .shp downloads and stuff

Back to top
View user's profile Send private message
weak
Civilian


Joined: 24 Jun 2024

PostPosted: Wed Jun 26, 2024 2:19 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for the answer, but I have some questions

How do I fix the miner issue?

Also, in the stuck taskforce, do I make them smaller or is there another way to make them not stuck?

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


Joined: 29 Jan 2018

PostPosted: Wed Jun 26, 2024 4:51 am    Post subject: Reply with quote  Mark this post and the followings unread

as the handling for miners is coded elsewhere, just remove any miner related teams from AI.ini entirely

the best way to fix the stuck taskforces is just to make them an appropriate size. you can also adjust the
maximum 'grouping' radii in rules.ini to facilitate bigger taskforces but large taskforces have various downsides
you are better going with smaller teams. you can adjust the team creation rate instead (via teamdelays in rules)
if you want the AI to build more teams faster.

_________________
visit my moddb profile for .shp downloads and stuff

Back to top
View user's profile Send private message
weak
Civilian


Joined: 24 Jun 2024

PostPosted: Wed Jun 26, 2024 9:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Thank you! It's working properly now

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.1838s ][ Queries: 16 (0.0121s) ][ Debug on ]