XCOM 2
A Better AI
Largahblarga 12. apr. 2017 kl. 15:02
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
Sidst redigeret af Largahblarga; 25. maj 2017 kl. 17:26
< >
Viser 1-9 af 9 kommentarer
DerBK  [udvikler] 12. apr. 2017 kl. 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.
Dragon32 14. apr. 2017 kl. 15:25 
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  [udvikler] 15. apr. 2017 kl. 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.
Largahblarga 23. maj 2017 kl. 19:04 
whoops, edited.
Dragon32 24. maj 2017 kl. 10:31 
Oprindeligt skrevet af 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  [udvikler] 24. maj 2017 kl. 10:41 
Oh ♥♥♥♥♥♥♥♥♥♥♥
Roguesaber 22. mar. 2018 kl. 13:46 
Okay, what do I have to do differently to get this integrated with the LW2 version of A Better ADVENT?
ImLinkn 11. nov. 2018 kl. 8:39 
Oprindeligt skrevet af 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  [udvikler] 11. nov. 2018 kl. 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.
< >
Viser 1-9 af 9 kommentarer
Per side: 1530 50