Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: pf2e 4.2.1 export fails using the PDF in the official mapping #53

Open
1 task done
Ghilteras opened this issue Oct 4, 2022 · 3 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@Ghilteras
Copy link

Ghilteras commented Oct 4, 2022

Expected Behavior

export works

Current Behavior

export does not work

foundry.js:58526 PDF Sheet | Invalid mapping JavaScript Object. See the <a href="https://github.com/arcanistzed/pdf-sheet/blob/main/README.md">README</a> for more info.
fetch @ foundry.js:58526

Steps to Reproduce

Context

N/A

Version

latest

Foundry VTT Version

10

Operating System

Windows

Browser / App

Chrome

Game System

pf2e

Modules Disabled

  • I can confirm that disabling all of my other modules doesn't fix this issue.
@Ghilteras Ghilteras added the bug Something isn't working label Oct 4, 2022
@Ghilteras Ghilteras changed the title [Bug]: pf2e export fails using the PDF in the official mapping [Bug]: pf2e 4.2.1 export fails using the PDF in the official mapping Oct 4, 2022
@JairVianna
Copy link

Hi, I found the problem in the "Class DC" Section, line 144 from Pathfinder 2e mapping and this happens only to a few characters. The line is:

{ "pdf": "ClassDC_KeyMod", "foundry": @data.attributes.classDC?.modifiers**.filter(i => i.type === 'ability')**.map(i => i.modifier < 0 ? i.modifier : '+'+ i.modifier) },

More specifaclly ".filter" section.

Removing all "Class DC" entry, the mapping works fine.

@arcanistzed
Copy link
Owner

@BlauKreuz

@BlauKreuz
Copy link
Contributor

Last mapping update was made for PF2e 4.2.2 and the current PF2e version is 4.2.6.
In 4.2.2 "modifiers" got changed to "_modifiers" and it was updated in the mapping accordingly. If you require an older mapping, please send pm to Kurko#1535 in Discord.

Also, note that if you have entered the mapping with copy/paste, it does not get updated automatically when the module is updated. You have to reselect the mapping from the pull down menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants