Thread: Utility - Character Importer
-
March 13th, 2012, 06:10 #111
Update?
Thanks JKensai, at least I know it isn't just me.
Any updates JPG? I know you guys are busy with the NEW version of FG, so can appreciate if you haven't been able to swat this bug yet.
Thanks!
-
March 14th, 2012, 06:11 #112
- Join Date
- Mar 2012
- Posts
- 7
PFRPG Creature Parser V1.0.0.15 and FG Char Converter 2.8.1.K
So, I found mysefl with some debugging time and discovered something interesting. The very same char that I couldn't load with into FG Char Converter did load with PFRPG Creature Parser V1.0.0.15 and could be opened into the campaign and seemed to work ok although I noticed the attack block was munged up:
<atk http://<font color="#990000">tk</fon...g</b></font>">Kama +4 (1d4-1/20/x2) and Kama +4 (1d4-1/20/x2) and Nunchaku +4 (1d4-1/20/x2) and Nunchaku +4 (1d4-1/20/x2) and Quarterstaff +0 (1d4-1/20/x2) and Temple Sword +0 (1d6-1/19-20/x2) and Unarmed Strike +4 (1d4-1/20/x2) or Shuriken +4 ranged (1-1/20/x2)</atk>
... with the effect being that the entity had only two attack types. One big crazy one
Kama +4 (1d4-1/20/x2) and Kama +4 (1d4-1/20/x2) and Nunchaku +4 (1d4-1/20/x2) and Nunchaku +4 (1d4-1/20/x2) and Quarterstaff +0 (1d4-1/20/x2) and Temple Sword +0 (1d6-1/19-20/x2)
and
Shuriken +4 ranged (1-1/20/x2)
I don't know enough about what the FG2 schema is supposed to be for this but I tried changing all the "and" to "or" in the db.xml for the mod in case FG parsed this but that didn't seem to change anything. I guess I might need to reload the creature or something; I will play around with that.
Anyway, the important point here is that it seems that there's at least a path into FG2 for these non loading pathfinder chars but I still would like to get this char in as a PC somehow if possible using the converter.
thanks for any help
-
March 14th, 2012, 15:05 #113Originally Posted by JKensai
Originally Posted by JKensai
-
March 15th, 2012, 05:45 #114
- Join Date
- Mar 2012
- Posts
- 7
Originally Posted by Trenloe
Melee Kama +4 (1d4-1/20/x2) andwhich ends up as
Kama +4 (1d4-1/20/x2) and
Nunchaku +4 (1d4-1/20/x2) and
Nunchaku +4 (1d4-1/20/x2) and
Quarterstaff +0 (1d4-1/20/x2) and
Temple Sword +0 (1d6-1/19-20/x2) and
Unarmed Strike +4 (1d4-1/20/x2)
Ranged Shuriken +4 (1-1/20/x2)
Special Attacks Flurry of Blows -1/-1
<atk type="string">Kama +4 (1d4-1/20/x2) and Kama +4 (1d4-1/20/x2) and Nunchaku +4 (1d4-1/20/x2) and Nunchaku +4 (1d4-1/20/x2) and Quarterstaff +0 (1d4-1/20/x2) and Temple Sword +0 (1d6-1/19-20/x2) and Unarmed Strike +4 (1d4-1/20/x2) or Shuriken +4 ranged (1-1/20/x2)</atk><fullatk type="string">Kama +4 (1d4-1/20/x2) and Kama +4 (1d4-1/20/x2) and Nunchaku +4 (1d4-1/20/x2) and Nunchaku +4 (1d4-1/20/x2) and Quarterstaff +0 (1d4-1/20/x2) and Temple Sword +0 (1d6-1/19-20/x2) and Unarmed Strike +4 (1d4-1/20/x2) or Shuriken +4 ranged (1-1/20/x2)</fullatk><spacereach type="string">5ft./5ft.</spacereach><specialattacks type="string">Flurry of Blows -1/-1</specialattacks>
when PFRPG Creature Parser V1.0.0.15 is through with it. I guess these should all be one line each?? Like this:
<atk type="string">Kama +4 (1d4-1/20/x2)</atk>
<atk type="string">Nunchaku +4 (1d4-1/20/x2)</atk>
etc.
...or something like that? I may play around with changing the xml but I suspect this won't do much as there's a binary file for the mod it seems that was created by the creature parser and I'm guessing this is what FG2 is reading. I'm not sure how the author of the utility is creating this file.
You mentioned that PC and NPC are quite different, is there a schema for these available somewhere? It would be fun to try and write a parser for this to import from HL to FG2.
thanks
-
March 15th, 2012, 06:10 #115
- Join Date
- Mar 2012
- Posts
- 7
hey, I noticed a post elsewhere on the board that the mod file is really a zipfile sooo... I opened it up with 7-zip changed all the "and"s to "or"s in the attack block in the db.xml in the mod and wham it worked!
Now, what I really want to do is to import a PC but for that I think I'm going to have to figure out what the schema is (or find it on the site, still new to this place). If someone know please kindly point me in the right direction
thanks!
-
March 15th, 2012, 06:14 #116Originally Posted by JKensai
Originally Posted by JKensai
It isn't a binary file, it is a zipped db.xml (and associated files) as all FG .mod (and .ext) files are. Change the extension from .mod to .zip and you can open it up and have a look. You can also see the resulting db.xml and definition.xml that go to make this .mod file in a directory in the same location as the text file you read into the parser.
However, to get back to your original issue/question - you need to change the statblock textfile that is exported from HeroLab to have only the attacks you are interested in. The input to the parser has to be a correct statblock - otherwise how does the parser know that the input data is wrong and that it has to make corrections? It doesn't, and can't - as it would probably break more than it tries to fix. The old addage applies here - "garbage in equals garbage out". Make changes to the statblock and make sure this is correct and then reparse with the creature parser.
Originally Posted by JKensai
Originally Posted by JKensai
P.S. Sorry to everyone for hijacking the character importer thread with questions about the creature importer. Although, they are slightly related (ish).
-
March 15th, 2012, 06:25 #117Originally Posted by JKensai
As mentioned before - for importing creatures/NPCs from statblocks don't go down the route of editing the db.xml file after you've ran the creature importer, just make sure the statblock is right to start with - much easier, and you can save the statblock text file for later use when the creature importer is updated (like when I add NPC spell links when 2.9 is released).
For importing PCs, use the character importer utility that is what this thread is all about!
-
March 15th, 2012, 06:40 #118
- Join Date
- Mar 2012
- Posts
- 7
Originally Posted by Trenloe
And sorry everyone for dragging this a little offtopic (sort of), my initial intent was to help debug the Character Importer which fails to load the very same char that the Creater Parser can load. I now realize that this doesn't mean much since the schemas are different.
As for writing yet another parser, I learn best by doing so I was wanting to try my hand at importing PCs into FG2 since for some reason moon_wizard's char utility doesn't work on many of the PCs I'm working with at the moment. It's my hope that in trying to build a parser, I might be able to figure out why the current char utility doesn't work (yet).
I'm also wondering if there's a way to roundtrip characters (e.g from HL to FG2 to HL and back again). In other words keep FG2 resources and their HL counterparts in sync.
And mostly I want to play in FG!
-
March 15th, 2012, 06:58 #119Originally Posted by NJCommanderX
-
March 15th, 2012, 07:04 #120Originally Posted by JKensai
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks