XCOM 2
A Better AI
Largahblarga 12 kwietnia 2017 o 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
Ostatnio edytowany przez: Largahblarga; 25 maja 2017 o 17:26
< >
Wyświetlanie 1-9 z 9 komentarzy
DerBK  [producent] 12 kwietnia 2017 o 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 kwietnia 2017 o 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  [producent] 15 kwietnia 2017 o 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 maja 2017 o 19:04 
whoops, edited.
Dragon32 24 maja 2017 o 10:31 
Początkowo opublikowane przez 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  [producent] 24 maja 2017 o 10:41 
Oh ♥♥♥♥♥♥♥♥♥♥♥
Roguesaber 22 marca 2018 o 13:46 
Okay, what do I have to do differently to get this integrated with the LW2 version of A Better ADVENT?
ImLinkn 11 listopada 2018 o 8:39 
Początkowo opublikowane przez 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  [producent] 11 listopada 2018 o 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.
< >
Wyświetlanie 1-9 z 9 komentarzy
Na stronę: 1530 50