RPTools.net

Discussion and Support

Skip to content

It is currently Fri Jul 28, 2017 1:36 am 






Reply to topic  [ 1 post ] 

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Giant
 
Joined: Fri Sep 09, 2011 3:41 am
Posts: 176
Location: Honolulu, HI
 Post subject: [Rumble 5.1.3] Bugfix: (LCB) PDF Parsing - RegEx
PostPosted: Mon Oct 24, 2011 3:26 am 
There are some issues with tokens that have a space at the end of the name. Honestly, I forget what the issues are, but I ran into them. I couldn't figure out why I kept getting a space at the end of the name until I was looking at the code for the PDF portion of the RegEx parser.

There are quick fix bugs here: the first is the space after the character name and the second is when you have a paragon path, epic destiny, or Hybrid Class it does not pick up the class at all. The fixes for both are below, but I decided to start using the Summary Importer rather than the PDF Importer after looking at the format of both, so this fix for Paragon/Epic Destiny just dumps it all into class. There is a better way to do this, but I can't see a benefit of doing the PDF import over doing the better formatted Summary import so I decided to stop work on it. If someone can give me a reason I've missed, I'll pick up where I left off.

Fix space after character name
1.) Find the Lib:RegExParser token and edit the PDFSheetParser macro.
2.) Change [h: nameId = strfind(text, "^(.*?)[0-9]+")] to:
Code:
[h: nameId = strfind(text, "^(.*?)\\s[0-9]+")]

Fix Issues when you have a Paragon Path or Epic Destiny
3.) Change [h:lcId = strfind(text, "([0-9]+)\\s(\w+)\\s[0-9,]+(?=<br>Character)")] to:
Code:
[h:lcId = strfind(text, "([0-9]+)\\s(.*)\\s[0-9,]+(?=<br>Character)")]

4.) Click OK

_________________
My stuff:
Translation (Font) Tool
Custom Mods for Rumble's 4e Framework


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 1 post ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman