PDA

View Full Version : [Tenian's Parser] Long Nodes question



primarch
August 15th, 2010, 05:17
Hi!

I'm making a module that spans all the dragon magazines. While parsing there is a phase where it is detecting long nodes and lists the long nodes it detects, then the parser basically stops (no module is made).

How do you remedy this long nodes?

Just how would you shorten the names (if that's the way to do it)?

Primarch

Zeus
August 15th, 2010, 08:28
Sometimes if the expected format of the content is not whats encountered by the Parser it will mash together multiple lines assuming this is the name of the contents entry. This results in extra long XML nodes being created which the newer versions of the Parser detect and report on. In previous releases the long tags were not detected and thus it was possible to load the modules into FGII. With long node names present, when accessed the modules would cause FGII to crash.

The Parser should indicate which entries are causing problems by highlighting the names in the processing output window. Using these references you need to step through your source files and correct the format/syntax errors.

If you post the messages you are seeing we can help diagnose where the problems lie as well as possibly help resolve the syntaxt/format problem.

primarch
August 15th, 2010, 16:21
Hi!

Here is the list of long nodes: (shortened to fit post)

8/15/2010 10:06:12 AM : Long node detected.powerOneForAllGatekeeperOfTheGoldenPalace Feature16WhenYouEndYourTurnEachAllyAdjacentToYouCa nMakeASavingThrow_
8/15/2010 10:06:12 AM : Long node detected.powerOneForAllGatekeeperOfTheGoldenPalace Feature16WhenYouEndYourTurnEachAllyAdjacentToYouCa nMakeASavingThrow_
8/15/2010 10:06:12 AM : Long node detected.powerIgniteTheForgeGatekeeperOfTheGoldenP alaceAttack11DivineFlamesCourseAheadOfYourAttackAn dLeapToYourFriendsWeaponsAndImplementsWreathingThe mInShiningFlame_Encounter_DivineFireRadiant_Implem entOrWeapon
8/15/2010 10:06:12 AM : Long node detected.powerEffect_YouGainDraconicWingsThatProvi deYouWithFly5_hover_UntilTheEndOfTheEncounter_Scal e-BreakerPathFeatures
8/15/2010 10:06:11 AM : Long node detected.powerEffect_YouGainDraconicWingsThatProvi deYouWithFly5_hover_UntilTheEndOfTheEncounter_Scal e-BreakerPathFeatures
8/15/2010 10:06:11 AM : Long node detected.c1familiarprerequisitesarcanefamiliar16th levelorhigherutilitypowerfamiliarprerequisitesarca nefamiliar16thlevelorhigherutilitypowerfeats
8/15/2010 10:06:11 AM : Long node detected.StrengthInNumbersGatekeeperOfTheGoldenPal aceFeature11YouAndAnyAllyAdjacentToYouGainABonusTo SavingThrowsEqualToTheNumberOfAlliesAdjacentToYou_
8/15/2010 10:06:11 AM : Long node detected.StrengthInNumbersGatekeeperOfTheGoldenPal aceFeature11YouAndAnyAllyAdjacentToYouGainABonusTo SavingThrowsEqualToTheNumberOfAlliesAdjacentToYou_
8/15/2010 10:06:11 AM : Long node detected.CommunalActionGatekeeperOfTheGoldenPalace Feature11YouCanSpendAnActionPointToGiveAnAllyAdjac entToYouAnActionPoint_
8/15/2010 10:06:11 AM : Long node detected.CommunalActionGatekeeperOfTheGoldenPalace Feature11YouCanSpendAnActionPointToGiveAnAllyAdjac entToYouAnActionPoint_
8/15/2010 10:06:11 AM : Long node detected.HestavarsBlessingGatekeeperOfTheGoldenPal aceUtility12YouSwayAnAllysFortuneWithASimpleBlessi ngFromTheBrightCity_Encounter_Divine
8/15/2010 10:06:11 AM : Long node detected.HestavarsBlessingGatekeeperOfTheGoldenPal aceUtility12YouSwayAnAllysFortuneWithASimpleBlessi ngFromTheBrightCity_Encounter_Divine
8/15/2010 10:06:11 AM : Long node detected.CitizensArrestGatekeeperOfTheGoldenPalace Attack20YouAreWreathedInCracklingBoltsOfErathisMig htEmpoweringYourNormalSpellsOrAttacks_AsYouSpendTh ePowerItLeavesASparkInEachOfYourAllies_Daily_Divin eRadiant_ImplementOrWeapon
8/15/2010 10:06:11 AM : Long node detected.CitizensArrestGatekeeperOfTheGoldenPalace Attack20YouAreWreathedInCracklingBoltsOfErathisMig htEmpoweringYourNormalSpellsOrAttacks_AsYouSpendTh ePowerItLeavesASparkInEachOfYourAllies_Daily_Divin eRadiant_ImplementOrWeapon
8/15/2010 10:06:11 AM : Long node detected.IgniteTheForgeGatekeeperOfTheGoldenPalace Attack11DivineFlamesCourseAheadOfYourAttackAndLeap ToYourFriendsWeaponsAndImplementsWreathingThemInSh iningFlame_Encounter_DivineFireRadiant_ImplementOr Weapon
8/15/2010 10:06:11 AM : Long node detected.IgniteTheForgeGatekeeperOfTheGoldenPalace Attack11DivineFlamesCourseAheadOfYourAttackAndLeap ToYourFriendsWeaponsAndImplementsWreathingThemInSh iningFlame_Encounter_DivineFireRadiant_ImplementOr Weapon
8/15/2010 10:06:11 AM : Long node detected.Effect_YouGainDraconicWingsThatProvideYou WithFly5_hover_UntilTheEndOfTheEncounter_Scale-BreakerPathFeatures
8/15/2010 10:06:11 AM : Long node detected.Effect_YouGainDraconicWingsThatProvideYou WithFly5_hover_UntilTheEndOfTheEncounter_Scale-BreakerPathFeatures
8/15/2010 10:06:11 AM : Long node detected.powerHestavarsBlessingGatekeeperOfTheGold enPalaceUtility12YouSwayAnAllysFortuneWithASimpleB lessingFromTheBrightCity_Encounter_Divine
8/15/2010 10:06:11 AM : Long node detected.powerHestavarsBlessingGatekeeperOfTheGold enPalaceUtility12YouSwayAnAllysFortuneWithASimpleB lessingFromTheBrightCity_Encounter_Divine
8/15/2010 10:06:11 AM : Long node detected.powerCitizensArrestGatekeeperOfTheGoldenP alaceAttack20YouAreWreathedInCracklingBoltsOfErath isMightEmpoweringYourNormalSpellsOrAttacks_AsYouSp endThePowerItLeavesASparkInEachOfYourAllies_Daily_ DivineRadiant_ImplementOrWeapon
8/15/2010 10:06:11 AM : Long node detected.powerCitizensArrestGatekeeperOfTheGoldenP alaceAttack20YouAreWreathedInCracklingBoltsOfErath isMightEmpoweringYourNormalSpellsOrAttacks_AsYouSp endThePowerItLeavesASparkInEachOfYourAllies_Daily_ DivineRadiant_ImplementOrWeapon
8/15/2010 10:06:11 AM : Long node detected.powerIgniteTheForgeGatekeeperOfTheGoldenP alaceAttack11DivineFlamesCourseAheadOfYourAttackAn dLeapToYourFriendsWeaponsAndImplementsWreathingThe mInShiningFlame_Encounter_DivineFireRadiant_Implem entOrWeapon
8/15/2010 10:06:11 AM : Long node detected.powerIgniteTheForgeGatekeeperOfTheGoldenP alaceAttack11DivineFlamesCourseAheadOfYourAttackAn dLeapToYourFriendsWeaponsAndImplementsWreathingThe mInShiningFlame_Encounter_DivineFireRadiant_Implem entOrWeapon
8/15/2010 10:06:11 AM : Long node detected.powerOneForAllGatekeeperOfTheGoldenPalace Feature16WhenYouEndYourTurnEachAllyAdjacentToYouCa nMakeASavingThrow_
8/15/2010 10:06:11 AM : Long node detected.powerOneForAllGatekeeperOfTheGoldenPalace Feature16WhenYouEndYourTurnEachAllyAdjacentToYouCa nMakeASavingThrow_
8/15/2010 10:06:11 AM : Long node detected.powerStrengthInNumbersGatekeeperOfTheGold enPalaceFeature11YouAndAnyAllyAdjacentToYouGainABo nusToSavingThrowsEqualToTheNumberOfAlliesAdjacentT oYou_
8/15/2010 10:06:11 AM : Long node detected.powerStrengthInNumbersGatekeeperOfTheGold enPalaceFeature11YouAndAnyAllyAdjacentToYouGainABo nusToSavingThrowsEqualToTheNumberOfAlliesAdjacentT oYou_
8/15/2010 10:06:11 AM : Long node detected.powerCommunalActionGatekeeperOfTheGoldenP alaceFeature11YouCanSpendAnActionPointToGiveAnAlly AdjacentToYouAnActionPoint_
8/15/2010 10:06:11 AM : Long node detected.powerCommunalActionGatekeeperOfTheGoldenP alaceFeature11YouCanSpendAnActionPointToGiveAnAlly AdjacentToYouAnActionPoint_
8/15/2010 10:06:11 AM : Long node detected.powerEffect_YouGainDraconicWingsThatProvi deYouWithFly5_hover_UntilTheEndOfTheEncounter_Scal e-BreakerPathFeatures
8/15/2010 10:06:11 AM : Long node detected.powerEffect_YouGainDraconicWingsThatProvi deYouWithFly5_hover_UntilTheEndOfTheEncounter_Scal e-BreakerPathFeatures
8/15/2010 10:06:11 AM : Long node detected.powerOneForAllGatekeeperOfTheGoldenPalace Feature16WhenYouEndYourTurnEachAllyAdjacentToYouCa nMakeASavingThrow_
8/15/2010 10:06:11 AM : Long node detected.powerOneForAllGatekeeperOfTheGoldenPalace Feature16WhenYouEndYourTurnEachAllyAdjacentToYouCa nMakeASavingThrow_
8/15/2010 10:06:11 AM : Long node detected.powerStrengthInNumbersGatekeeperOfTheGold enPalaceFeature11YouAndAnyAllyAdjacentToYouGainABo nusToSavingThrowsEqualToTheNumberOfAlliesAdjacentT oYou_
8/15/2010 10:06:11 AM : Long node detected.powerStrengthInNumbersGatekeeperOfTheGold enPalaceFeature11YouAndAnyAllyAdjacentToYouGainABo nusToSavingThrowsEqualToTheNumberOfAlliesAdjacentT oYou_
8/15/2010 10:06:11 AM : Long node detected.powerCommunalActionGatekeeperOfTheGoldenP alaceFeature11YouCanSpendAnActionPointToGiveAnAlly AdjacentToYouAnActionPoint_
8/15/2010 10:06:11 AM : Long node detected.powerCommunalActionGatekeeperOfTheGoldenP alaceFeature11YouCanSpendAnActionPointToGiveAnAlly AdjacentToYouAnActionPoint_
8/15/2010 10:06:11 AM : Long node detected.powerHestavarsBlessingGatekeeperOfTheGold enPalaceUtility12YouSwayAnAllysFortuneWithASimpleB lessingFromTheBrightCity_Encounter_Divine
8/15/2010 10:06:11 AM : Long node detected.powerHestavarsBlessingGatekeeperOfTheGold enPalaceUtility12YouSwayAnAllysFortuneWithASimpleB lessingFromTheBrightCity_Encounter_Divine
8/15/2010 10:06:11 AM : Long node detected.powerCitizensArrestGatekeeperOfTheGoldenP alaceAttack20YouAreWreathedInCracklingBoltsOfErath isMightEmpoweringYourNormalSpellsOrAttacks_AsYouSp endThePowerItLeavesASparkInEachOfYourAllies_Daily_ DivineRadiant_ImplementOrWeapon
8/15/2010 10:06:11 AM : Long node detected.powerCitizensArrestGatekeeperOfTheGoldenP alaceAttack20YouAreWreathedInCracklingBoltsOfErath isMightEmpoweringYourNormalSpellsOrAttacks_AsYouSp endThePowerItLeavesASparkInEachOfYourAllies_Daily_ DivineRadiant_ImplementOrWeapon
8/15/2010 10:06:11 AM : Long node detected.powerIgniteTheForgeGatekeeperOfTheGoldenP alaceAttack11DivineFlamesCourseAheadOfYourAttackAn dLeapToYourFriendsWeaponsAndImplementsWreathingThe mInShiningFlame_Encounter_DivineFireRadiant_Implem entOrWeapon
8/15/2010 10:06:11 AM : Long node detected.powerIgniteTheForgeGatekeeperOfTheGoldenP alaceAttack11DivineFlamesCourseAheadOfYourAttackAn dLeapToYourFriendsWeaponsAndImplementsWreathingThe mInShiningFlame_Encounter_DivineFireRadiant_Implem entOrWeapon
8/15/2010 10:06:11 AM : Long node detected.powerEffect_YouGainDraconicWingsThatProvi deYouWithFly5_hover_UntilTheEndOfTheEncounter_Scal e-BreakerPathFeatures
8/15/2010 10:06:11 AM : Long node detected.powerEffect_YouGainDraconicWingsThatProvi deYouWithFly5_hover_UntilTheEndOfTheEncounter_Scal e-BreakerPathFeatures


I know where the powers are located in the magic items file, however, I'm not sure what the problem is since they do don't look all that different from other powers nearby it.

Another problem I have encountered is this


ERROR:System.Xml.XmlException: The '»' character, hexadecimal value 0xBB, cannot be included in a name. Line 91203, position 5.

<mitype type="string">other</mitype>
</symbolofscornedfate_030>

</magicitemdesc>
<ritualdesc>
*** <-ritual>
<name type="string">-Ritual</name>
<details type="formattedtext">
<p></p>
</details>
</-ritual>

It is a problem with the ritual file, since once I remove it from being parsed I do not get the error. I've looked it over and cannot really find the problem here either.

Any help appreciated thanks!

Primarch

primarch
August 15th, 2010, 17:13
Hi!

I have excised and posted the problematic feats and powers here:

Communal Action Gatekeeper of the Golden Palace Feature 11
You can spend an action point to give an ally adjacent to you an action point.

Strength in Numbers Gatekeeper of the Golden Palace Feature 11
You and any ally adjacent to you gain a bonus to saving throws equal to the number of allies adjacent to you.

One for All Gatekeeper of the Golden Palace Feature 16
When you end your turn, each ally adjacent to you can make a saving throw.

Ignite the Forge Gatekeeper of the Golden Palace Attack 11
Divine flames course ahead of your attack and leap to your friends weapons and implements, wreathing them in shining flame.

Encounter ? Divine, Fire, Radiant ; Implement or Weapon
Standard Action Personal
Effect: You use an at-will attack power. If you hit, the damage is fire and radiant damage. Each ally adjacent to you gains a +5 power bonus to damage rolls until the end of your next turn and the damage they deal is fire and radiant damage.
Citizen's Arrest Gatekeeper of the Golden Palace Attack 20
You are wreathed in crackling bolts of Erathis might, empowering your normal spells or attacks. As you spend the power, it leaves a spark in each of your allies.

Daily ? Divine, Radiant ; Implement or Weapon
Standard Action Personal
Effect: You use an at-will attack power. Choose one target of the attack. If you hit that target, it is stunned (save ends). If you miss that target, it is dazed (save ends). If you hit or miss that target, until the end of the encounter when an ally adjacent to you hits the target, that ally can push the target 2 squares or slow the target until the end of its next turn.
Hestavar's Blessing Gatekeeper of the Golden Palace Utility 12
You sway an allys fortune with a simple blessing from the Bright City.

Encounter ? Divine
Minor Action Melee 1
Target: One ally
Effect: The target can make a saving throw or spend a healing surge. In addition, the target can shift 3 squares to a square adjacent to at least one of his or her allies as a free action.
Never Again Ceaseless Guardian Feature
You refuse to let any of your allies fall under your watch.

At-Will ? Healing
No Action Close burst 5
Requirement: You must have at least one healing surge.
Trigger: You or an ally in the burst dies
Target: The triggering creature
Effect: You spend one or two healing surges but do not regain hit points for spending these healing surges. The target does not die, and the target regains hit points equal to his or her surge value for each healing surge you spent as a part of this power.
Always Ready Ceaseless Guardian Utility 26
When an enemy tries to ambush your party, you show it the depth of its folly.

Daily No Action Personal
Trigger: You roll initiative
Effect: Your initiative score is equal to one greater than the highest initiative check among all your allies within 10 squares of you. You are not surprised, and if a surprise round occurs, you can take a standard action, move action, and minor action during the surprise round.

ZXCV123 Aggressive Familiar [Familiar Prerequisites Arcane Familiar, 16th level or higher utility power]
Prerequisite:
Benefit: The shielding familiar feat power replaces one of your 16th-level or higher utility powers.
ZPOWER Aggressive Familiar

Fire with Fire Scourge of Io Attack 20
As though stealing power from the dragon itself, you breathe a blast of destructive energy and take to the air, sprouting great draconic wings.
Daily ? Divine, Implement; Acid, Cold, Fire, Lightning, Poison, or Thunder
Standard Action Close blast 5
Target: Each creature in blast
Attack: Wisdom vs. Reflex
Hit: 3d10 + Wis modifier acid, cold, fire, lightning, poison, or thunder damage.
Effect: You gain draconic wings that provide you with fly 5 (hover) until the end of the encounter. Scale-Breaker Path Features

Once removing these I could successfully produce a module.

Primarch

Zeus
August 15th, 2010, 20:27
Things to check:

* make sure your running the latest version of the Parser (currently its 4.0.103.0)
* make sure all the Paragon Paths are listed correctly in the metatdata class.txt file for the powers you have scraped. I'm guessing the unusually long Paragon Path names could be whats causing the problems for the majority of the powers.
* remove the semi-colons in some of the powers and try replacing it with a , instead
* try replacing the feat you have listed with this version:

ZXCV123 Aggressive Familiar [Familiar Utility]
Prerequisite: Arcane Familiar, 16th level or higher
Benefit: The shielding familiar feat power replaces one of your 16th-level or higher utility powers.
ZSD replaces one 16th level or higher utility power
ZPOWER Aggressive Familiar

primarch
August 15th, 2010, 23:49
Hi!

Ah, there is an even newer Parser? That may be it then. I was using. 4.0.89.0, I thought that was the newest.

I'll go download it and try again.

Any thoughts on whats wrong with the ritual file?

Primarch

Zeus
August 16th, 2010, 01:09
Check rituals.txt for non-ascii characters like the  thats being picked up as the Name of a ritual. Neither the Parser or FGII like them very much.

primarch
August 16th, 2010, 04:39
Check rituals.txt for non-ascii characters like the  thats being picked up as the Name of a ritual. Neither the Parser or FGII like them very much.

Hi!

I downloaded the newer parser and there was no problem with long nodes. Although it still seems to not like the ritual file. I'll check it out.

Thanks for your help.

Primarch