Skip to content

PF2e Configure Game Settings | Sheet Export | Generate Mapping doesn't work out of the box #29

Description

@dementedhedgehog

Describe the bug
The Generate Mapping config button generates an error because it tries to load a js file that does not exist for PF2e.

To Reproduce
Steps to reproduce the behavior:

  1. Using the P2Fe Game System...
  2. Go to 'Foundry | Game Settings | Configure Game Settings | Sheet Export'
  3. Click on 'Generate Mapping'
  4. Look at the console logs
  5. See error
    foundry.js:5826 Foundry VTT | Rendering MappingEdit
    mappingEdit.js:34 getData
    mappingEdit.js:35 ||||||||||||MappingEdit||||||||||||||
    foundry.js:655 Error: An error occurred while rendering MappingEdit 31. Directory modules/sheet-export/mappings/pf2e/standard/latest does not exist or is not accessible in this storage location
    [No packages detected]
    at Hooks.onError (foundry.js:654:24)
    at 🎁Hooks.onError#0 (libWrapper-wrapper.js:188:54)
    at foundry.js:5795:13

Expected behavior
We expect it to load the player.js file (but the player.js file is installed in a different location).

i.e. the module is trying to load modules/sheet-export/mappings/pf2e/standard/latest/player.js, but that file does not exist.
The p2fe player.js is currently installed in modules/sheet-export/mappings/pf2e/remastered/latest/player.js

Renaming the existing "remastered" directory to "standard" in the filesystem is a work around.

Desktop:

  • OS: Linux
  • Browser: Whatever Chrome foundry is using Foundry v12 Stable Build 331.
  • Version: from the log..

navigator.userAgent
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) FoundryVirtualTabletop/12.331.0 Chrome/122.0.6261.156 Electron/29.4.0 Safari/537.36'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions