XCOM 2
251 ratings
RealityMachina's XComGameState_Unit Override [VANILLA ONLY]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
297.029 KB
Sep 21, 2016 @ 7:28am
May 31, 2017 @ 9:07pm
21 Change Notes ( view )

Subscribe to download
RealityMachina's XComGameState_Unit Override [VANILLA ONLY]

In 1 collection by RealityMachina
RealityMachina's Mods (and the occasional other mod you should try)
65 items
Description
Latest Update
Fixed the function that fires on units with invisible torsos from not working on specific units like Krogan or Turians.

Notice
New game is effectively required for the override to take full effect as already existing units will use the vanilla class instead of the override.

Also, this will cause issues in your game if you need to uninstall it. Please be prepared for that.


Changes how the game handles cosmetics when equipping to new armour by adding config variables (in XComCosmeticOverrides.ini) to handle inclusion of other characters, so soldiers are less likely to get armour that they can't wear (and thus break their customization) when using mods like species mods for Allies Unknown.

Specifically:

Soldiers that use normal human cosmetics will now default to the base vanilla cosmetics of the armour they're equipped with, so they don't get their customization options broken.

Soldiers that have a defined forced appearance (think the Tracer Investigation Mission mod) should now have that appearance applied consistently no matter what armour.

Soldiers that need character-based filtering (like Krogans or Turians) will get appropriate cosmetics only, instead of getting human-based ones most of the time.

Also alters other functions, like showing the psi-stat on more than the psi-operative class, letting certain AU species roll for special classes, etc.


However, this all comes with a cost: the game handles cosmetic transitions from equipping armour in XComGameState_Unit, and thus this mod overrides it.

XComGameState_Unit is called by pretty much anything that needs to do something related to a unit, whether on the Geoscape or in tactical battles.

So this will almost certainly break when the game gets patched, when the game gets an expansion pack, when you install a mod that needs to make major changes to it, etc. So please be aware of this when you install it and inevitably get crashes in the future.

That said, don't uninstall it immediately when that happens because the game removes all gamestates from a mod when that mod is uninstalled. So pretty much all of your units would disappear in that scenario.

(Well unless you're planning to start a new campaign.)

Also overrides XGCharacterGenerator to make sure soldiers generated in the early game don't get afflicted with an unusuable armour.

Known Issues

Mod doesn't seem to be loaded in?
If you're experiencing an odd issue where even in new games the mod doesn't seem to be working, that seems to be a sign that you'll need to validate XCOM 2, as sometimes XCOM can break and be unable to load mod class overrides properly.

This will also overwrite any .ini changes to mods you've made, so I'd suggest keeping notes of what you changed before validating.

This crashes with War of the Chosen!
This is made for the vanilla version of the game. it will crash if War of the Chosen is active. (it's also pretty redundant: the X2WotCCommunityHighlander effectively does what I wanted to do with this but in a far more elegant fashion)
Popular Discussions View All (1)
0
Jun 20, 2017 @ 5:26pm
keep crashing[error log]
루시퍼
121 Comments
GloomyDevil Dec 5, 2022 @ 3:42am 
Not even gonna work on fixing this major issue you've created, nice mod author
GloomyDevil Dec 5, 2022 @ 3:35am 
Cant even reinstall it lol thanks
nephilimnexus Oct 14, 2019 @ 2:22am 
Never before have I seen a single mod fix so many problems. Thanks!
Alex Jones Jul 18, 2019 @ 9:18pm 
oh alright my bad dude I didnt see any kind of warning. I see you put one up now though thanks.
RealityMachina  [author] Jul 18, 2019 @ 4:26pm 
This is designed for the original XCOM 2 game as was released on February 2016: this will crash with the War of the Chosen expansion pack installed and active.
Alex Jones Jul 16, 2019 @ 7:27pm 
yes
RealityMachina  [author] Jul 16, 2019 @ 6:21pm 
are you using this with war of the chosen
Alex Jones Jul 13, 2019 @ 2:33pm 
Always crashes game on startup with any combination of mods i use.
Pinky's Brain Oct 24, 2018 @ 6:33pm 
Oh nevermind, that's unavoidable I guess. The vanilla ones don't have one either, so you can't really tell them apart.
Pinky's Brain Oct 24, 2018 @ 3:49pm 
Thx, it's just to allow faces from Destroyer's pack in chargen and to use the gender/tattoo/scar stuff, only copying a tiny bit of XGCharacterGenerator (most of it replaced with super calls). Just need to wait for an extra USB stick for my laptop so I can install the 100 GB SDK.

PS. any chance of gender/tattoo/scar chance going to to into Highlander? Also Destroyer's face pack shows a small problem in Highlander ... it allows cosmetics with empty DLC name to avoid the likelihood sliders.