Jump to content

how to write/debug AI routines?


davidlallen

Recommended Posts

Awesome! I just had my first full four on four mirror fight (my 4 soldiers against an enemy ranger, specialist, sharpshooter and grenadier). All four used their signature abilities, and kicked the a** of my poor rookies. Now if only I can get mission objectives to work, I can publish the thing.

 

https://www.reddit.com/r/xcom2mods/comments/4d0lot/missing_a_step_in_creation_of_new_mission/

Link to comment
Share on other sites

  • Replies 43
  • Created
  • Last Reply

Top Posters In This Topic

Honestly, I don't see any reason why we couldn't coloborate, except for one thing. We make aliens playable (not necessarily advent) and they did a wicked good job of improving the AI all around for enemies. This modding community is amazing, and I don't see anyone holding back code from anyone else, as long as credit and permission is given, I personally wouldn't have a problem with it. But since I'm only a partial organizer and minor coder on Playable Advent, any sort of serious team effort would have to be ok'd from @derBK and David Allen.

Link to comment
Share on other sites

A Better Advent:

 

 

OH MY GOD I LOVE YOU SO MUCH

 

 

 

 

 

As for the collaboration, i am not against it, but i guess i don't see the overlap between "Better Enemies" and "Playable Enemies".

 

Basically, if you want to use something from my mod, feel free to do so. I started making an effort to keep the AI.ini readable. Just, as funnyhalo said, please give me credit for what is mine and if you can even squeeze in a link to the Better ADVENT modpage somewhere, that'd be appreciated.

Edited by DerBK
Link to comment
Share on other sites

Looking at what you did to make the Firestarter breath flames, i am liking what you did even more. My way of trying to fix it would've been using the Roar animation and fiddle with the code for the visualization track until i get somewhere. You just went to the source and changed the animation itself. So much more elegant and light on superflous code. And completely out of my own abilities.

 

Thanks again. I just slotted your files into Better ADVENT and it works flawlessly just like in the video.

 

I guess i need to put a priority on getting that Berserker out of Terror missions now. :)

Link to comment
Share on other sites

Made a discovery in debugging Behavior Trees that may be of use to some.

 

The console command is \AIDumpLogs.

 

This only works when running uncooked (commandline parameter -NOSEEKFREELOADING ).

 

It dumps a serious amount of cached information about BehaviorTree operation into the Launch.log. A single enemy's (2 action) turn resulted in ~750 lines of dump data.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...