XCOM 2
Exclude Same Class Skills
22 Comments
Riekopo 20 Dec, 2021 @ 3:11am 
Is this in Highlander already?
/!X\Space\\^//Badger/X!\ 23 Jun, 2018 @ 9:12am 
I've run into this problem, only on Dragunova, Mox, and Vega (all three heroes), unfortunately. I'm going to try this mod, and hope it fixes the problem, because it's causing me to not only lose abilities, but lose requirements for *other* abilities, up the tree.
DroZzhat 24 Sep, 2017 @ 3:17pm 
According to the update notes on X2WOTCCommunityHighlander, yes, it's also already fixed by that. If you don't want to use the community pack for whatever reason, this still fits the bill.
-zK- 24 Sep, 2017 @ 8:09am 
Thanks for answering. It would just be nice to know so we can have a cleaner mod collection, without overlapping. The CommunityHighlander is doing a great job condensing all bug fixes in one single mod and I think you should help out, if you can of course. xD
kregano  [author] 24 Sep, 2017 @ 7:19am 
@-zK-: Not sure, I haven't poked around in that thing yet.
-zK- 23 Sep, 2017 @ 7:42pm 
Did the X2WOTCCommunityHighlander make this mod "unnecessary"?
Uhuru N’Uru 7 Sep, 2017 @ 4:50am 
@ William Harvey, just read your comment, after posting.
Your conclusion appears partially correct, as they removed the quotes from the soldier classes as well. It appesrs this is the cause of the problem, which I missed in my last post.
I was too focussed on the file contents. They are not ignored, at all, as your tests show.

Testing for removing the quotes, needs to be done, as that was clearly the original intention.
Having used mass test editing, plus I initially tried searching for lines ending with quotes. and found none, I'm positive this was the specific mistake the devs made.

The usual standard is, quotes are required for names with spaces in them.
Quotes also work, but are not required, if no spaces are used.

I think devs tried to simplify the user config editing, and made the mistake with commented lines.

Testing would need doing, but I think we'll find no quotes also works just fine.
Quotes will work just as well, but if devs patch this, I expect they will remove them.
Uhuru N’Uru 7 Sep, 2017 @ 4:22am 
@ kregano Confirm Alexandr is wrong, from unmodified Vanilla Files

DefaultClassData.ini

[XComGame.X2SoldierClass_DefaultClasses]
SoldierClasses="Ranger"

[Ranger X2SoldierClassTemplate]
ExcludedAbilities="LightningReflexes" ; prevent conflict with Shadowstep
ExcludedAbilities="EverVigilant" ; prevent conflict with DeepCover

XComClassData.ini

[XComGame.X2SoldierClass_DefaultClasses]
SoldierClasses=Ranger

[Ranger X2SoldierClassTemplate]
ExcludedAbilities=LightningReflexes" ; prevent conflict with Shadowstep
ExcludedAbilities=EverVigilant" ; prevent conflict with DeepCover

The fact Game (Default), contains quote marks, and User (Xcom) doesn't where they end the line, but leaves them, when a comment is added, suggests a "Replace All" text editing failure.

Technically they are a vanilla bug, but the single quote must just be ignored.
Indeed as game uses quotes, and User doesn't, it suggests they are ignored anyway.
William Whisky 6 Sep, 2017 @ 6:00pm 
After subscribing to this mod, I still ran into soldier with extra skill from the same class.

I noticed the ini (both of the mod and of the game) didn't have the quote mark (") at the beginning of the skill (right after the '=' sign). So I added the quote sign in, and used the console to level up 30-40 rookies, none has the extra skill from the same class.

So it seems Firaxis made a bug in their ini. It needs the quote mark.
Droklet 4 Sep, 2017 @ 1:24pm 
@Drakster yes its happens all the time for my rangers . keep getting 2x shadowstep or run and gun ...
Droklet 4 Sep, 2017 @ 1:23pm 
thanks for this , literally every soldier what i have go some skill 2x .. this help a lot
Alexandr 4 Sep, 2017 @ 10:59am 
Weird, because in my classdata.ini file, all the skills are properly listed with quotation marks around both the beginning and end of a skill's name.
Juravis 4 Sep, 2017 @ 10:52am 
It's a dev error then, i suggest removing them or adding a second pair right before the ability name. They are there to denote a string start and end.
kregano  [author] 4 Sep, 2017 @ 10:43am 
@ADVENT Avenger: That's not my typo. That's how they're formatted in the game's exclusions, and I simply followed suit to ensure it'd work.
Alexandr 4 Sep, 2017 @ 10:33am 
I have personally never seen this bug in a few hundred randomly-generated soldier trees and I do have SPARKs with AWC Skills on.
Juravis 4 Sep, 2017 @ 9:12am 
INI file typo, all lines end with " but there arent any starting ones. Just remove the ".
Ford Ranger 4 Sep, 2017 @ 8:33am 
@kregano did those two people mod their Sparks to use the AP system? Because if you do that it adds a second copy of shredder into the pool that a heavy can roll and messes everything up. It'll also happen with any mod classes that have copies of the same skills.
kregano  [author] 4 Sep, 2017 @ 8:02am 
@Drakster: It has happened to at least 2 people I know of, and apparently can lock you out of some skills, depending on placement.

And it only affects the base game classes, since the Faction soldiers explicitly list which XCOM skills they can get in their .ini file entries.
Vaeringjar 4 Sep, 2017 @ 7:57am 
I don't understand either
Drakster 4 Sep, 2017 @ 7:46am 
I don't quite understand.. right now there is a chance that any soldier gets skills in the training center that he would get in his normal skill tree anyway?
MayMayNaenae 4 Sep, 2017 @ 7:39am 
Thank you, good Sir or Madam or both.