Showing posts with label Super Secret Project X. Show all posts
Showing posts with label Super Secret Project X. Show all posts

Thursday, September 17, 2009

In parser news.....

The new version (dubbed 4.0.0) is in testing. The biggest change is support for the compendium scrape (big surprise). I did add the "append" option and the ability to only extract certain types of information which were commonly requested during the SSPX Gen Con test.

So with the merger complete SSPX officially becomes dead. Alas, we barely knew you:


There are a few things I'd like to fix/adjust in the release beyond 4.0.0:

* Traps are still rough but the output is at least 80% of the way there. Getting that last 20% will take some effort and I don't want to hold it up for that as I feel extracting powers, monsters, feats, items, etc is worth a release.

* I skipped skills. It's one block of information from the PHB and the file format I use is crude to say the least (skills were the first formatted item I did).

* Classes were skipped as well. This is more a function of how the compendium lists the data and how I'd like it to be listed. The compendium lists everything by first appearance. So Fighter shows up in the PHB. As do all the fighter options like Battle Rager and Tempest. Really those should show up in Martial Power. I'm trying to figure out a good solution that doesn't involve scraping the entire class section every time.

* The selection method for combo items from the tree works poorly with a large number of choices (i.e. the source book selection) I'll have to rewrite that to use a context based combobox instead of just a context menu. The method provided is klunky but functional.

* Scraping requires you to enter your password before each scrape. This is so I don't have to store it, but it gets a bit annoying to key it in if you're going to scrape 50 different source books. (Believe me I know) Really after the initial release, I can't see people scraping more than 5 source books a month so it might be a non-issue.

* There are no scrape command files. I've considered this but at the moment I don't see a lot of need for anyone other than me to rescrape the same source book over and over. I've done it repeatedly for debugging purposes, but aside for errata or parser updates I can't see pulling the data over and over. For larger sets (like a PHB/AV/AV2) it's going to be way faster to change 4 or 5 powers by hand than to perform a complete rescrape. if you don't believe me, you will the first time you scrape the AV or AV2.

* I'd like to knock out bare bones class and race files based on the data scraped. It's unlikely it will include the dynamic keywords. I can probably add the Power name translations (i.e. powers with the Martial keyword are displayed as Exploits, Arcane as Spells, etc). It should be simple but my time is limited so it didn't make the cut.

I touched upon what I find to be an annoyance, but others may not care. Everything in the compendium is listed by source book that it was First Published in. I feel it should be listed under EVERY source book that contains it. If a monster appears in H2 and then was reprinted in the MM2, I feel it should show up if I tell the compendium I want to see the monsters in MM2. It doesn't. This is particularly annoying in modules/dungeon issues/RPGA adventures because you only get the "non-stock" NPCs.

If you're like me and want to build complete accurate representations of the source material, this will frustrate you. WOTC would have to change the way they organize the compendium. If this bothers you, I suggest you let them know.

Finally there is just no way for me to verify everything. Different source books sometimes have different underlying HTML formats (hell different powers in the same source book sometimes do). I think I've done most of the big books but I didn't extract every single issue of dungeon dragon, rpga adventure, etc. I certainly didn't sit there and verify every single stat block of the stuff I did extract and parse. It'd be foolish to expect them all to work without issue.

Monday, September 14, 2009

"Fun" with the integrated Parser and SSPX


I needed some sample data so I decided to scrape all the RPGA entries.....at least I found a bug in the process.

Tuesday, September 1, 2009

SSPX vs AV2


It took a few passes and some parser modifications but SSPX processed the AV2.

No manual file edits required:

Monday, August 31, 2009

Look out it's a ......


I spent some time fiddling around with the compendium output for traps. My debug engine seems to be processing them fairly well. I haven't made the routines that output it to a file or added the required information to pull them from the compendium en mass but those are both pretty easy. The hard part looks to be done.

And that is the last major piece of compendium data. There's still a few other items (skills deities, classes, glossary) Classes are poorly organized (i.e. not by sourcebook). Deities and Glossary are more "reference" than "mechanical" So that leaves Skills as something I might look at, especially since the ruleset has a class designed for them.

Then it's the death of SSPX as I integrate it into the parser

Tuesday, August 25, 2009

Rituals

After completing items, I started work on rituals. The big problem I see is there's no way to tell if it's a ritual or alchemy. That info just isn't present in the compendium. But I selected a random ritual (one that had a Prereq field) to test. I managed to write the functions required to handle this new data and the output looks pretty decent.
During lunch I updated the table header so it will be bold (not pictured) and modified the code to to mass scrape rituals from the compendium. I'll give it a try tonight and see what it outputs. Hopefully there is nothing odd in the ritual formatting across different books.

That will leave Traps, Skills, and possibly Classes to extract.

Monday, August 24, 2009

Items..items and more items

I've been doing test runs using SSPX and the AV. I've finally got it producing something usable. A lot of the AV information isn't presented as neatly as the AV book is laid out. The mount table for example is missing. Also the compendium's "Item Query" returns multiple types of data so really getting this working was as hard as getting any three other types of compendium data working.

Finally, and this is the painful part, the compendium lists each item/level separately. Really that's the most useful way to present it. However that means each stat block in the printed AV is (on average) 4 entries in the compendium. In fact the compendium AV returns close to 2900 results.

Now as some of you who played with scraping things like the PHB/Divine Power/etc might have noticed, larger datasets can take some time to scrape. In the case of the AV...it takes somewhere between an hour and an hour and a half to scrape. A lot of this time is actually spent delaying.

SSPX has a designed delay inbetween each query. Mostly so it plays nice with the wizards webserver and doesn't attempt to pound it to pieces. For small sets this isn't bad. For something of the AV's scale....it becomes annoying. Really it's still faster than doing it by hand.

Just remember when you're frustrated...that I had to run it well over a dozen times finding and fixing bugs before I got a successful parse out of it.

In parser news, I added a 1.5.1 parse option which moves the flavor text back into the formatted text block so it can be displayed on legacy rulesets. I also altered the handling of the compendium Enhancment: tag. It now handles "+1 AC" by placing "+1" in the bonus field and "AC" in the enhancement field which is what the PDF based data did.

Tuesday, August 18, 2009

Items

Well I finally got SSPX to handle Items. Items are unique in that there are 4 different types of data sets returned by the compendium: Equipment, Weapons, Armor, Magic items.

I tested with the Eberron Player's Guide and it all works except for a few errors. These are not parser/SSPX related....they are bad compendium data.

Check out:

http://www.wizards.com/dndinsider/compendium/item.aspx?id=620
http://www.wizards.com/dndinsider/compendium/item.aspx?id=4643
http://www.wizards.com/dndinsider/compendium/item.aspx?id=4617


Anyhow if I fix those I get:

Thursday, August 13, 2009

Release

I released a Free Compendium Gen Con version of the SSPX. In addition I had to release a new version of the parser to support some compendium specific quirks (and Divine Power/Eberron Players' Guide, Eberron Campaign Guide).


You can get SSPX here

You can get the parser here


Report any errors/issues over on this thread

Here's the change log for the parser:

Version History:
3.5.30
****************************Public Release: 8/13/2009 *****************
* Support for syntax found in the compendium on NPCs in Eberron that have required
* Support for syntax found in the compendium on Eberron mounts
* Templates updated to use simpler ZLINK formatting

3.5.29
* Support for stange aura syntax found in the compendium on NPCs like the Mourner

3.5.28
* Unified ZLINK syntax. Supported in both Story and Reference.

3.5.27
* Divine Power: Alchemy rituals match items if the ritual begins with "Create"

3.5.26
* Divine Power: Domain/Divinity Feats output into own groups

3.5.25
* Changed the grouping titles for powers to more accurately match printed materials

3.5.24
* Added ZFEATUREEND support so EugeneZ stops whining.

3.5.23
* Changed the source of background benefits to be "Background".

3.5.22
* Fixed duplicated text in background benefits in new power display winodws.

3.5.21
* Magic item powers now handle Trigger:

3.5.20
* Magic item parsing changes to work better with compendium
* Requirements: parsing for eberron magic items

3.5.19
* Fixed problem where elixir's without level arrays were not displayed in lists.

3.5.18
* Added @ qualifiers to map pin short cuts.

3.5.17
* Added support for ZPB,ZPF,ZPI markup shortcuts in story files. See Parser doc for details.

3.5.16
* Added support for ZFEATURE for story files.

3.5.15
* Flavor text split off the formatted description and returned as it's own element. This puts it on the correct place of the new power sheet.

3.5.14
* UI changes: Module directory should auto-detect and default. Directory selection should start at the parent of the last choice.

3.5.13
* UI Changes for Catalog mode.

3.5.12
* UI Changes for Catalog mode.

3.5.11
* Racial/Paragon/Epic lists added

3.5.10
* Basic class list built

3.5.9
* Basic catalog output

3.5.8
* Module Decompression and extraction for catalog

3.5.7
* Upgraded the trap Perception formatting routine to key off DC ##: instead of DC ## (Pendulum Scythes DMG)
* Added ZBREAK within lore to create multiple paragraphs while dealing with frames.

3.5.6
* Fixed a bug where the range numbers were removed from granted power.

3.5.5
* Support for all multi icons (MR,CA,MC,MA,RA,RC,RM,CM,AM,AR,CR) (NOTE: AC is not supported because AC is used for Armor Class in so many other places)
* Support for Minor action Attacks for Traps

Tuesday, August 11, 2009

Features

I rewrote one section of SSPX that was annoying me. Now it's easier to add new types of data to the program. I quickly knocked out the Paragon and Epic features. For tonight's test run I used the FR:Player's Guide. I did some spot checking and everything looks correct.

Monday, August 10, 2009

Racial

I added support for races to SSPX. This includes the "non-power" racial powers like Stand Your Ground.

Sunday, August 9, 2009

It's Divine!

I added support for extracting feats. I ran a few tests on various issues of Dragon (during which I found more Compendium errors). Then I moved on to Divine Power. Divine power added the extra wrinkle of Feat Powers not to mention a much wider variety of data.

Anyhow the picture shows the results of a run against Divine Power. I still had to make a class and race file but the bulk of the work was done by SSPX.

Saturday, August 8, 2009

Scrape Scrape Scrape

I finished the NPC portion of compendium extraction. I verified all the results from the Eberron Campaign Guide (and found a few errors in the compendium). Then I moved on to the MM and MM2. There were a few minor issues to take care of in the MM/MM2 but the changes were very small.

To get complete support of the Eberron:CG in place I had to make changes to the parser, mostly involving mounts, and the fact that the requirements now appear to be listed in the ([action][;trigger][;recharge]) block of npc powers

Anyhow here's a sample of the output. To generate these I made no changes to the file extracted from the compendium. All I had to tell the parser was the module name, the location of the scrape file, the category, and what temp directory I wanted to use.

Thursday, August 6, 2009

SSPX Phase Tango


I took a specialized selection of NPCs and save the HTML from the compendiu, I then ran the HTML though my new npc converter routines, attempting to "parsify" them. Each NPC was selected for a particular reason:

1) Beholder: those eyebeam powers look like crap without the backslash r embedding. I wanted to see if I could do that from the HTML

2) Angel of Valor: Whatever Angelic Presence is . This one still isn't 100% as it's not dropping the ZZX in the right spot yet. Plus it has a power without an icon (Fiery Blades)

3) Fire Archon Emberguard: It's a tutorial monster. Plus it has an aura

4) Firbolg Master of the Wild Hunt: Multi icon power (Mortal Strike).

So far they all look correct (except for the angelic presence). I should have that fixed soon. The next step will be automatic extraction, unfortunately I can't do that on my lunch hour at work as I don't have unlimited internet access.

I hope to do some larger scale tests this weekend.

Tuesday, August 4, 2009

Super Secret Project X

So I did a little digging and managed to create a tool that extracts all the power text for a given sourcebook (or issue of dragon) from the compendium. I used it for my DND Minis 2 module.

I also have done test runs on Divine Power and some other books. It's not ready for public consumption but soon......

Sunday, August 2, 2009

Back to reskinning

Now that I finished Divine Power and prep work for my Scales of War campaign, I'm back to reskinning and something I call "Secret project X". But no images of that yet, just reskins:


Magic Item Lists, NPC lists, and I added the ripped top to story entries. I kept with the Dungeon color scheme but lightened it up some. It was too difficult to see the link icon in the official color.