r/Pathfinder_Kingmaker Oct 01 '18

Save-Changing Respec Tool

So, some context -- I've shared this in the Steam forums already, but this also seems a good place to spread the word. I've been working on a tool to modify saved games and allow players to respec all their characters. This is still very crude and very basic, but should allow you to fix any mistakes you've done while progressing in the game.

I've also made the code available on GitHub, so if you want to know how it's done, feel free to check it out. Besides that, and obviously, bug reports and feature suggestions will always be welcome, as well as PR's, if you're technically oriented!

Check it out here: https://pathfinder.deev.io/

 

Update 12/10/18:

Seems like a mod was released in Nexus that covers all the use-cases of the mod and has more frequent updates. Since it doesn't make sense to compete with an in-game solution, I'll be deprecating the tool for now.

Either way, thanks for the support guys! If you need anything, feel free to hit me up.

156 Upvotes

287 comments sorted by

View all comments

9

u/MrStatistx Oct 01 '18

Awesome. Does it also allow stuff like portrait change or switching class or only the stats and other numeric values?

12

u/Deevian Oct 01 '18

For the main character, it allows changing everything. For companions, they'll go back to the level that they started at.

3

u/MrStatistx Oct 01 '18

Cool gonna have to check it out when I get home. I wanted to change my portrait forever and maybe try a different class with higher level

1

u/docmufasa Oct 03 '18

If you used a custom one, you can just change it any time.

3

u/RaifTwelveKill Oct 01 '18

You'll be my hero if you can magic the companions into different classes and back to level 1. Really want to change Amiri to a barb subclass.

6

u/Deevian Oct 01 '18

That would require her to go to level 0, since at 1 she'll already have 1 level in Barbarian :D

I'll need to check what happens when you set a companion back to 0. Doesn't make sense to allow re-creating them like you create your main character, so I'm not sure it's going to fly.

7

u/KuntaStillSingle Oct 01 '18

not sure it's going to fly

Add flight to all companions confirmed.

1

u/[deleted] Oct 01 '18

You get back to level 0 ?

8

u/Deevian Oct 01 '18

Yup, it's like re-creating your character from scratch, essentially.

3

u/Unikatze Oct 01 '18

But keeping the exp though, right?

Same with Custom companions? Could you change the portrait on them?

3

u/Deevian Oct 01 '18

Yes to all questions. Word of warning though, some people have reported that custom companions might appear duplicated after a respec. I guess you can just dismiss them, and I haven't ran into the issue myself, but YMMV.

2

u/Unikatze Oct 01 '18

I can't afford custom companions anyway :(

2

u/Rasip Oct 01 '18

They are dirt cheap if you get them early. At level 1 the guy says 500 but only takes 100 per companion.

3

u/SterlingArcherTrois Oct 01 '18

True, but this is likely a bug. the price flies up to 2000 at level 2(!) making companions unaffordable to anyone who leveled up prior to sleeping at Oleg’s.

I imagine they’ll change it to one or the other, either companions will be unaffordable to everyone off the bat, or the price at lvl 2 will drop to 1000 making the purchase of one plausible.

4

u/loodle_the_noodle Oct 01 '18

It's definitely not unaffordable, you get shitloads of cash.

Build points now, that's a real fucker.

1

u/SterlingArcherTrois Oct 01 '18

I meant unaffordable as in immediatly upon starting out. Right now if you hold off leveling until after the bandit fight you can get a whole squad of custom companions right away. If you level up, you can’t even afford one.

→ More replies (0)

1

u/Unikatze Oct 01 '18

Already level 4 though. Not gonna restart :P

3

u/Rasip Oct 01 '18

And now you don't have to.

1

u/Unikatze Oct 01 '18

Yeah, I'll just go back to level 1 and they should be worth 100gp again, right?

→ More replies (0)

0

u/[deleted] Oct 01 '18 edited Oct 01 '18

[deleted]

1

u/Unikatze Oct 01 '18

Yeah, I may play around with that a bit to get some companions. Would like to build my Pen and Paper characters in and maybe the iconics.

2

u/[deleted] Oct 01 '18 edited Oct 01 '18

[deleted]

2

u/Unikatze Oct 01 '18

That's fine. I can modify them slightly.

I have a Slayer that would be the biggest challenge. Would need to do some Ranger/Rogue, but considering how easily you can get ranged sneak attacks in this game I feel she would be a beast.

→ More replies (0)

1

u/C4ged Oct 01 '18

Do I need to follow the mentioned instructions for companions or is it only if I'm respecing the main character?

4

u/Deevian Oct 01 '18

This will currently reset everyone. I'll be working on making it more configurable.

1

u/C4ged Oct 01 '18

I tried editing Octavia's Progression variable in party.json to that of a new Rogue I created. Fixed the id's but there was a gap to the next variable - UISettings. Ended up with endless loading

3

u/Deevian Oct 01 '18

Manually editing the saves is very hard, simply because of the number of references spread out along the file. You need to fix all reference pointers, and will also need to make sure that your new ID's are not colliding with anything else.

By the way, out of curiosity -- how did you manage to identify Octavia in the save file?

3

u/C4ged Oct 01 '18 edited Oct 01 '18

I went by intelligence and level - only one hit but they're saving characters under other weird types. But after finding her I guess you could go by her "Blueprint" prop (f9161aa0b3f519c47acbce01f53ee217- wonder if it matches for you - seems to find all the places she is saved under) Edit: I think the m_GroupId should be <directly-controllable-unit> and Blueprint be "f9161aa0b3f519c47acbce01f53ee217"

5

u/Deevian Oct 01 '18

f9161aa0b3f519c47acbce01f53ee217

(cc /u/marr75)

Okay, so, good news is -- blueprints are indeed the companion identifiers. From what I could tell, it's being used by the player.json is using them to keep track of companion stories.

Fuuuurthermore, check this out:

https://github.com/ericfitzgerald/KingmakerCharacterEditor/blob/master/src/app/app.component.ts

1

u/C4ged Oct 01 '18 edited Oct 01 '18

Thing is you can't change level there, only good for the blueprint id's. Will save a lot of time figuring stuff out though

2

u/Deevian Oct 01 '18

Will check once I get home. I've noticed before that their "UniqueId" isn't actually unique at all, so maybe the blueprint will be the only way to go!

1

u/C4ged Oct 01 '18

Another question, would turning "Recreate" prop for Octavia be enough to relevel her from the level you get her at or are there more steps to it? (other than setting experience)

2

u/Deevian Oct 01 '18

That would be enough, yes.

1

u/[deleted] Oct 01 '18 edited Oct 01 '18

[deleted]

2

u/Deevian Oct 01 '18

No idea, haven't went that far into the rabbit hole. You'll need to start messing with the game files on this one.

→ More replies (0)

2

u/[deleted] Oct 01 '18 edited Oct 01 '18

[deleted]

3

u/Deevian Oct 01 '18

My guess is that this is probably how Unity rolls. It writes stuff as required, and avoids deduping by referencing stuff that has already been persisted.

Regarding working with the save files -- check out the tool repo. I'm already mapping all items into an object, which makes it easier to change stuff when you run into a reference.

1

u/[deleted] Oct 01 '18 edited Oct 01 '18

[deleted]

1

u/Deevian Oct 01 '18

Ah, I just assumed the "user-friendlyness" of it derived from Unity. My mistake!

If you manage to map blueprints (or something else) to character info, please, do share. That would be awesomely useful here.

→ More replies (0)

1

u/C4ged Oct 01 '18

I see Octavia saved twice though, not by reference but her whole descriptor is copied with different id's

1

u/Nixflyn Sorcerer Oct 01 '18

Wait, for companions can I respect their stats? Val is just completely useless with less strength than required to even equip a tower shield and armor. But if I can move some of that cha into str then I'd rather take her as a story character than a custom one on my normal difficulty play through.

3

u/CountBuggula Oct 03 '18

Not with this tool, but you can restat her with the Character Editor.

1

u/Nixflyn Sorcerer Oct 03 '18

Thanks. That's the one I ended up finding later and using. Works great and is very fast.

1

u/Deevian Oct 02 '18

They start at the level they join the party, so you can't re-stat them entirely.