XCOM 2
224 ratings
[WOTC] Custom SPARK Classes Redux
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
556.943 KB
Jan 27, 2022 @ 6:35pm
Jul 22, 2024 @ 1:01pm
8 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Custom SPARK Classes Redux

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]
Popular Discussions View All (2)
2
Jan 31, 2024 @ 5:54pm
Simplified Chinese Localization 简体中文
Tommy
0
Jan 27, 2022 @ 6:50pm
PINNED: SPARK CLASS MODS
RustyDios
95 Comments
Eversor Mar 23 @ 7:40pm 
Thanks Rusty, all working now.
RustyDios  [author] Mar 23 @ 6:17am 
@Eversor
Yes the AML is the better launcher (use the 1.6Beta Release, its stable and so much better than the 1.5)

@hott3
iirc that should be fine, if in doubt try them out together -- it might require some config work, I'm sorry I honestly can't remember
hottt3 Mar 23 @ 2:12am 
Thanks for the mod! I'm going to use it in my LWotC game along with "[WOTC] LW Mecs As Sparks" mod. Will it will go fine?
Eversor Mar 23 @ 1:51am 
Yes on review I do have a couple of spark mods but not a lot. Appreciate the advice.

I'm using the original launcher, there was another thread I'd read that said it was better than the updated one.

Is this what you're recommending?
https://github.com/X2CommunityCore/xcom2-launcher
RustyDios  [author] Mar 23 @ 12:04am 
This mod is just the framework for adding classes, and that sounds like a class you have added. Going by the name I would guess something to do with Vipers Class Pack maybe ?

I've never seen that error when playing modded xcom2, are you using the Alternative Mod Launcher ( if you are not, you should be as the 2klauncher is unreliable at best and at worst just outright broken)
Eversor Mar 22 @ 9:50pm 
I'm getting an odd problem that I think is related to this mod.

Firstly when attempting to load xcom there's this error about 'cannot determine mods that were used', which has come up before and results in it unselecting a bunch of stuff.

I thought I'd selected all my mods back, but when attemping to load the file I get the message "vcp_sparkclass is required for this save", which as this is about the only spark class mod pack I have I assume it's related but there's no mod on the launch menu by that name.

Any ideas what the name of the mod is that shows up on the mod launcher that relates to "vcp_sparkclass"?
RestingWitchFace Dec 31, 2024 @ 3:39pm 
So a heads up this does not work with WOTC GTS Perks For Spark Units it causes a softlock just beforewhen the spark unlock cinematic plays.
CyberNeo Oct 27, 2024 @ 3:45am 
RustyDios  [author] Sep 30, 2024 @ 6:05pm 
Pretty sure I tested this with the Starting Spark mod, without any issues .. are you positive this mod caused your crash ?
Ludwig, Shadow Protogen Sep 30, 2024 @ 5:28pm 
I realised when using Starting Spark mod with this, Gatecrasher mission starts to lag then crashes the game.
Could you add a note in this mod that a classless Spark does not work with Starting Spark mod?