XCOM 2
A Better AI
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
Viimeisin muokkaaja on Largahblarga; 25.5.2017 klo 17.26
< >
Näytetään 1-9 / 9 kommentista
DerBK  [kehittäjä] 12.4.2017 klo 15.46 
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.
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  [kehittäjä] 15.4.2017 klo 0.31 
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.
whoops, edited.
Largahblarga lähetti viestin:
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  [kehittäjä] 24.5.2017 klo 10.41 
Oh ♥♥♥♥♥♥♥♥♥♥♥
Okay, what do I have to do differently to get this integrated with the LW2 version of A Better ADVENT?
DerBK lähetti viestin:
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  [kehittäjä] 11.11.2018 klo 9.18 
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.
< >
Näytetään 1-9 / 9 kommentista
Sivua kohden: 1530 50