Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Pathfinder Companion Script parser no longer working?

Hey y'all! So, I've been using the Pathfinder Companion Script by Scott for a while now (amazing script, by the way). When I logged in, I say this message: Not *really* understanding what it all meant, and since I wanted to use PFC's parser function, I overrode the compatibility warning. I did test a few things; my condition and group initiative macros were working, so I thought the changes were minor and didn't impact PFC what so ever. However, when I tried to parse a creature a few moments later, something weird happened... Only a handful of things parsed properly (name, alignment and max HP). Even weirder, it correctly parsed the rest of the creature... inside the sheet's NPC parser. It also added the correct number of attacks and abilities, but didn't fill them, so when I parsed the creature with the sheet, it worked, but with about a dozen empty spells, abilities and attackes scattered around. Anyone knows what's going on? Posting pictures in case my explanation wasn't clear enough. The stat block, copy-pasted from Notepad The PFS parser, correctly filled out... ...but the actual sheet being empty, although the correct number of attacks being created.
1624574241
vÍnce
Pro
Sheet Author
You should be able to safely override the version warning.  Are there any errors in the API log?  Does this happen for other statblocks?
My other statblocks run fine, even the ones previously parsed by the PFC. Here is the API log right after running the parser. I just noticed the log is right, HP should be 22... But that shouldn't cause an error, should it? "  > Pathfinder Companion Statblock Parser:ac_compendium parsed <" "  > Pathfinder Companion Statblock Parser:npc_hp_compendium parsed <" "  > Pathfinder Companion Statblock Parser:fort_compendium parsed <" "  > Pathfinder Companion Statblock Parser:ref_compendium parsed <" "  > Pathfinder Companion Statblock Parser:will_compendium parsed <" "  > Pathfinder Companion Statblock Parser:defense section parsed <" "  > Pathfinder Companion Statblock Parser:speed_compendium parsed <" "  > Pathfinder Companion Statblock Parser:npc-melee-attacks-text parsed <" "  > Pathfinder Companion Statblock Parser:npc-ranged-attacks-text parsed <" "  > Pathfinder Companion Statblock Parser:npc-special-attacks parsed <" "  > Pathfinder Companion Statblock Parser:spells parsed <" "  > Pathfinder Companion Statblock Parser:offense section parsed <" "  > Pathfinder Companion Statblock Parser:str_compendium parsed <" "  > Pathfinder Companion Statblock Parser:dex_compendium parsed <" "  > Pathfinder Companion Statblock Parser:con_compendium parsed <" "  > Pathfinder Companion Statblock Parser:int_compendium parsed <" "  > Pathfinder Companion Statblock Parser:wis_compendium parsed <" "  > Pathfinder Companion Statblock Parser:cha_compendium parsed <" "  > Pathfinder Companion Statblock Parser:bab_compendium parsed <" "  > Pathfinder Companion Statblock Parser:cmb_compendium parsed <" "  > Pathfinder Companion Statblock Parser:cmd_compendium parsed <" "  > Pathfinder Companion Statblock Parser:npc-feats-text parsed <" "  > Pathfinder Companion Statblock Parser:skills_compendium parsed <" "  > Pathfinder Companion Statblock Parser:languages parsed <" "  > Pathfinder Companion Statblock Parser:SQ_compendium parsed <" "  > Pathfinder Companion Statblock Parser:statistics section parsed <" "%c Warning: %c parseNPChp, hp not adding right, should be:24 but getNPCHP returns 22 " "%c Warning: %c [object]:========================================= " "[object Object]" "%c Warning: %c ========================================================= " "%c Warning: %c Cannot parse  " "%c Notice: %c saved 1 " "%c Notice: %c saved 2 " "%c Notice: %c saved 3 " "%c Notice: %c saved 4 " "%c Notice: %c saved 5 " "%c Notice: %c saved 7 " "%c Notice: %c ##### finished settings now done " "  > Pathfinder Companion Statblock Parser:Character for statblock 1 imported <" "%c Notice: %c Attributes at version: 0 " "%c Warning: %c migrate repeating attacktype Dropdowns, there are no rows for item " "  > Pathfinder Companion Statblock Parser:Character for statblock 1 initialized <" "  > Pathfinder Companion Statblock Parser: All NPCs initialized. Total import time:4.812 seconds <" "  > Pathfinder Companion Statblock Parser: 1 character parsed and imported in 4.814 seconds"
I should also mention I tried to re-parse a statblock from another session, one I know parsed properly before, and I have the same problem. Safe for the name, alignment, race and max HP, the rest of the statblock only gets parsed to the sheet parser, and creates empty repeating abilities.
1624576798

Edited 1624577712
vÍnce
Pro
Sheet Author
It also added the correct number of attacks and abilities, but didn't fill them, so when I parsed the creature with the sheet, it worked, but with about a dozen empty spells, abilities and attackes scattered around. I am seeing extra empty attacks and abilities being created as well.  There was some changes made to roll20 recently that may be affecting API scripts that create attributes.  This may be related. p.s Would you mind sending me a PM of the scarplume statblock from above?
Hitting the "Parse" button was never required. I tried to do it, and although it works, it keeps the empty abilities and attacks, and adds the correct ones underneath. For some reason, the token actions don't pick up on the newly created ones... Say, for Scarplume, the token actions (Abilities, Attacks, Skills...) all said "No skill". Once I clicked on "Parse", it detected the spells, and added the "Sorcerer Spellbook" token action, but when clicked on, it still displayed "No skill". I'm sending the statblock right away.
1624584038
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hmm, odd. How are you adding the statblock Vincent? Is it via chat or by putting the block in the gm/notes field?
1624596899

Edited 1624597418
vÍnce
Pro
Sheet Author
I've tested using a macro  !pfc --parse|{{PASTE STATBLOCK HERE}} It appears to create additional empty attacks and abilities and never runs the parser.  If you manually hit the Parse button, it adds in the appropriate attacks and abilities.  Vincent pointed out there may be some other issues with token actions as well... I checked the rowID of the empty rows and they seem odd ( nearly identical) Log for an OwlBear "-=> Pathfinder Companion v1.01518021707 || Compatible with Sheet Version 1.6,1.7x <=- [Wed Feb 07 2018 16:41:47 GMT+0000 (Coordinated Universal Time)]" "%c TAS: %c Entering: (anonymous function) " "%c DEBUG: %c caught is_npc event: api " "%c TAS: %c Exiting: (anonymous function) :: 0ms elapsed " " > Pathfinder Companion Statblock Parser:character_name parsed <" " > Pathfinder Companion Statblock Parser:cr_compendium parsed <" " > Pathfinder Companion Statblock Parser:xp_compendium parsed <" " > Pathfinder Companion Statblock Parser:alignment parsed <" " > Pathfinder Companion Statblock Parser:size_compendium parsed <" " > Pathfinder Companion Statblock Parser:type_compendium parsed <" " > Pathfinder Companion Statblock Parser:init_compendium parsed <" " > Pathfinder Companion Statblock Parser:senses_compendium parsed <" " > Pathfinder Companion Statblock Parser:default section parsed <" " > Pathfinder Companion Statblock Parser:ac_compendium parsed <" " > Pathfinder Companion Statblock Parser:npc_hp_compendium parsed <" " > Pathfinder Companion Statblock Parser:fort_compendium parsed <" " > Pathfinder Companion Statblock Parser:ref_compendium parsed <" " > Pathfinder Companion Statblock Parser:will_compendium parsed <" " > Pathfinder Companion Statblock Parser:defense section parsed <" " > Pathfinder Companion Statblock Parser:speed_compendium parsed <" " > Pathfinder Companion Statblock Parser:npc-melee-attacks-text parsed <" " > Pathfinder Companion Statblock Parser:space_compendium parsed <" " > Pathfinder Companion Statblock Parser:reach_compendium parsed <" " > Pathfinder Companion Statblock Parser:offense section parsed <" " > Pathfinder Companion Statblock Parser:str_compendium parsed <" " > Pathfinder Companion Statblock Parser:dex_compendium parsed <" " > Pathfinder Companion Statblock Parser:con_compendium parsed <" " > Pathfinder Companion Statblock Parser:int_compendium parsed <" " > Pathfinder Companion Statblock Parser:wis_compendium parsed <" " > Pathfinder Companion Statblock Parser:cha_compendium parsed <" " > Pathfinder Companion Statblock Parser:bab_compendium parsed <" " > Pathfinder Companion Statblock Parser:cmb_compendium parsed <" " > Pathfinder Companion Statblock Parser:cmd_compendium parsed <" " > Pathfinder Companion Statblock Parser:npc-feats-text parsed <" " > Pathfinder Companion Statblock Parser:skills_compendium parsed <" " > Pathfinder Companion Statblock Parser:statistics section parsed <" " > Pathfinder Companion Statblock Parser:ecology parsed <" " > Pathfinder Companion Statblock Parser:ecology section parsed <" "%c TAS: %c Entering: (anonymous function) " "%c DEBUG: %c caught npc_import_now event: api " "%c TAS: %c Exiting: (anonymous function) :: 0ms elapsed " "Translation Error: the key [large] is not in the translation object." "%c DEBUG: %c buildImportantFeatObj is " "%c DEBUG: %c [array]:========================================= " "Improved Initiative,Great Fortitude,Skill Focus (Perception)" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c looking at Skill Focus (Perception), split into " "%c DEBUG: %c [array]:========================================= " "Skill Focus (Perception),Skill Focus ,Perception" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c returning important feats: " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c x1 at getDiceDieFromString parsing 5d10+20) " "%c DEBUG: %c [array]:========================================= " "5d10+20,5,10,+,20" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c parseAttack: 2 claws +8 (1d6+4 plus grab) " "%c DEBUG: %c PFNPCParse atkstr is now +8 (1d6+4 plus grab) " "%c DEBUG: %c x1 at getDiceDieFromString parsing 1d6+4 plus grab " "%c DEBUG: %c [array]:========================================= " "1d6+4,1,6,+,4" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c ##### Attack dice parse of 1d6+4 plus grab is " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c PFParseAttack e3: plus grab " "%c DEBUG: %c PFParseAttack e4: plus grab, crits: " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c parse attack returning parse of +8 (1d6+4 plus grab) " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c parseAttack: bite +8 (1d6+4) " "%c DEBUG: %c PFNPCParse atkstr is now +8 (1d6+4) " "%c DEBUG: %c x1 at getDiceDieFromString parsing 1d6+4 " "%c DEBUG: %c [array]:========================================= " "1d6+4,1,6,+,4" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c ##### Attack dice parse of 1d6+4 is " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c PFParseAttack e3: " "%c DEBUG: %c parse attack returning parse of +8 (1d6+4) " "%c DEBUG: %c [object]:========================================= " "[object Object]" "%c DEBUG: %c ========================================================= " "%c DEBUG: %c Create attack e6 2 claws +8, enhance:0 dmg from attack:4, from str:4 " "%c DEBUG: %c Create attack e6 bite +8, enhance:0 dmg from attack:4, from str:4 " "%c Info: %c PFNPC createSkillEntries sizemap is: " "%c Info: %c [object]:========================================= " "[object Object]" "%c Info: %c ========================================================= " "%c Info: %c [object]:========================================= " "[object Object]" "%c Info: %c ========================================================= " "%c Info: %c [object]:========================================= " "[object Object]" "%c Info: %c ========================================================= " "%c Info: %c [object]:========================================= " "[object Object]" "%c Info: %c ========================================================= " "%c Info: %c [array]:========================================= " "Acrobatics,Climb,Fly,Perception,Stealth,Swim" "%c Info: %c ========================================================= " "%c Info: %c [object]:========================================= " "[object Object]" "%c Info: %c ========================================================= " "%c Info: %c [boolean]: false " "%c Info: %c leaving creaeskills: " "%c Info: %c [object]:========================================= " "[object Object]" "%c Info: %c ========================================================= " "%c Notice: %c saved 1 " "%c Notice: %c saved 2 " "%c Notice: %c saved 3 " "%c Notice: %c ##### finished settings now done " "%c Info: %c ############################################## " "%c Info: %c Leaving importFromCompendium " " > Pathfinder Companion Statblock Parser:Owlbear imported <" "%c TAS: %c Entering: (anonymous function) " "%c DEBUG: %c caught recalc1 event: api " "%c TAS: %c Exiting: (anonymous function) :: 0ms elapsed " "%c Notice: %c Attributes at version: 0 " "%c Warning: %c migrate repeating attacktype Dropdowns, there are no rows for item " "%c Warning: %c migrate repeating attacktype Dropdowns, there are no rows for spells " "%c Info: %c leaving PFSheet.checkForUpdate " " > Pathfinder Companion Statblock Parser:Owlbear initialized <" " > Pathfinder Companion Statblock Parser: All NPCs initialized. Total import time:3.876 seconds <" " > Pathfinder Companion Statblock Parser: 1 character parsed and imported in 3.878 seconds"
1624601052
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hmm. That is odd. I'll add it to my list of todos, although it might not get finished till I get the sheet refactor done, and the parser gets moved sheet side anyways.
Thanks to both of you for checking it out. I'm adding my statblocks via chat, pretty much like Vince did. Honestly, hitting the "Parse" button and deleting the empty abilities isn't that much of a hassle. But I have the automatic token actions enabled, and they have made my games so much smoother. Even if I parse and delete the empty rows, the token actions don't seem to recognize the abilities. Regardless, thanks for checking it out!
Update: Deleting the empty rows seems to work now for the token actions. It requires a little more work, but using the parser in it's current state is still above and beyond every other method I've used to manage my creatures in combat.