Posted: Sun Nov 24, 2013 1:11 am Post subject:
Bug with AI building defenses
Guys, does anyone know why is this happening?
Fourth side AI is constantly building this defense covering whole map! Even in my base!
I tested this, it happens on medium and Hard, though in easy AI he just builds few of them, but never another defense.
[TIBTRE]
UIName=NOSTR:Repulsor
Name=Repulsor
BuildCat=Combat
Strength=400
Armor=steel
Prerequisite=RBRCK,RCNST
TechLevel=1
Adjacent=4
ROT=10
Sight=7
DetectDisguise=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry,Aliens
AIBasePlanningSide=3 ;gs 0 for Good, 1 for Evil
Cost=300
BaseNormal=no
Points=30
Power=0
Crewed=no
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnim=Dbris1sm,Dbris1lg,Dbris4sm,Dbris5sm,Dbris4lg,Dbris7sm,Dbris8sm,Dbris5lg,Dbris4lg
MaxDebris=15
MinDebris=5
Primary=Repulse
ThreatPosed=30 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,LGSparkSys
IsBaseDefense=yes
HasStupidGuardMode=false
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
AntiInfantryValue=25
AntiArmorValue=10
AntiAirValue=0
;gs these three are in abstract units and just help the AI pick the right base defense. (see AIForcePredictionFudge)
HasRadialIndicator=true _________________
Joined: 05 Sep 2013 Location: LocationNotFoundException at RealLife.Location.find() at line: -1
Posted: Sun Nov 24, 2013 9:10 am Post subject:
Most probably something under the [AI] section.
I would try with tags there like:
DefenseRatio= ;This might be pillboxes, sentry guns but not sure. Either that or all defences in total
DefenseLimit=
AARatio=
AALimit=
TeslaRatio=
TeslaLimit=
I suppose the "tesla" in this case equals to all prism, tesla and psychic tower.
Just my suggestions, you probably know better than me because your a much better modder than I am. QUICK_EDIT
AgentZ, those keys are redundant crap from RA1 and have no effect whatsoever what I've observed while they do remain in the exe.
I would make the defense in question drain power and start from there to try sort out the issue, plus the higher values for Anti*Value= the less AI makes them ironicly and the lower they are, more of them...
Plus issue may also be that other defenses are not yet added for them so AI goes crazy making only those. QUICK_EDIT
AgentZ, Apollo, thank you guys! Your posts are much appreciated!
Agent Z wrote:
Just my suggestions, you probably know better than me because your a much better modder than I am.
Well, better of not,at least you posted your suggestions, you tried to help. There are also others who are better, but I do not see them in this thread. At least if it was thread in crap forum (which Banshee moved), they would fill it quickly with rapid posts. Thats what is wrong here with community.
Apollo, well, this is basic defense, it is equal to pillbox and sentry.
I have also others already asigned
[RTESLA]
UIName=Name:TESLA
Name=Soviet Tesla Coil
Image=RION
BuildCat=Combat
Prerequisite=RPOWR,RRADR,RCNST
Strength=600
Armor=steel
TechLevel=5
Adjacent=4
Sight=8
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry,Aliens
AIBasePlanningSide=3 ;gs 0 for Good, 1 for Evil
Cost=1000
Points=30
Power=-75
Crewed=no
Capturable=false
;Overpowerable=true
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
;DestroyAnim=NATSLADM
Primary=TowerBolt
;Secondary=OPTowerBolt
Turret=no
TurretAnimZAdjust=-100
DebrisAnim=Dbris1sm,Dbris1lg,Dbris4sm,Dbris5sm,Dbris4lg,Dbris7sm,Dbris8sm,Dbris5lg,Dbris4lg
MaxDebris=15
MinDebris=5
ThreatPosed=40 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=96, 64, 112
IsBaseDefense=yes
BaseNormal=no
Powered=yes
HasStupidGuardMode=false
WorkingSound=PowerOn
NotWorkingSound=PowerOff
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
;Drainable=yes
AntiInfantryValue=25
AntiArmorValue=25
AntiAirValue=0
;gs these three are in abstract units and just help the AI pick the right base defense. (see AIForcePredictionFudge)
HasRadialIndicator=true
[RSONIC]
Image=RSONIC
UIName=NOSTR:Aero Rifter
Name=Aero Rifter
BuildCat=Combat
Strength=900
Armor=steel
TechLevel=4
Prerequisite=RBRCK,RCNST
Adjacent=4
Sight=10
ROT=8
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry,Aliance,Aliens
AIBasePlanningSide=3 ;gs 0 for Good, 1 for Evil
Cost=700
BaseNormal=no
Points=30
Power=-50
Crewed=no
Primary=PlasmaDiscLauncher ;AARifter
LandTargeting=1
NavalTargeting=6
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=3
MinDebris=2
ThreatPosed=0 ; This value should be 0 for objects that are purely anti-air, since aircraft do not use the threat values
;DamageParticleSystems=SparkSys,LGSparkSys
IsBaseDefense=yes
Powered=yes
Turret=yes
TurretAnim=RSONICT
TurretAnimIsVoxel=false
;TurretAnimX=-2
;TurretAnimY=10
TurretAnimZAdjust=-20
HasStupidGuardMode=false
WorkingSound=PowerOn
NotWorkingSound=PowerOff
VHPScan=Strong
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
Drainable=yes
AntiInfantryValue=0
AntiArmorValue=0
AntiAirValue=25
;gs these three are in abstract units and just help the AI pick the right base defense. (see AIForcePredictionFudge)
HasRadialIndicator=true
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
I did not see where problem is really and why is AI not obeying BaseNormal=no on this building, it covers whole map with it. _________________
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Sun Nov 24, 2013 3:24 pm Post subject:
Can I haz 2 dayz off to go to a friend's birtda? No? Thx.
Now back to topic.
Apollo, from my own tests, DefenseRatio worked, and it summed up all the buildings from the AI.BaseDefenses list.
MasterHaosis, dump the AI base plans during MCV deploy and check that first. It can be pretty much that something similar to the 0x0-foundation-bug occured. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Sun Nov 24, 2013 3:34 pm Post subject:
Sounds a lot like the TS Component Tower bug; if the GDI AI didn't had a proper Component Tower, but other defences with the IsBaseDefence tag, the AI would go nuts and build unupgraded Component Towers trough the map. QUICK_EDIT
Sounds a lot like the TS Component Tower bug; if the GDI AI didn't had a proper Component Tower, but other defences with the IsBaseDefence tag, the AI would go nuts and build unupgraded Component Towers trough the map.
That was hilarious the first time that happened. A lot less so afterwards. >_> _________________ KGR | AT
AZUR
Discord: theastronomer1836
Steam QUICK_EDIT
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Sun Nov 24, 2013 5:44 pm Post subject:
FurryQueen wrote:
Dutchygamer wrote:
Sounds a lot like the TS Component Tower bug; if the GDI AI didn't had a proper Component Tower, but other defences with the IsBaseDefence tag, the AI would go nuts and build unupgraded Component Towers trough the map.
That was hilarious the first time that happened. A lot less so afterwards. >_>
interesting shape for tib, like it _________________ I am authorized to send out the TMP Studio, PM ME IF YOU WANT IT And check this out, these were sent to me for help with terrain and zdata help along with TMP Studio/Builder
MasterHaosis, dump the AI base plans during MCV deploy and check that first. It can be pretty much that something similar to the 0x0-foundation-bug occured.
I do not have building in artmd with 0x0.
Which AI plans do you want me to check? Aimd ?
Dutchygamer wrote:
Sounds a lot like the TS Component Tower bug; if the GDI AI didn't had a proper Component Tower, but other defences with the IsBaseDefence tag, the AI would go nuts and build unupgraded Component Towers trough the map.
But I have only those three buildings which I shown codes. I do not see anything wrong with them. _________________
Specials mean defense buildings on the list... example lists are among the following comments btw. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
But what exactly and how should I check it?
AlexB said also regarding this problem that he has not idea why is it happening.
he said me once that it has been reported that AI could spam bunkers.
Can you check aimd.ini ? I am not ai coder, I just created few basic AIs for MCV and defensive teams and thats it.
Maybe I fucked up something. Aliens are 4 country here, so everything which I added, it is at bottom of file so you should not lost there.
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Thu Nov 28, 2013 12:40 am Post subject:
dafuq.
When I tell you to dump your goddamned AI build plan, then go and dump your goddamned AI build plan, not giving me totally useless aimd.inis which has nothing to do with buildings and even you should know that.
So go to your goddamned Keyboard options, search out the Dump AI Base Plan within Development, assign a key for it and use that key during MCV deploy. Then wait 'til this issue comes up and use it again. Then show your debug.log.
And then one wonders why I go mad. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
When I tell you to dump your goddamned AI build plan, then go and dump your goddamned AI build plan, not giving me totally useless aimd.inis which has nothing to do with buildings and even you should know that.
Well, I put AI.BaseDefenseCounts=1,1,1 to disable them, and Ai created only one defense. But when I attacked AI, he already had second MCV which deployed into construction yard (usually it just waits there until first yard got destroyed, then it replaces lost one, but this time it just deployed) and started massivelly construction of those defenses. So first I assumed that I ztype up something.
Graion Dilach wrote:
So go to your goddamned Keyboard options, search out the Dump AI Base Plan within Development, assign a key for it and use that key during MCV deploy. Then wait 'til this issue comes up and use it again. Then show your debug.log.
I never ever did that before because I did not have need for it, so excuse me for not understanding yet something which I never used.
Yeah, here it is debug.log but in textual file because extension log is now allowed.
I will not send PM to Banshee to allow it
EDIT:
Debug is When I played as Soviet
debug2 is when I played as Aliens.
When played as Soviet, he behave normally, when I played as Aliens, then he started spamming those defenses.
Added debug3 in previous post when I played for third time as Cyborg faction now, and it behaves nice.
1. I played As Soviet. He is not spamming defenses, later he builds ION Tower.
2. I played as Aliens (fourth side). He is spamming defenses, just creating one type of them.
3. I played as Cyborgs (fifth side). he is not spamming defenses, he even build ION Tower (that black tesla) and even that Anti Air base defense (selected).
So, I assume AI has problems only when we play Aliens vs Aliens, for unknown reason for me. _________________
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Thu Nov 28, 2013 8:35 am Post subject:
Is TIBTRE listed in the [AI]->BuildDummy list?
The issue is caused by the fact that the AI doesn't realize TIBTRE is a defense building, so it counts the defenses as part of the base after placed. Then DefenseRatio comes in to fix the balance between defenses and usual buildings.
The BuildDummy list is AFAIK used for this purpose, since the defenses pop up as dummy buildings in the base planning, which gets replaced first with Dummy then with a better defense if suitable. Which doesn't happen in your base planning, the special entries stay... so I really think BuildDummy is your problem. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Thu Nov 28, 2013 5:20 pm Post subject:
Hmmm... I think I'd check your rulesmd and artmd then too. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
Believe me, you do not wish to see my rulesmd file, its a mess. Maybe even bigger than yours
Because mod is far from finished, therefore all units and buildings chose are in testing stage, some will be replaced, edited etc etc... So currently I have lot of them, before epic cleanage come!
I also gave to Cyborg faction defenses, I cloned pillbox, patriot and prism. he also started to spam pillboxes. I am confused.
I just removed tib tree for some defense, I will check out later, tonight and send you files in PM. _________________
When I tell you to dump your goddamned AI build plan, then go and dump your goddamned AI build plan, not giving me totally useless aimd.inis which has nothing to do with buildings and even you should know that.
So go to your goddamned Keyboard options, search out the Dump AI Base Plan within Development, assign a key for it and use that key during MCV deploy. Then wait 'til this issue comes up and use it again. Then show your debug.log.
And then one wonders why I go mad.
I would like to point out that this is the man who has been berating me for my behavior in this very subcommunity for years.
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