XCOM 2
A Better AI
Largahblarga 12 Apr, 2017 @ 3:02pm
ADVENT Captain - Call Reinforcements integration
Here's a quick and dirty edit to get the reinforcement ability working again without losing the improvements made by A Better AI. You will need to have both mods installed. No guarantees this doesn't break anything.

STEP 1:

in "C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\671648634\Config\XComAI.ini", search for the following lines

+Behaviors=(BehaviorName=AdvCaptain_ABA_RedFirstActionSelector,
and
+Behaviors=(BehaviorName=AdvCaptain_ABA_RedLastActionSelector,

and replace both entire lines with
+Behaviors=(BehaviorName=AdvCaptain_ABA_RedFirstActionSelector, NodeType=Selector, Child[0]=DoIfFlankedMove, Child[1]=AdvCaptainTryMoveThenGrenade, Child[2]=TryMarkTargetOption_ABA, Child[3]=TryCallReinforcements, Child[4]=MoveAdvanceToCover, Child[5]=TryShootOrReloadOrOverwatch_Adv, Child[6]=HuntEnemyWithCover)
and
+Behaviors=(BehaviorName=AdvCaptain_ABA_RedLastActionSelector, NodeType=Selector, Child[0]=AdvCaptainTryGrenade, Child[1]=TryMarkTargetOption_ABA, Child[2]=TryCallReinforcements, Child[3]=ConsiderSuppression, Child[4]=TryShootOrReloadOrOverwatch_Adv, Child[5]=HuntEnemyWithCover, Child[6]=MoveDefensive)

Feel free to move TryCallReinforcements up or down in priority (0 being highest priority), I just roughly matched the priority given in the original mod.

STEP 2:

In "C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\626617018\Config\XComAI.ini", comment out the "-Behaviors" lines and the first two "+Behaviors" lines using ";". e.g. change
+Behaviors=(BehaviorName=AdvCaptain_RedFirstActionSelector,
to
;+Behaviors=(BehaviorName=AdvCaptain_RedFirstActionSelector,

DO NOT alter anything below
; ---------------- TryCallReinforcements behaviour --------------------------------------------
or you will probably break the ability.

EDIT: ok typos fixed for real now
Last edited by Largahblarga; 25 May, 2017 @ 5:26pm
< >
Showing 1-9 of 9 comments
DerBK  [developer] 12 Apr, 2017 @ 3:46pm 
I could've sworn i did add the CallReinforcements ability to ABAI months ago. Must've gotten lost in an update down the line -.-

If i get around to making an update to ABAI some time, i will consider adding it back in.
Dragon32 14 Apr, 2017 @ 3:25pm 
Thanks a million for this, Largahblarga. Really excited to get DerBK's latest and greatest AI and the ADVENT Captains callling in reinforcements. Editing my INIs as I type...

I notice that in both the new A Better AI lines there're two Child values with an index of 5. Should the indices all be unique numbers? So the last actions should have an index of [6]?
DerBK  [developer] 15 Apr, 2017 @ 12:31am 
Yes, they should be unique. Good catch, the lines won't work as Larg posted them. Change the last index to 6 and it should.
Largahblarga 23 May, 2017 @ 7:04pm 
whoops, edited.
Dragon32 24 May, 2017 @ 10:31am 
Originally posted by Largahblarga:
whoops, edited.
Maybe it's because I'm looking at this in the Steam client but AdvCaptain_ABA_RedFirstActionSelector still has two Child[5] entries
DerBK  [developer] 24 May, 2017 @ 10:41am 
Oh ♥♥♥♥♥♥♥♥♥♥♥
Roguesaber 22 Mar, 2018 @ 1:46pm 
Okay, what do I have to do differently to get this integrated with the LW2 version of A Better ADVENT?
ImLinkn 11 Nov, 2018 @ 8:39am 
Originally posted by DerBK:
I could've sworn i did add the CallReinforcements ability to ABAI months ago. Must've gotten lost in an update down the line -.-

If i get around to making an update to ABAI some time, i will consider adding it back in.

DerBK, I apologize if you have already addressed this integration in your changelog; has the Call Reinforcements mod been integrated into this mod? If so, do I still need the Call Reinforcements mod?
DerBK  [developer] 11 Nov, 2018 @ 9:18am 
To be perfectly honest, it has been so long that i heard anything about the Call Reinforcement mod that i can't answer 100%.

I do have some lines about that in the mod, but i have no idea if it works still. If it does, you do need the original mod.
< >
Showing 1-9 of 9 comments
Per page: 1530 50