Thread: Import Collection
-
December 20th, 2022, 01:24 #11
pfsrd like AoN uses the pf stat block format, so it's more than similar, but the import doesn't work. Without knowing the exact way the hard coding works, it will be difficult to use any other source of stat blocks. I'd like to use it on other published stat blocks but that will be extremely difficult if I have to edit it to match whatever standard the AoN importer uses, I expect reading the code would help, but that shouldn't be necessary. I am hoping the developer can improve the code to be a bit more flexible in parsing the stat blocks so that it works on a wider set of sources.
-
December 20th, 2022, 01:52 #12
..back from reading code.
Ok, one change needed, ignore empty lines.
suggest change to .nextImportLine function to skip a blank line.
Testing using pfsrd cleric block above with blank lines manually removed allows the code to work as expected on this stat block.
-
December 20th, 2022, 02:05 #13
AoN Issues:
Using the AoN cleric example: https://www.aonprd.com/NPCDisplay.as...ic%20(Cultist)
The Spell-Like Abilities need to be separated from the spells because they are NOT in the spell list, they're under "special abilities" in FGU in the case of cleric domain powers. Because they don't match a spell name, they're not imported.
Also the spells don't take into account the standard list of suffixes used in pf stat blocks e.g. "D" for domain spells, any spell with a suffix is not imported. See CreatureLab for suffix detection code.
It would be nice if the feat description links were included in the "other" tab.Last edited by XenusUk; December 20th, 2022 at 02:14.
-
December 20th, 2022, 14:15 #14
Works fine for me (except the non-existent Domain Spell-Like Abilities). You have to start on the line "Cultist CR 2" and end on the line before "About", like I've written in the first post.
Thanks for reporting that, I'll get that pattern fixed.
Blank lines automatically are truncated before the import process even starts by CoreRPG functions. The posted Cleric works like I've written. If it's not working for you, please post the exact text you're trying to use.
Actually, pretty much everyhting on pfsrd should be supported (as giving out a 95% correct result), I just didn't go out of my way to test on their site.
I'll get that fixed.Last edited by Zarestia; December 20th, 2022 at 14:15. Reason: spelling
GitHub
Ruleset: FFd20
Extensions: Advanced Charsheet - Attack Modifiers - Big Portraits - Enhanced Skills - Legacy Items - Spell Action Info - Spell Record Actions - Tooltips
-
December 21st, 2022, 17:18 #15
Further testing:
I can't reproduce the problem with pfsrd copied enties, hopefully the issue I had has gone away.
Using AoN Local Celebrity
This line: Fort +2, Ref +4, Will +3; +4 vs. bardic performance, language-dependent, and sonic
THe circumstantial bonuses (bold) don't get converted.
Looking at FGU NPCs, these are placed under "SQ", so you'll need to append the other text that currently gets imported to that.
Tried to narrow down the issue on melee attacks not importing.
This line: Melee mwk rapier +5 (1d6+1/18–20) or whip +4 (1d3+1 nonlethal)
doers not import at all. If I remove from "or" onward the first attack imports. I assume this is the same issue I reported earlier.
Tested with Tome of Horrors Complete (pf version):
Didn't import the line: Environment any (Plane of Air)
General issue with import that if the stat block doesn't have explicit named sections (Offence, Defence, Attributes), that throws the import out by one line each time. You can manually work around by adding these lines.
Could you make these lines optional in the import and not advance a line when they're not present?
When the special abilities are read, any superfluous CR's are removed, making the text readable - this is great.
Tested with the Hound of Night stat block from Courts of the Shadow Fey. THis works pretty well. I had to remove some line breaks manually because the pdf formatting.
Issue with metamagic enhanced spells: At will—quickened dimension door (self only)
Line does not import. metamagic needs to be ignored and also the () limitation when matching spell name.
-
December 21st, 2022, 19:14 #16
Attack pattern for "or" is fixed, for now only in the Github repo, I'll upload a new version after I've fixed more things.
@XenusUK
Could you please either link the NPC statblocks, post the whole text or even screenshot the statblock?
With only those snippets, while still possible, it's troublesome to test/iterate.GitHub
Ruleset: FFd20
Extensions: Advanced Charsheet - Attack Modifiers - Big Portraits - Enhanced Skills - Legacy Items - Spell Action Info - Spell Record Actions - Tooltips
-
December 23rd, 2022, 18:37 #17
For most of these, just drop the line into/replacing a working import of your choice. I'll post full statblocks later.
Local Celebrity is here: https://www.aonprd.com/NPCDisplay.as...al%20Celebrity
-
December 23rd, 2022, 18:54 #18
The AoN statbloick for Aeriel Servant works fine: https://www.aonprd.com/MonsterDispla...rial%20Servant
Tome of Horrors works aparts from the Environment line, but I can't see the difference (minor bug?):
Aerial Servant CR 11
XP 12,800
N Medium outsider (air, elemental, extraplanar)
Init +10; Senses darkvision 60 ft.; Perception +19
Offense
AC 24, touch 16, flat-footed 18 (+6 Dex, +8 natural)
hp 138 (12d10+72)
Fort +10; Ref +14; Will +10
Defensive Abilities natural invisibility; DR 10/magic; Immune elemental traits
Defense
Speed 60 ft., fly 60 ft. (perfect)
Melee 2 slams +19 (2d8+6 plus grab)
Special Attacks constrict (2d8+6), wind blast
Attributes
Str 23, Dex 22, Con 23, Int 4, Wis 10, Cha 11
Base Atk +12; CMB +18 (+22 grapple); CMD 34
Feats Alertness, Combat Reflexes, Improved Initiative, Iron Will, Power Attack, Weapon Focus (slam)
Skills Fly +20, Knowledge (planes) +5, Perception +19, Stealth +20, Survival +12; Racial Modifiers +4 Survival
Languages Auran, Common
SQ improved tracking, link with caster
Environment any (Plane of Air)
Organization solitary
Treasure none
Improved Tracking (Ex) An aerial servant takes no penalty
to Survival checks when tracking and moving at any speed.
Link with Caster (Ex) When summoned, an aerial servant
creates a mental link between itself and the caster who
summoned it. Should the aerial servant fail the mission it
has been assigned, it returns to the caster and attacks him.
The aerial servant can find the caster as long as they both
are on the same plane of existence. If the caster leaves
the plane, the link is temporarily broken. Once the caster
returns or the aerial servant enters the plane the caster is on,
the link is immediately reestablished and the aerial servant
moves at full speed toward the caster’s current location.
Only when the aerial servant or caster is destroyed, is the
link permanently broken.
Natural Invisibility (Su) This ability is constant, allowing an
aerial servant to remain invisible even when attacking. This
ability is inherent and is not subject to the invisibility purge
spell. Against foes that cannot pinpoint it, the aerial servant
gains a +20 bonus on Stealth checks when moving, or +40
when standing still—these bonuses are not included in the
statistics above. This ability does not function when an aerial
servant is on the Astral Plane or Ethereal Plane, but instead
grants the creature concealment (20% miss chance).
Wind Blast (Su) Once every 1d4 rounds, as a standard
action, an aerial servant can release a blast of wind in an
80-foot line. A creature struck takes 4d8 points of damage
and those up to the aerial servant’s size or smaller are
knocked down and back 2d10 feet. An affected creature
can attempt a DC 22 Reflex save to reduce the damage
by half and avoid being knocked down. The save DC is
Constitution-based.
-
December 23rd, 2022, 19:29 #19GitHub
Ruleset: FFd20
Extensions: Advanced Charsheet - Attack Modifiers - Big Portraits - Enhanced Skills - Legacy Items - Spell Action Info - Spell Record Actions - Tooltips
-
December 23rd, 2022, 19:37 #20
That was my edit snafu, the pdf omits these lines, so I had to put something in to align the block to the expected layout, basically anything works as filler.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks