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

Older script not working, can someone take a look?

This script <a href="https://app.roll20.net/forum/post/1072405/script-pathfinder-hero-labs-character-slash-monster-importer#post-1246970" rel="nofollow">https://app.roll20.net/forum/post/1072405/script-pathfinder-hero-labs-character-slash-monster-importer#post-1246970</a> was work great for quickly dropping in npcs to a game i have built and have put hours of work in to. Was wondering if someone could figure out what went wrong in the last few updates that could have caused this and help me out. The original writer has moved on to a new system and not working this any more.
James, Did this start failing after an update to Hero Labs? What is the error you are getting? Send me a PM with the xml file you are trying to import. Kevin
Problem was in the weapon damage dice logic, this specific NPC had 1d6+1d6 acid and was causing issues with the parsing logic. Will mark it as a known issue, but don't know when I will get back around to making a proper fix. Honestly the script could use a rewrite... it's messy but if someone actively playing Pathfinder wants to do that, feel free!
Just a note, to work around this issue you can search the xml for damage=" and find the offending weapon and remove the additional +1dX damage there, save it, then the import will work.