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 .
×

[Pathfinder 1e Community Sheet] Unable to import some characters

I can't get Hero Lab to play nicely with either version of the Pathfinder 1e community sheet's ways to import characters. It appears to only crop up on things with class levels, but there's not enough information in the error message for me to be able to figure out what is being choked on. I *suspect* there's some setting or add-on in Hero Lab that's doing something strange, but I can't tell for sure. Here's some additional info. Steps to generate the error: -Open a new Hero Lab (version 8.9h) -Import a Deer from the encounter builder for hero #1 -Export via the direct Roll20 pathfinder export. Result: Successful import. -Export via XML and then <a href="https://www.convertjson.com/xml-to-json.htm" rel="nofollow">https://www.convertjson.com/xml-to-json.htm</a> . Result: Successful import. -Create an additional hero, a level 1 elven fighter. Don't do anything crazy, just build a simple PC named "Gallant". Resulting portfolio file: <a href="https://www.dropbox.com/s/rpdpuwyrgof0pgq/Sans_ConversionErrors.por?dl=0" rel="nofollow">https://www.dropbox.com/s/rpdpuwyrgof0pgq/Sans_ConversionErrors.por?dl=0</a> -Export Gallant with the Roll20 pathfinder export. Open the resulting html file in Notepad++, copy the entirety into the text area for uploading characters. Resulting error: "Cannot read properties of undefined (reading 'text')". Html file: <a href="https://www.dropbox.com/s/tdq156h476onx3g/Gallant.htm?dl=0" rel="nofollow">https://www.dropbox.com/s/tdq156h476onx3g/Gallant.htm?dl=0</a> -Export Gallant to raw XML. Resulting XML file: <a href="https://www.dropbox.com/s/10bcykd7v0k0fmn/Gallant.xml?dl=0" rel="nofollow">https://www.dropbox.com/s/10bcykd7v0k0fmn/Gallant.xml?dl=0</a> -Use the above linked converter to turn that XML file into JSON, and paste into the textarea. Resulting error: "Cannot read properties of undefined (reading 'text')" So, to sum up: It's not necessarily just my workflow because that works to import creatures just fine. It's not just Leigh M's exporter plugin because exporting to raw XML and then converting that to JSON is also failing. To me, that strongly implies that there's something amiss in Hero Lab itself that's generating class-leveled characters that are not being recognized by the community pathfinder sheet. Anyone have any thoughts/experience/suggestions on what might be going wrong?
1645399401
vÍnce
Pro
Sheet Author
Hi San, The roll20 plug-in is the method I use. (I don't think the older method has worked for a while...)&nbsp; I use the Save Custom Output from HL, select "Roll20 Pathfinder".&nbsp; You should only have a .json text file at this point and that is all you should paste into the sheet HL import box.&nbsp; I noticed your dropbox file includes html code.&nbsp; That extra code will invalidate the json format.&nbsp; The hl export json starts with '{"document" :' and ends in a series of "}}}}".
Thanks for the response! A few points: -Yeah, I only used the old XML output as a double check to see if I could narrow down the cause that way. -Save Custom Output -&gt; Roll20 Pathfinder is exactly what I'm doing; however, it is exporting as a .htm file. So I've been using Notepad++ to open those .htm files and copy-paste the contents. I do in fact have what's being copy-pasted starting and ending with what you've got there. -Copy-pasting the contents of the .htm file exported when I export the "Deer" character works perfectly when I try to import it into roll20; doing the exact same thing with the "Gallant" character that has a class level and is a PC race fails with the above mentioned error. So while my workflow might be influencing it, something else seems to be amiss.
1645405686
vÍnce
Pro
Sheet Author
Not sure San...&nbsp; I can paste my exported hl character(.htm) into an online linter to test, and it passes with no errors.&nbsp; If I take just the json portion of your dropbox file from above and paste it into the linter, it errors out.&nbsp; So there seems to be something wrong with the exported file.&nbsp; You might try reinstalling the HL plugn . (fyi: browser may give a download warning)
I'll try that- but here's a little more digging that may be illuminating. I did find a class-leveled NPC in the encounter builder after much hunting and pecking that DID import without tweaks, no matter if I did it the current way or the old XML-&gt;JSON way, the city guard. So I sat about trying to manually build the closest character I could to the successfully importing character to try to winnow down where the error was happening. I've got it down to the point where literally the ooooonly change is the NPC information (book it's from and ecology. Check it out: The first text file imports successfully when copy-pasted into the importer in roll20, the second file does not. <a href="https://www.dropbox.com/s/zullnk9qqk9kw1u/Guard_DoesImport.txt?dl=0" rel="nofollow">https://www.dropbox.com/s/zullnk9qqk9kw1u/Guard_DoesImport.txt?dl=0</a> <a href="https://www.dropbox.com/s/phpnugzr4bzbkwa/Guard_NOTIMPORT.txt?dl=0" rel="nofollow">https://www.dropbox.com/s/phpnugzr4bzbkwa/Guard_NOTIMPORT.txt?dl=0</a> This is really weird, because opening up both in notepad++ at the same time and running a compare on them, there's only three differences: 1. One character is named City Guard 3, the other City Guard 2- hopefully trivial 2. The character that DOES import has a book source listed; "bookinfo" : {"_id" : "PZO9248","_name" : "Magnimar, City of Monuments"}, inbetween "_playername" and "race", which the character that doesn't import doesn't have. This info comes from the NPC tab in Hero Lab. 3. The character that DOES import has some NPC ecology listed; pasting from the start of the npc block to end-of-file, "npc" : {"description" : "", "basics" : "", "tactics" : "", "ecology" : {"npcinfo" : [{"_name" : "Ecology - Environment", "text" : "Any (Magnimar)"}, {"_name" : "Ecology - Organization", "text" : "Solitary, pair, patrol (3-5), or squad (6-10)"}, {"_name" : "Ecology - Treasure", "text" : "gear (masterwork scale mail, halberd, light crossbow with 20 bolts, sap, bullseye lantern, manacles, signal whistle, other treasure)"}]}, "additional" : ""}, "minions" : ""}}}} while the character that does NOT import has nothing in those fields: "npc" : {"description" : "", "basics" : "", "tactics" : "", "ecology" : "", "additional" : ""}, "minions" : ""}}}} Thanks again for trying to help; I'm going into as much detail as I can to try to make it easy as possible to see what might be messing up.
1645407040

Edited 1645407061
Slight update: Playing with the files, I can get the City Guard text file that DOESN'T import to successfully import IF AND ONLY IF I put in anything, even a single letter, into all three Ecology boxes in the NPC pane in Hero Lab. Take any of the three away and it goes right back to &lt;Cannot read properties of undefined (reading 'text')&gt; on import. I'm completely mystified now.
Final update: I have no idea what oddity is going on in the code to cause this, but I have found a workaround. Whatever is happening is only happening with characters that are set as NPCs in the configure your hero window in Hero Lab. Deleting all the information in the NPC tab for them and then changing them to be set as PCs in that window in Hero Lab results in a successful import. Why NPCs without class levels WON'T import, and NPCs with class levels WILL ONLY import for some combination of ecological information, is a mystery I don't understand coding enough to figure out, but... at least there's a workaround?