Figured I might as well post this here.
The RestrictedClass function is broken, it restricts the ability from all classes, not just the one it should be targeting, this means a lot of perks which are listed in the XComLW_AWCPack.ini will never be given to any soldier, because the broken function restricts them from everyone.
Here's the easy hotfix:
Do search and replace of all
RestrictedClass="LWS_Sharpshooter" with RestrictedAbility="Squadsight"
RestrictedClass="LWS_Grenadier" with RestrictedAbility="LaunchGrenade"
RestrictedClass="LWS_Shinobi" with RestrictedAbility="Slash_LW"
RestrictedClass="LWS_Ranger" with RestrictedAbility="PointBlank"
RestrictedClass="LWS_Assault" with RestrictedAbility="ArcthrowerStun"
RestrictedClass="LWS_Specialist" with RestrictedAbility="AidProtocol"
RestrictedClass="LWS_Technical" with RestrictedAbility="HeavyArmaments"
RestrictedClass="LWS_Gunner" with RestrictedAbility="KnifeFighter"
RestrictedClass="LWS_PsiOperative" with RestrictedAbility="Soulfire"
This way the intended restrictions work, so you don't get sword abilities on your sharpshooter or whatnot, but it opens up for a lot more abilities that were listed but nobody could get. Like lightning reflexes, because it was affected by RestrictedClass="LWS_Shinobi", which blocks it for everyone. There's about 25 perks affected.
AWC perk allocation bug hotfix solution.
AWC perk allocation bug hotfix solution.
Last edited by cerebrawl on Tue Jan 31, 2017 9:09 pm, edited 1 time in total.
Re: AWC perk allocation bug hotfix solution.
This is good. Thanks a lot!
-
- Posts: 8
- Joined: Tue Jan 24, 2017 11:50 am
Re: AWC perk allocation bug hotfix solution.
Wait, which lines are we replacing in the INI? Or do we just add that code?
Re: AWC perk allocation bug hotfix solution.
Do a search and replace of all instances of the bit on the left, with the bit on the right.Crushing Doom wrote:Wait, which lines are we replacing in the INI? Or do we just add that code?
In notepad++ it looks like this:
-
- Posts: 28
- Joined: Wed Jan 18, 2017 5:34 am
Re: AWC perk allocation bug hotfix solution.
Is this a fix or was it intended to be this way?
please delete my account, I know long use it.
Re: AWC perk allocation bug hotfix solution.
It's a workaround bugfix because the RestrictedClass function is broken and stops all classes from getting the perk, instead of just one class.wadeanthony wrote:Is this a fix or was it intended to be this way?
This gets you the intended restrictions, and not the draconian bans.
Re: AWC perk allocation bug hotfix solution.
If I make these changes and they come out with a new patch will it mess up my game? Would love to see one of the LW2 devs post this on the 1.2 workaround patch notes. Or at least confirm this is how they will fix it.
Anyway, thanks for the find!
Anyway, thanks for the find!
Re: AWC perk allocation bug hotfix solution.
New patch will overwrite the changes, and it won't even mess up your save. If they change the perk lists/availabilities, then it will only affect soldiers you promote up from rookie, everyone who is a squadie or higher are locked in to the perks they were allocated before.3dahs wrote:If I make these changes and they come out with a new patch will it mess up my game? Would love to see one of the LW2 devs post this on the 1.2 workaround patch notes. Or at least confirm this is how they will fix it.
Anyway, thanks for the find!
And you're welcome.