Made an account just to say thank you so much for this!! I just lost my 100+ hour save file after my Steam Deck died on me and now I'm able to get back pretty much right back to where I was :)
If I could offer just one suggestion it would be a way to set stats of all units to a specific value...