1. #1
    darrenan's Avatar
    Join Date
    Jul 2011
    Location
    Sammamish, WA
    Posts
    964

    Weird extra characters with PF 2.0 module

    I'm working on the PF 2.0 version of the action library module. I got the first couple items set up in the module and the actions are displaying with weird extra characters. For example, this item in the module:

    Code:
          <aquaticambush>
            <actions>
            </actions>
            <cast type="number">0</cast>
            <casting type="string"></casting>
            <effects type="formattedtext">
              <p>The monster moves up to its swim Speed + 10 feet toward the triggering creature, traveling on water and on land. Once the creature is in reach, the monster makes a Strike against it. The creature is flat-footed against this Strike.</p>
            </effects>
            <heightened type="formattedtext">
              <p></p>
            </heightened>
            <level type="number">0</level>
            <locked type="number">1</locked>
            <name type="string">Aquatic Ambush</name>
            <prepared type="number">0</prepared>
            <requirements type="string">The monster is hiding in water and a creature that hasn’t detected it is within the listed number of feet.</requirements>
            <spcost type="number">0</spcost>
          </aquaticambush>
    After dragging into the actions tab, it ends up looking like:

    weird character.jpg

    You can see that the 'Casting' field has an extra character. Also, another HTML encoded character in the 'Requirements' field has the same issue. Is the solution to just search/replace all the HTML encoded characters with their bracketed action equivalent or un-encoded character, or is this a bug in the PF 2.0 ruleset?

    The XML above was created manually within a character sheet in fantasy grounds, and then copy/pasted from db.xml into the module's client.xml. In the original character sheet it displays fine with no extra character.

  2. #2
    darrenan's Avatar
    Join Date
    Jul 2011
    Location
    Sammamish, WA
    Posts
    964
    In the XML above, the character in the <casting> element is 141 according to Visual Studio, which should be correct I think.

    In the character I dragged and dropped the action on, the <casting> element does contain two characters, 194 and 141. And the apostrophe in the <requirements> element is 194 followed by 146.
    Last edited by darrenan; August 27th, 2019 at 00:42.

  3. #3
    darrenan's Avatar
    Join Date
    Jul 2011
    Location
    Sammamish, WA
    Posts
    964
    Also, wasn't sure if this thread should go here, in the PF 2.0 ruleset thread, or the House of Healing. Feel free to move it as you see fit.

  4. #4
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    GMT -7
    Posts
    7,895
    Blog Entries
    9
    Are you using the correct encoding, UTF-8 I think, on your text file?

    I'm grasping at straws here

    Current Projects: Ultimate Undermountain (NYDUM)
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets
    DMsGuild Content: Balance Disturbed (Adventure), Dungeon Room Descriptions
    FG Product Reviews: Virtual Scribe Reviews

  5. #5
    The low is away for 10 days on vacation; so you may have to wait a bit for a definitive answer.

    I don’t know why extra characters would be added; but I do know that a handful of less-used characters are used by PF2 to represent action symbols.

    Regards,
    JPG

  6. #6
    darrenan's Avatar
    Join Date
    Jul 2011
    Location
    Sammamish, WA
    Posts
    964
    Changing the encoding of my client.xml to iso-8859-1 fixed the problem. Thanks for the hint @LordEntrails!

    In fact, UTF-8 is wrong. The code point 141 is represented in UTF-8 as 0xC28D, or 194 followed by 141, which is what I was seeing. FG uses iso-8859-1 for everything, not UTF-8.

  7. #7
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    GMT -7
    Posts
    7,895
    Blog Entries
    9
    Glad you got it and thanks for detailing the correct answer

    Current Projects: Ultimate Undermountain (NYDUM)
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets
    DMsGuild Content: Balance Disturbed (Adventure), Dungeon Room Descriptions
    FG Product Reviews: Virtual Scribe Reviews

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in