You can also use IE to validate the correctness of the XML.
Printable View
You can also use IE to validate the correctness of the XML.
Right. I decided to hunt a bit more in the forums, downloaded Notepad++, and ran the XML "spellchecker".
Problem found and solved. No more blank library entries.
I have a DDI account and I have used the parser (which is awesome!).
My questions are these: I've "scraped" the players 1 hand book. When I try to parse it, it gets hung up on on "/r" characters. I went through the powers.txt file and did a search and replace for "/r" with " " (a space) and that worked find, and then parsed fine. But have I messed something up? What is the "/r" for and is removing it bad?
Also, when I do a scrape of the players hand book 1, I don't get regular equipment, regular armor, or regular weapons (I just get magical stuff). Where are they and how do I get them?
Lastly, I see refrences int eh forums and via google to some website called fourulgymonsters (or something close to that) website, but when I click links to the site, it appears that that site is gone. Is there a new site name?
I don't know if this matters but I am using windows 7 32 bit and version 2.7.1 of FG2
Hey, if you guys ever finished those modules for 3.4 about general content found in the books, or that drag and drop modifier module let me know. I have been looking for some of that content. :)
"/r" adds a newline. Removing them all will force all text blocks within powers to be displayed as a single block. Not ideal as some powers with multi-part descriptions benefit from having the newlines as it aids readability.Quote:
Originally Posted by Jundle
If the Parser is complaining its better to try an locate the specific instance thats causing the error rather than removing them all. Try parsing the Powers node only (right click the Powers/Feats/Features/Backgrounds Node and select Parse) and browse the outputed XML to see if you end up with any corrupted power entries, these are usually signified by powers which names include the other elements of the powers description i.e. extra long names.
If all is well with the DDI Compendium database then the parser should have generated armor.txt, equipment.txt, weapons.txt and magic.txt output files. These files should contain magicial and mundane items.Quote:
Originally Posted by Jundle
Note: The DDI Database was recently updated and some of the meta-data for the content changed causing referencing problems. Recent updates from the DDI service indicate the database will not be updated until October 2010 therefore it maybe sometime before your able to scrape again without problems.
I believe the FourUglyMonsters or FUM site has been down for the last day or so. No news that I have seen so far on any new site details.Quote:
Originally Posted by Jundle
It did create and armor, equipment, and weapons txt files, but they were 0 kb and nothing was in them (I have done this scrape a couple of times over the past few days to learn this process).Quote:
If all is well with the DDI Compendium database then the parser should have generated armor.txt, equipment.txt, weapons.txt and magic.txt output files. These files should contain magicial and mundane items.
Note: The DDI Database was recently updated and some of the meta-data for the content changed causing referencing problems. Recent updates from the DDI service indicate the database will not be updated until October 2010 therefore it maybe sometime before your able to scrape again without problems.
What I can do, though, is open the items up directly from the DDI. Is there a good smooth way to copy the info into FG2 from accessing the DDI website through my Web Browser (I.E. where all the formatting gets done for me mostly, and I'm jsut copying and pasting)?
Are you running the latest version of the Parser?
If not, download the latest version (v4.0.103) from here and try again.
I am running the latest version. I think your meta tagging comment is spot on. When I do a search (via the DDI web browser gui) for everything, then filter by playershandbook and weapon, I can't find battleaxe. but when i do a search for that specific key word, it comes up. So I'm guessing non magical items in the players hand book got fumbled up.
But would there be a way to do a copy and paste via the web site?
Also, when I look through the magic item table in FG2 (now that I've parsed my stuff from the PH1 into it), the "Enhancement" portion of the items doesn't show the "+(number)". Example: "Enhancement attack rolls and damage rolls" That was from "Magic Weapon +1" in the Magic Item Table. I assume that the formatting in the txt file is slightly off. Any suggestions on what I can do to adjust this?
I guess you could hand cut n paste the content you require into the Parser specific format (see the Parser Document.txt file that accompanies the Parser for syntax and description of the content format required). However this is a somewhat longwinded approach, still if your not prepared to wait until October it might be your only option at the moment.
In regards to the above, does anyone know what may be causing this and.or how to fix it?Quote:
when I look through the magic item table in FG2 (now that I've parsed my stuff from the PH1 into it), the "Enhancement" portion of the items doesn't show the "+(number)". Example: "Enhancement attack rolls and damage rolls" That was from "Magic Weapon +1" in the Magic Item Table. I assume that the formatting in the txt file is slightly off. Any suggestions on what I can do to adjust this?
The above should have said 'Example: "Enhancement attack rolls and damage rolls" which should have been "Enhancement +1 attack rolls and damage rolls"'Quote:
Example: "Enhancement attack rolls and damage rolls" That was from "Magic Weapon +1" in the Magic Item Table
Hi Zeuss - thx for the good work with the parser! I notice messages like 'Missing NPC token for...' while parsing DDI Material. Is there a good way to get token items from anywhere?
all the best, halbert
They just did an update to their site and I tried scraping the Players Handbook again and received not data in reference to non-magical items (i.e. regular swords, regular armor, etc...)Quote:
still if your not prepared to wait until October it might be your only option at the moment.
Anyone have any ideas on how i can fix this?
ive also encountered problems when trying to parse player handbook.
I'm using the latest version of the 4EParser (4.0.118.0) and am running into the following error when I try to parse a scrape of the Player's Handbook from D&DI.
Here is what shows up in the txt file:Quote:
4/12/2011 6:56:37 AM : ERROR:System.Xml.XmlException: The '<' character, hexadecimal value 0x3C, cannot be included in a name. Line 7, position 21.
<root version="2.2">
<!-- Modified from existing reference guide by JMnITup -->
<item>
<category name="Player's Handbook" mergeid="" baseicon="2" decalicon="1">
*** <curseforgedarmor<spanclass=_milevel_>level3uncomm on_001>
<name type="string">Curseforged Armor<span class="milevel">Level 3 Uncommon +1</name>
<class type="string">Armor</class>
<subclass type="string">Chain, Scale</subclass>
<level type="number"> 1</level>
<cost type="string">680 gp</cost>
All of the magic items I scraped follow the same format, so I'm sure as soon as I fix this one I'll need to fix all the rest. Any ideas as to what the fix would be?Quote:
Curseforged Armor<span class="milevel">Level 3 Uncommon Level 1+
In ancient days, the tieflings poured their bitterness into their forges as a lesson to those who would betray them.
Price: 680 gp Armor: Chain, Scale Enhancement: +1 AC
Power (Daily): Immediate Reaction. You can trigger this power when an enemy hits you with an attack. That enemy takes a –2 penalty to attack rolls (save ends). When the enemy saves against the penalty, the enemy takes a –1 penalty to attack rolls (save ends).
I believe the string "<span class="milevel">" is what's causing the issue. Most had the same issue so make a backup of the scrape, so you have a backup of the raw scrape, then go in with a text editor and anywhere you find the string "<span class="milevel">" replace it with a single space.Quote:
Originally Posted by dihmwhit
Some text editors like Notepad+ or my favorite EditPlus have a Search & Replace function where you enter the string and the replacement. Let it scan the entire doc and do it's thing then save and re-parse and see if that helps.
For that matter, I get errors trying to parse the Monster Manual too.
Quote:
4/12/2011 7:45:24 AM : ERROR:System.Xml.XmlException: The 'h1' start tag on line 23705 does not match the end tag of 'languages'. Line 23705, position 56.
<powertype type="string">M</powertype>
<mm3mode type="number">1</mm3mode>
</id-00003>
</powers>
<alignment type="string">unaligned</alignment>
*** <languages type="string">-<h1 class="atwillpower"></languages>
<skills type="string">Stealth +13</skills>
<strength type="number">22</strength>
<constitution type="number">18</constitution>
<dexterity type="number">11</dexterity>
Awesome, that worked perfect. I wasn't sure if it was an element that needed to stay for the parser or not, but I guess not!Quote:
Originally Posted by Ictinike
Edit: It appears removing the h1 class issue from 2 places worked, so that problem is solved too (I hope). Thanks for the speedy reply.
You have an open H1 tag inside your languages tag. You have to have a closure because of the XML standards.
*** <languages type="string">-<h1 class="atwillpower"></languages>
Something like:
*** <languages type="string"><h1 class="atwillpower">-</h1></languages>
I am getting this message when trying to parse the files I downloaded from DDI for the MM1. :
6/28/2011 8:27:31 PM : ERROR:System.Xml.XmlException: The 'p' start tag on line 167 does not match the end tag of 'equipment'. Line 167, position 84.
<constitution type="number">31</constitution>
<dexterity type="number">25</dexterity>
<intelligence type="number">12</intelligence>
<wisdom type="number">29</wisdom>
<charisma type="number">14</charisma>
*** <equipment type="string">lightning sword, flaming whip<p class="publishedIn"></equipment>
<token type="token">tokens/MonsterManual/balor.png@MonsterManual</token>
</balor>
<abolethlasher>
6/28/2011 8:27:31 PM : Checking XML
Thanks for any help you can provide :)
This line of xml is missing the closing </p>. It should look something like this.Quote:
Originally Posted by khersheyjr
<equipment type="string">lightning sword, flaming whip<p class="publishedIn">some text</p></equipment>
The cause of the problem is the item entry in the item text file you are attempting to parse. There are many problems with the data scrapped from the Compendium that need to be tied up or fixed to parse without error.
For a quick fix you can simply edit the xml output in Notepad or other such text editor. But if you intend to use this file again in the future you should aim to fix the item entry the text file or you will get this error everytime you attempt to parse it.
Hi
I just bought FG2 full license, and am now trying to using the tutorial for using the 4E Parser. I've followed the tutotrial and added my dndi password and started scraping. It starts, but after 1-2 minutes the process stops and reports the following problem (its written in norwegian, but translates something like this):
"The external server returned the following error (500) internal server error"
I get the option to ignore this error and attempt to continue, but doing so does not start or completes the process.
Has anyone else had this same problem? Any solutions?
There is a known problem when scrapping items that can cause this error using version 4.0.118.0.
Try scrapping the resource again but make sure items is set to no
See these threads for more info about the problem and forthcoming fix.
Thank you, that worked!
Only now I get another error. I'm using the tutorial in this thread, but when I start parsing I get the following error:
02.07.2011 13:19:42 : ERROR:System.Xml.XmlException: The startcode p on line 59 does not correspond to endcode for td.line 59, location 755.
<recharge type="string">Daily</recharge>
<keywords type="string">Arcane, Implement, Varies, Zone</keywords>
<action type="string">Standard Action</action>
<range type="string">Close blast 5</range>
<source type="string">Ninefold Master Attack 20</source>
*** <description type="formattedtext"><table><tr><td><b>Target:</b>Each creature in the blast</td></tr></table><table><tr><td><b>Attack:</b>Intelligence or Charisma vs. Reflex</td></tr></table><table><tr><td><b>Hit:</b>3d8 + Intelligence modifier or Charisma modifier damage. The damage is the same type as any type you can deal with your dragon breath.</td></tr></table><table><tr><td><b>Effect:</b>The blast becomes a zone that lasts until the end of your next turn. A creature that enters or starts its turn in the zone takes 10 damage of the same type as the initial attack's damage. As a move action, you can move the zone 3 squares.</td></tr></table><table><tr><td><b>Sustain Minor:</b> The zone persists. </td></tr><tr><td><p class="publishedIn"></td></tr></table><p><b>Paragon Path:</b>Ninefold Master</p></description>
<shortdescription type="string">Target: Each creature in the blast; Attack: Intelligence or Charisma vs. Reflex; Hit: 3d8 + Intelligence modifier or Charisma modifier damage. The damage is the same type as any type you can deal with your dragon breath.; Effect: The blast becomes a zone that lasts until the end of your next turn. A creature that enters or starts its turn in the zone takes 10 damage of the same type as the initial attack's damage. As a move action, you can move the zone 3 squares.; Sustain Minor: The zone persists. \r<p class="publishedIn"></shortdescription>
<class type="string">Paragon</class>
<powertype type="string">Attack</powertype>
<level type="number">20</level>
<paragonpath type="string">Ninefold Master</paragonpath>
Im not very good at this, but hopefully someone can point me to a suggestion in order to fix this?
Appreciate the help so far!
See what GMTroll says in post #60 in this thread.Quote:
Originally Posted by ulsund
You have at least one "<p class="publishedIn">" entry that doesn't have the closing </p>.
Thank you! Ill give it a try!
It worked, fantastic!
I have now tried the same with the Monster Manual. This time I get the following error:
ERROR:System.Xml.XmlException: is an unexpected token. Expected token is "or". Line 525, location 67.
<constitution type="number">31</constitution>
<dexterity type="number">25</dexterity>
<intelligence type="number">12</intelligence>
<wisdom type="number">29</wisdom>
<charisma type="number">14</charisma>
*** <equipment type="string">lightning sword, flaming whip<p class=“publishedIn”></p></equipment>
<token type="token">tokens/Monster Manual/balor.png@Monster Manual</token>
</balor>
<abolethlasher>
Are anyone familiar with this type of error?
@ulsund: As GMTroll and Trenloe have said.
You have at least one other instance of a <p class=“publishedIn”></p> tag in your scraped data. Note the “ ” instead of the " " characters.
Adjust your global search and remove them all.
Thank you again. It worked. You guys are fantastic!
Sorry to aks again, but I got another problem with the Monster Manual. This time:
ERROR:System.Xml.XmlException: startcode h1 on line 23705 does not correspond to the end code for languages. Line 23705, location 56.
<powertype type="string">M</powertype>
<mm3mode type="number">1</mm3mode>
</id-00003>
</powers>
<alignment type="string">unaligned</alignment>
*** <languages type="string">-<h1 class="atwillpower"></languages>
<skills type="string">Stealth +13</skills>
<strength type="number">22</strength>
<constitution type="number">18</constitution>
<dexterity type="number">11</dexterity>
Thanks in advance!
What the error message is trying to tell you is that it has found and opening and closing tag mismatch. In plain speak there is a missing </h> tag. Should look like thisQuote:
Originally Posted by ulsund
<languages type="string">-<h1 class="atwillpower"></h1></languages>
In XML all tags must be closed. Most tags have open and closing pairs for example <h1> is the opening tag and </h1> is the closing tag. And the order in which this is done is also important. There are also self-closing tags which look like <selfClosing />.
More detailed discussions, examples and tutorials of XML can be found all over the net.
I would just remove the offending <h1 class="atwillpower"> tag altogether. Its not needed in the equipment field of an NPC.
Thank you again. It works now:). Still geting more errors, this time on the DMG. I will try to figure it out, as it is good for my learning curve:)