PDA

View Full Version : Duplicate Categories.



Slightly
November 3rd, 2009, 17:48
I've used the 4E Parser to strip out data from the DDI Compendium but am having a problem with how it displays inside FG.

Opening 1 module and examining the data in the Library shows everything as expected, but if I open a 2nd module that has different data but with the same category (for instance Player's Handbook and Martial Power both have Ranger Powers) it displays duplicate lists.

Using the above example it will display a category list (Level 1 At-wills, Level 1 Encounters, etc, etc) from Martial Power (it does it in alphabetical order of module) and then another list of the categories immediately below from Player's Handbook. However each category will contain the entries from both modules, so both 'Level 1 At-will' categories will have the powers from both books. Opening another module with more Ranger Powers adds more identical categories so I would now have 3 sets of the same categories.

Anyone encountered this problem or have any idea what could cause it?

I hope I've explained this properly :confused:

Tenian
November 3rd, 2009, 18:18
Set different values for Modestring when parsing the modules. Modules with the same Modestring are grouped together by default.

EugeneZ
November 4th, 2009, 00:28
Which, I might add, is pretty useless, at least in my campaigns. I have never needed to use this grouping, so coming up with modestrings for every module just makes me a little angry. Just a little, though.

Slightly
November 4th, 2009, 11:10
Ah I'd wondered what the Modestring box was for! Is there more to it than that or does it just determine module grouping in this manner?

That certainly gives a much more workable layout than I had before but I'm wondering if there's a way of getting the modules to group so Martial Power and Player's Handbook would both populate categories with entries when they contain identical categories but without making duplicate category listings?

Just to be clear I've attached a snap of what I'm seeing when I don't use Modestrings and have both my Player's Handbook and Martial Power modules open.

Tenian
November 4th, 2009, 12:28
If you set the modestring of the PHB to be "phb" and the modestring of Martial Power to be "mpower" that should fix the issue. As long as they are different they shouldn't merge like that.

Tenian
November 4th, 2009, 12:31
Which, I might add, is pretty useless, at least in my campaigns. I have never needed to use this grouping, so coming up with modestrings for every module just makes me a little angry. Just a little, though.

It's an artifact of the pre-2.2 release. Since 2.2 it's possible to build modules where this isn't needed. However I've kept the functionality in place to be backwards compatible.

I plan to have an option to update the XML version in the next release. It will probably default to the version where modestrings are no longer needed.

Slightly
November 4th, 2009, 14:23
If you set the modestring of the PHB to be "phb" and the modestring of Martial Power to be "mpower" that should fix the issue. As long as they are different they shouldn't merge like that.

It does fix it, although I was wondering if there's a different fix for it.

Basically, I like the way it fills the powers from both modules under the same categories on the same list. The list in the above screenshot can be accessed by clicking on Ranger Powers on either the PHB module or the MP one - they're the same. Setting different modestrings means I need to open two different lists to access the whole range of ranger powers though.

The problem with this though is that it's generating this single list of identical categories with the same entries in each of the identical categories. It seems to me like this is a bug perhaps?

Tenian
November 4th, 2009, 14:48
It's not a bug, that's how it's supposed to work.

The functionality you want is what the catalog option of the parser does, however the ruleset elements are not in place in 1.5.1 so you have no access to the results.

Slightly
November 4th, 2009, 15:17
It's not a bug, that's how it's supposed to work.

Then that's some odd design is it creates a ton of 100% redundant categories. Would I be right in thinking that it's part of the FG code rather than the 4E ruleset that causes this?


The functionality you want is what the catalog option of the parser does, however the ruleset elements are not in place in 1.5.1 so you have no access to the results.

Do you know if this will be implemented in the 2.0.1 ruleset?

Cheers for your help by the way, very much appreciated.

Tenian
November 4th, 2009, 15:31
To put it in simple terms, although the lists have the same title, they are not actually the same. Much like the 1969 Italian Job film is not the same as the 2003 Italian Job film even though they both have some similar elements.

Support for the catalog is currently in the 2.0.0 dev test build and has been for a while, I don't see any reason why it wouldn't reach the 2.0.0 official release.