EddieDover / fvtt-party-sheet

A module for FoundryVTT providing a system-agnostic JSON-templated party sheet.
MIT License
2 stars 3 forks source link

[Bug]: Not recognizing Pathfinder 1 party sheet #27

Closed Trellinane closed 2 days ago

Trellinane commented 3 days ago

Contact Details

tjrobertsp55631@gmail.com

What happened?

Just trying to get a Pathfinder 1 party sheet together. Tried using the example in the Template_Readme.md file under the header Extremely Basic File Example. JSON code below. File placed in the foundrytt/data/partysheets folder and called it pf1.json. I keep getting the message that there are no json files for this system. I don't know if it is user error or something with the system specifically.

Foundry version 11.315 Party Sheets 2.5.1

{ "name": "Test Person's Pathfinder 1E Template", "system": "pf1", "author": "Test Person", "rows" : [ [ { "name": "Name", "type": "direct", "header": "show", "text": "{charactersheet} name {newline} system.details.race" } ] ] }

// Note that this uses both the charactersheet and newline special keywords.

image image

What type of foundry hosting were you using?

Self Hosted

Relevant console log output

There are no console errors.  The only thing in the console is indicated in the second image above.

Foundry VTT | Rendering PartySheetForm       foundry.js:5802
EmoCthulhu commented 3 days ago

Hrm, my half finished template still works on PF1 system 10.3, although they must have changed a few things, because race is not uutputting correctly.

EddieDover commented 3 days ago

I need to see the entire console log, filtered by 'fvtt-party-sheet' to know for sure if the template is even being seen/picked up/parsed.

EddieDover commented 3 days ago

@Trellinane I'm not sure what the exact contents of the file you created are, but if you copy pasted directly from the documentation, and your file looks like this:

{
  "name": "Test Person's Pathfinder 1E Template",
  "system": "pf1",
  "author": "Test Person",
  "rows" : [
    [
      {
        "name": "Name",
        "type": "direct",
        "header": "show",
        "text": "{charactersheet} name {newline} system.details.race"
      }
    ]
  ]
}

// Note that this uses both the charactersheet and newline special keywords.

Then it will fail because the comment at the bottom invalidates the JSON schema.

You should see an error like this: image

Can you verify both your primary console log and the contents of the template file?

EddieDover commented 2 days ago

Problem solved. It was indeed the comment that caused the issue.