MrPrimate / pathmuncher

Munch Pathfinder 2e characters into Foundry from Pathbuilder
MIT License
23 stars 6 forks source link

Importing fails on all characters #25

Closed peaceful-octopus closed 1 year ago

peaceful-octopus commented 1 year ago

Describe the bug I just updated Foundry to v11.313 and PF2e to 5.8.0, and now all imports fail with this error in the console:

TypeError: Cannot read properties of undefined (reading 'system')
    at #setAbilityBoosts (Pathmuncher.js:1291:1)

Using this character, but all others I've tried also fail with the same error.

To Reproduce Steps to reproduce the behavior:

  1. Get JSON ID from Pathbuilder as usual.
  2. Create empty character in Foundry
  3. Start Pathmuncher and enter JSON ID
  4. Click Import

Expected behavior The character should be parsed and imported.

Environment:

peaceful-octopus commented 1 year ago

Okay, so it turns out the initial issue was a problem with my world. I just created a new world and somehow it didn't have any of the PF2e compendiums. Deleted the world and created a new one, and now it's working again, except for the particular character linked above, which results in this error:

pathmuncher | ERR > Whoa! Something went major bad wrong during choice evaluation
[...]
#evaluateChoices       @ Pathmuncher.js:826
_await in #evaluateChoices (async)_
#addGrantedRules     @ Pathmuncher.js:1021
#addGrantedItems     @ Pathmuncher.js:1202
#generateFeatItems   @ Panthumcher.js:1471
[...]
MrPrimate commented 1 year ago

Thanks for this report, fixed in v0.10.0, out now!