XCOM 2
103 ratings
Dynamic Enemy Creation (BETA)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
45.162 MB
25 Jan, 2019 @ 9:51am
28 Jan, 2019 @ 2:51am
4 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Dynamic Enemy Creation (BETA)

Description
This mod is an experimental API that provides three core functionalities for modders:

- Create units from config alone. You can define templates, assign them abilities and movement presets, and adjust different values just like you would with code. This makes prototyping enemies a much easier process.

- Give units stat and ability upgrades based on force level, alert level or the progress of the avatar project. Upgrades can have a chance to apply. This functionality relies on the 'EnemyResearchBonus' perk, which is automatically added to all units, including enemies from other mods. The ability to also patch loadouts and loot tables with these upgrades will be added in a future update.

- Customize unit tints, scale and body parts (the latter is ADVENT only, requires the Advent pawn shipped with this mod). This functionality is ported from the vanilla LW Alien Pack.

To get started, take a look at XComAlienResearch, XComAlienCustomization and XComGameData_CharacterTemplates. The configs contain basic info about the data structures used, and more documentation as well as an indepth guide are in the works.
67 Comments
XpanD 10 Oct @ 1:45pm 
I wasn't able to confirm this, but this crash issue may be fixable by removing all non-Archon entries from XComAlienCustomization.ini, and fixing the double closing parenthesis. (or I think that's what it was? robojumper's Config File Checker will catch it)

Worth changing that, the stock config is at the very least malformed. Can always remove it later if it still causes issues post-fix. (I think? but my game didn't mind me removing it and adding it back later)
XpanD 30 Sep @ 8:55am 
Can confirm the crash Malek reported back in 2022, I just had it with a cutscene spawned by Fireborn's Mission Pack. Disabling the mod allowed me to proceed, even with my old tactical save.
Toggol 25 Mar @ 6:43am 
Hey, i’m kinda new to Xcom2, and I need to know how configs work and how to use this mod. :Oogie:
Dęąth Viper 19 Dec, 2024 @ 10:23pm 
@TheProtoFire Try this. Not sure if it will work but you migt be able to make a research project for advent that completes based on avatar process.

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2958218158&searchtext=advent+research
Dman883 19 Apr, 2023 @ 2:02pm 
Seconded on the inability to target enemies after loading a save game during combat. Not sure if it's just the mod or a conflict with another mod.
Stukov81-T.TV 15 Dec, 2022 @ 9:16am 
i was unable to make it use doom counter ... it appears it would always read 0 doom. at least that's what i had when trying to setup Advent Evolution
TheProtofire 14 Dec, 2022 @ 10:57pm 
Can someone help me set up this config? I am trying to give Advent upgrades based on the Avatar meter. At 6 points of progress, all enemies gain small bonuses to all stats that increase with each additional point. I have tried several different campaigns and tested on missions when progress is at 6 but I cannot get any of the upgrades to apply. I've tested with Tier 1 troopers and they always show up with the default stats.

+ResearchStatBonuses = (UnitName = AdvTrooperM1, UpgradeID = "AvatarLv6", Stats = ( (StatType = eStat_HP, StatAmount = 4), (StatType = eStat_Offense, StatAmount = 10), (StatType = eStat_Defense, StatAmount = 5), (StatType = eStat_ArmorMitigation, StatAmount = 1), (StatType = eStat_CritChance, StatAmount = 5), (StatType = eStat_Mobility, StatAmount = 1), (StatType = eStat_Dodge, StatAmount = 5), (StatType = eStat_Will, StatAmount = 5) ), IgnoreFL = true, IgnoreAlert = true, IgnoreDoom = false, MinDoom = 6, MaxDoom = 12, AlwaysApply = true)
Withstandinator 7 Sep, 2022 @ 11:47pm 
Just as a data point in case it helps anyone I have a consistent bug report. I have this and all the base mods for LWotC, and then at any point during a mission if i save and reload a turn then none of the enemies are target-able and I can't interact with any map objectives.

If I grenade them then they work fine again, or if I skip a turn and the enemy moves themselves, but I was out of grenades for a mission and couldn't trigger the button.
Stukov81-T.TV 13 Jul, 2022 @ 7:22am 
apparently not for everyone. i have seen it happen on other streams, but for me i never had any problem with an objective so far. can't talk about chosen stronghold