[WOTC] Custom SPARK Classes Redux

If you liked this item, please rate it up on Steam Workshop page.

Author: RustyDios

Last revision: 12 Jul, 2023 at 22:07 UTC (1)

File size: 543.74 KB

On Steam Workshop

Description:
What is this?

This is redux of a vanilla mod, made to work with WOTC.
The Vanilla Version by -bg- had issues with setting the incorrect status on wounded SPARKS, leading to an error when trying to equip load outs on the Squad Select screen.
The WOTC Release by Zevvion technically works in WOTC but is missing some crucial updates from -bg-‘s version.

Attempts to contact either mod author have proven useless to me, so I present this Redux, working correctly in WOTC and updated.

What does it do?

Allows custom class support for SPARK units. Normally the game locks SPARKs to a single predetermined class on build, however, this mod allows a newly built SPARK to pick a class listed in the XComSparkClass.ini if you have the mods that support/create those classes.

Developers of other SPARK classes will need to add their class into this file, under

[WOTC_SPARKCustomClassSupport.SparkClasses] +SparkClasses=<class name>

This mod also handles some basic ability checks that aims to match soldier class to default spark class and patch them to match other custom SPARK classes.

On its own this mod is JUST the framework.
It requires other Spark Class Mods to actually ADD classes.

Changes Of Note
  • Compiled with the WOTC SDK for WOTC
  • Exposed UI strings to a localisation file
  • Updated the UI to a Choose My Class/ GTS Training Style Display
  • New UI display supports controller users
  • Works with Show All Class Counts
  • Handles repair slots from Expanded Robotic Repair Facility correctly
  • Added compatibility for Use My Class
  • Added compatibility for Stats on Promotion Screen
  • Works with Mechatronic Warfare and/or Metal Over Flesh increased rank/build projects.
  • Should work with newer CHL features
  • Should be safe to switch from either of the older versions to this one
    — Older SPARK class mods should work without any issues, Classes prior to July2022
    — Newer SPARK class mods need setting up with the right config/headers
Config Options

Config options exist for the enabling the old-style UI (does not support controllers), how many class options are available and if they should randomise. Defaults are to show new UI with all available valid classes, not randomised.

Known Issues
  1. Class selection may not appear if you tab to the class-less SPARK in the ability screen.
  2. Lost Tower SPARK may not have the promote class icon appear.
  3. Lost Tower SPARK might have issues being unable to Hack until a class is selected.
Compatibility

This mod patches the 2 proving grounds projects that create a SPARK, and listens to UIArmory_Promotion and UISquadSelect to handle class-less SPARKs

This mod also replaces the default class of Sparks to a class-less variant, and also updates the repair SPARK staff slots to support other SPARK classes.

It was tested using un-integrated DLC and without the Story Mission.
Should be okay in LWotC, CI, RPGO environments.
Should be okay to install/update mid-campaign, strategy save.
I would advise against a mid-campaign removal (Your SPARKs might break)

Do not use with either of the other versions.

Designed to visually blend with Choose My Class but that mod is not required.

Default config works with the following Spark Class Mods

Credits and Thanks

Obvious thanks to -bg- for the Vanilla version and Zevvion for the un-updated WOTC version
Many thanks to Iridar and Xymanek for consultations
Made possible using some amazing code from ShireMct, my gratitude is yours.
Huge thanks to MrCloista and LordAbizi for help with testing.
Thanks to Povuh on ChristopherOdd’s discord for testing controller compatibility. Appreciated!

Screenshots include classes from Project LASER: PCP SPARKS and other SPARK cosmetic mods.

As always my appreciation to the kind folks of the XCOM2 and MEME Modders servers.

~ Enjoy !! and please buy me a Cuppa Tea [www.buymeacoffee.com]

Download
Required DLC:

These DLC should be installed in order to use this item.


XCOM 2: Shen's Last Gift
XCOM 2: War of the Chosen
Revisions:

Old revisions of this mod are available below. Click the link to download.