Modding LWOTC

From UFOpaedia
Revision as of 15:39, 26 October 2021 by Meatninja (talk | contribs) (Extended directory path for better clarity of where to look for INIs)
Jump to navigation Jump to search

Back To Main Page

This page lists every INI file (found in the \XCOM 2\XCom2-WarOfTheChosen\XComGame\Mods\LongWarOfTheChosen\Config directory) that can be modified according to the player's preferences, typically resulting in various gameplay differences. Below, you'll find what each line in the files refers to, what changes can be done, and how to accomplish them.

XComClassData

Each soldier class is set up using the same structure, making use of the following parameters:

  • NumInForcedDeck=integer: Guaranteed number of this class that can be obtained over the campaign, also tied to the number that can be trained in the GTS. A value of 0 means they are not guaranteed and will not be trainable through the GTS.
  • NumInDeck=integer: Affects the chance to get this class after “NumInForcedDeck” is depleted. A value of 4 is standard, setting it higher will on average result in obtaining this class more often.
  • bCanHaveBonds=true or false: Determines whether this class can have bonds with other soldiers.
  • bAllowAWCAbilities=true or false: Determines whether the class can gain random abilities that can be obtained through the Training Center.
  • BaseAbilityPointsPerPromotion=integer: Determines the AP gain per promotion at Very Low ComInt (Each higher level grants 1 additional AP per rank) .
  • SquaddieLoadout="loadout_name": Determines the default loadout for the class, this is available in XComGameData.
  • AllowedWeapons=(SlotType=eInvSlot_SlotName, WeaponType="weapontype"): What weapons the class is allowed to use. The SlotName and the associated weapontypes are as follows:
    • PrimaryWeapon: rifle, smg, shotgun, cannon, sniper, vektor_rifle, gauntlet, bullpup, sparkrifle.
    • SecondaryWeapon: lw_gauntlet (Technical Gauntlet), gremlin, grenade_launcher, combatknife (Gunner knife), sawedoffshotgun, holotargeting, arcthrower, sword, psiamp, sparkbit, claymore, throwingknife (Reaper knife), sidearm (autopistol), templarshield, wristblade (Skirmisher Ripjack).
    • HeavyWeapon: heavyammo (additional charges for the Technical Gauntlet), heavy (Shredder Gun).
  • AllowedArmors="armortype": Determines what armor the class is allowed to equip; armortype can be one of the following values:
    • soldier: The standard soldier armor; also allowed to use the mobility-based and heavy armor.
    • reaper, skirmisher, templar: The armor used by heroes; hero classes can only use equivalents of regular XCOM soldiers' "basic" armor (Kevlar/Predator/Warden), without any special associated abilities.
    • spark: The armor frame used by SPARKs.
  • bIgnoreInjuries=0 or 1: The typical value, 0, is assumed in case this line is not specified. The value 1 allows the unit to be deployed regardless of injuries on all missions, which by default is only used by SPARKs.
  • RandomAbilityDecks=
(DeckName="deckname", \\
					Abilities=((AbilityName="AbilityNameOne", ApplyToWeaponSlot=eInvSlot_SlotName), \\
							   (AbilityName="AbilityNameTwo", ApplyToWeaponSlot=eInvSlot_SlotName), \\
							   ...
							   (AbilityName="AbilityNameN", ApplyToWeaponSlot=eInvSlot_SlotName), \\
					))
  • The lines above determine the pool of n randomized abilities that can be obtained by spending AP on a given soldier (with the Training Center operational). Not all abilities require the use of the ApplyToWeaponSlot parameter, in which case a given line looks like this: (AbilityName="AbilityName"), \\
  • SoldierRanks=
(  AbilitySlots=(	(AbilityType=(AbilityName="AbilityNameOne",		ApplyToWeaponSlot=eInvSlot_SlotName)), \\
								(AbilityType=(AbilityName="AbilityNameTwo",		ApplyToWeaponSlot=eInvSlot_SlotName)), \\
								(AbilityType=(AbilityName="AbilityNameThree",			ApplyToWeaponSlot=eInvSlot_SlotName)), \\
								(RandomDeckName="TierInteger_XComAbilities"), \\
								(AbilityType=(AbilityName="AbilityNameFour",		ApplyToWeaponSlot=eInvSlot_SlotName)), \\
							 ), \\
				aStatProgression=((StatType=eStat_StatName,StatAmount=integer), (StatType=eStat_StatName,StatAmount=integer)) \\
			)
  • The lines above determine the 3 main tree perks that a given class will be offered at a specific rank, alongside an optional XCOM perk and pistol perk (by default). Similar to RandomAbilityDecks, not all abilities here require the use of the ApplyToWeaponSlot parameter, in which case a given line looks like this: (AbilityType=(AbilityName="AbilityName" )), \\
  • The StatName part of eStat_StatName can be one of the following:
    • UtilityItems (Affects the number of utility slots available to this soldier)
    • HP
    • Offense (Aim)
    • Defense
    • Mobility
    • Will
    • Hacking
    • SightRadius
    • Dodge
    • ArmorMitigation (Amount of points of armor)
    • ArmorPiercing
    • PsiOffense
    • DetectionModifier (Probably incremented in float values, like 0.1f)
    • CritChance
    • CombatSims (PCS slot)
    • FlankingCritChance
    • ShieldHP (Ablative HP bonus. Ablative HP is the orange "shield" health on top of the normal Health bar)
    • FlankingAimBonus

XComGameBoard

The following information is in the format of start line-end line: explanation (the start and end lines refer to the default positions of lines in the file).

  • 6-9: Radio Relay base supply cost.
  • 12-15: Radio Relay cost increase per tower built.
  • 29-37: (unknown/research in progress) (Initial supply drop for new contacted regions?)
  • 45-48: Base Intel cost for contacting a new region.
  • 50-58: Minimum and Maximum days it takes to contact a new region.
  • 66-68: Minimum and Maximum amount of links a region can have and a toggle for cross continent links. Rarely, it may be possible for a region to be generated with fewer than the specified Minimum amount of links (this bug is present as of version Dev 28.2).

Points Of Interest

  • 72-80: Minimum and Maximum scan time (in days) for Points of Interest (scanning locations that appear on the globe after missions with an "Intel Package" reward).
  • 82-90: Minimum and Maximum time (in hours) after which the Point of Interest despawns.
  • 93-101: Minimum and Maximum scan time (in days) for the Alien Hunters DLC story mission.
  • 104-112: Minimum and Maximum scan time (in days) for the Shen's Last Gift DLC mission.
  • 114-138: (unknown/research in progress) POI for Rebels.
  • 139-163: (unknown/research in progress) POI for Resistance MEC.
  • 164-194: (unknown/research in progress) POI for new resources?
  • 195-211: (unknown/research in progress) POI for Supplies (other values can be found in the .ini file of the same name for the base game).
  • 212-225: (unknown/research in progress) POI for Intel (other values can be found in the .ini file of the same name for the base game).
  • 226-240: (unknown/research in progress) POI for Alien Alloys (other values can be found in the .ini file of the same name for the base game).
  • 241-254: (unknown/research in progress) POI for Alien Alloys and Elerium Crystals (other values can be found in the .ini file of the same name for the base game).
  • 255-264: (unknown/research in progress) POI for Scientist
  • 265-274: (unknown/research in progress) POI for Engineer (other values can be found in the .ini file of the same name for the base game).
  • 275-288: (unknown/research in progress) POI for Rookies (other values can be found in the .ini file of the same name for the base game).
  • 289-298: (unknown/research in progress) POI for Soldier (other values can be found in the .ini file of the same name for the base game).
  • 299-312: (unknown/research in progress) POI for Avenger Power (other values can be found in the .ini file of the same name for the base game).
  • 313-321: (unknown/research in progress) POI for Resistance Contacts (other values can be found in the .ini file of the same name for the base game).
  • 322-330: (unknown/research in progress) POI for assorted loot? (other values can be found in the .ini file of the same name for the base game).
  • 331-345: (unknown/research in progress) POI for Grenades/Ammo (other values can be found in the .ini file of the same name for the base game).
  • 345-354: (unknown/research in progress) POI for reduced contact cost of regions (other values can be found in the .ini file of the same name for the base game).
  • 355-363: (unknown/research in progress) POI for Heavy Weapon (other values can be found in the .ini file of the same name for the base game).
  • 364-372: (unknown/research in progress) POI for Facility Lead (other values can be found in the .ini file of the same name for the base game).
  • 373-381: (unknown/research in progress) POI for Guerilla Op (unclear how this functions due to changes in mission generation in LW2/LWOTC compared to vanilla)
  • 382-391: (unknown/research in progress) POI for supply raid (unclear how this functions due to changes in mission generation in LW2/LWOTC compared to vanilla)
  • 392-400: (unknown/research in progress) POI for region income (unclear how this functions due to changes in income generation in LW2/LWOTC compared to vanilla)
  • 401-412: Adjust how the Skyranger traverses the Geoscape:
    • Acceleration: (unknown/research in progress)
    • Flight Height: (unknown/research in progress) (How high it moves up before traversing?)
    • InFlightTimeScale: (unknown/research in progress) (How quickly time changes as it moves?)
    • MaxSpeedFlying: (unknown/research in progress)
    • MaxSpeedVertical: (unknown/research in progress)
    • RotationSpeed: (unknown/research in progress)
    • MaxLiftOffLandPitch: (unknown/research in progress)
    • MaxFlightPitch: (unknown/research in progress)
    • MaxFlightTurnRoll: (unknown/research in progress)
    • MaxTurbulenceRoll: (unknown/research in progress)
    • LandingRadius: (unknown/research in progress)
  • 417-418: Minimum and Maximum time (in days) it takes for a UFO to intercept the Avenger.
  • 420: UFO Interception chance. The Avenger's location and flight path has no effect on whether it will be intercepted, this is handled only by this value.
  • 421: Story Mission UFO Interception Chance.
  • 423-426: UFO Interception chance after the first UFO.
  • 439-446: (unknown/research in progress) (Region link lengths? Likely doesn't affect gameplay)
  • 448-479: (unknown/research in progress) (Which regions are allowed to be linked to a given region?)

Covert Actions

  • 481-482: Covert Action XP Reward.
  • 491-501: Hunt the Chosen Part 1 duration (in hours).
  • 502-512: Hunt the Chosen Part 2 duration (in hours).
  • 513-523: Hunt the Chosen Part 3 duration (in hours).
  • 524-534: Intense Training (soldier stat increase) duration (in hours).
  • "Easy" failure risk Covert Actions:
    • 536-546: Gather Supplies duration (in hours).
    • 547-557: Gather Intel duration (in hours).
    • 558-568: Gain Xcom AP duration (in hours).
    • 569-579: Superior Weapon Upgrade duration (in hours).
    • 580-590: Superior PCS duration (in hours).
    • 591-601: Alien Loot duration (in hours).
    • 613-623: Form/Level Soldier Bond duration (in hours).
    • 624-633: Resistance Mec duration (in hours).
    • 648-658: Rescue Soldier duration (in hours).
    • 659-669: Find Second Hero Faction duration (in hours).
    • 670-580: Find Third Hero Faction duration (in hours).
    • 692-702: Recruit Extra Faction Hero duration (in hours).
  • "Moderate" failure risk Covert Actions:
    • 704-714: Recruit Scientist duration (in hours).
    • 715-725: Recruit Engineer duration (in hours).
    • 726-736: Loot Alien Morgue (gain corpses) duration (in hours).
    • 737-747: Recruit Resistance Personnel duration (in hours).
    • 748-758: Cancel Chosen Activity duration (in hours).
    • 759-769: Delay Chosen Activity duration (in hours).
    • 770-779: Gain Resistance Contact duration (in hours).
  • "Hard" failure risk Covert Actions:
    • 806-816: Remove AVATAR Progress duration (in hours).
    • 817-827: Gain Facility Lead duration (in hours).
  • 830-831: "Easy" failure chance.
  • 834-835: "Moderate" failure chance.
  • 838-839: "Hard" failure chance.
  • 851-852: Ambush chance.
  • 854-864: Reaper HQ Intel generation.