How to reset assigned soldier skills in save files

Post Reply
jaspaucooper
Terra Invicta Alpha Tester
Posts: 14
Joined: Wed Jul 17, 2019 6:32 pm

How to reset assigned soldier skills in save files

Post by jaspaucooper »

Any hints on manually resetting the skills assigned to senior soldiers by editing the save file?

I recently launched a LW2 campaign and got a few soldiers up to SSgt before encountering a bug with Smash & Grab missions that was resolved by uninstalling and reinstalling to replace an older version of LW2. Apparently I had been assigning skills based on a skill tree that has been superseded; the positions of selected skills remain the same (among the 3 columns at each rank), but the actual skills in those positions is different. So now several soldiers have skills I would not have chosen, like Airdrop instead of Field Medic for specialist SSgts and Hunter's Instincts instead of Reaper for shinobi TSgts.
User avatar
johnnylump
Site Admin
Posts: 1262
Joined: Wed Nov 11, 2015 4:12 am

Re: How to reset assigned soldier skills in save files

Post by johnnylump »

You might have an easier time using the AWC's respec option. You should be able to make it free and take no time via ini modding, then fix your troopers, then return the AWC to normal values.
jaspaucooper
Terra Invicta Alpha Tester
Posts: 14
Joined: Wed Jul 17, 2019 6:32 pm

Re: How to reset assigned soldier skills in save files

Post by jaspaucooper »

Thanks, that sounded like a good idea. I reset the values of 5 to 0 for the following

XComHeadquarters_DefaultRespecSoldierDays[0]=5 ;Easy
XComHeadquarters_DefaultRespecSoldierDays[1]=5 ;Normal
XComHeadquarters_DefaultRespecSoldierDays[2]=5 ;Classic
XComHeadquarters_DefaultRespecSoldierDays[3]=10;Impossible

in the

XComGameData

file. After re-booting, my gunner that had started at 20 days for respec was at 13d, and it didn't change that. So I saved, canceled his respec, then sent him in to AWC again for respec; he came back in at 20d again.

I'll look for other variables that might make the difference.
User avatar
johnnylump
Site Admin
Posts: 1262
Joined: Wed Nov 11, 2015 4:12 am

Re: How to reset assigned soldier skills in save files

Post by johnnylump »

I looked at the code that handles respec times and it should be working. LW2 added a multiplier for respeccing that adds time for each rank the soldier has, but 0 times that modifier should still of course be zero.

Are you sure you modded the right version of the file? Should be here:

\Steam\steamapps\workshop\content\268500\844674609\config\xcomgamedata.ini

It would only work on soldiers newly placed into the AWC after the changes are made.
jaspaucooper
Terra Invicta Alpha Tester
Posts: 14
Joined: Wed Jul 17, 2019 6:32 pm

Re: How to reset assigned soldier skills in save files

Post by jaspaucooper »

That was it. Thanks!
Post Reply