Loading ...
Sorry, an error occurred while loading the content.

Greater Spell Focus

Expand Messages
  • texasklang
    Working on a closed content 3.5 base class that has bonus feats that come from a pool of feats, sort of like how fighters get fighter feats. Two of the feats
    Message 1 of 2 , May 19, 2013
    • 0 Attachment
      Working on a closed content 3.5 base class that has bonus feats that come from a pool of feats, sort of like how fighters get fighter feats.

      Two of the feats in this class' pool are spell focus and greater spell focus; but the school choices available for these are limited to a set of specific schools.

      I got the spell focus working... like the basic Spell Focus from the srd35 set. Call it 'Modified Spell Focus'.

      CHOOSE:SCHOOLS|School A|School B|School C vs. CHOOSE:SCHOOLS|ALL

      I am having trouble with the modified greater spell focus. The chooser for the school seems to work OK, in that it throws up a chooser with the correct choices, and lets you add a choice (via the chooser Add button):

      CHOOSE:SPELLS|FEAT=Modified Spell Focus

      For the bonus syntax, I'm using:

      BONUS:DC|SCHOOL=%LIST|2|TYPE=SpellFocus

      When I click OK in the chooser to finish adding the feat, I get this error thrown up:

      "Failed to add Ability due to pcgen.cdom.identified.SpellSchool cannot be cast to pcgen.cdom.base.CDOMObject. See log for further details."

      (I also tried BONUS:DC|SCHOOL.%LIST|2|TYPE=SpellFocus and got similar results)

      Is this a bug, or am I committing a syntax error of some kind?

      Thanks for all the help.

      Here's the log:

      17:32:56.538 SEVERE AWT-EventQueue-1 pcgen.gui2.facade.CharacterAbilities addAbility Failed to add ability due to
      java.lang.ClassCastException: pcgen.cdom.identifier.SpellSchool cannot be cast to pcgen.cdom.base.CDOMObject
      at pcgen.rules.persistence.token.AbstractQualifiedChooseToken.applyChoice(Unknown Source)
      at pcgen.core.chooser.CDOMChoiceManager.applyChoices(Unknown Source)
      at pcgen.core.chooser.ChooserUtilities.modChoices(Unknown Source)
      at pcgen.core.AbilityUtilities.finaliseAbility(Unknown Source)
      at pcgen.gui2.facade.CharacterAbilities.addPCAbility(Unknown Source)
      at pcgen.gui2.facade.CharacterAbilities.addAbility(Unknown Source)
      at pcgen.gui2.facade.CharacterFacadeImpl.addAbility(Unknown Source)
      at pcgen.gui2.tabs.AbilityChooserTab$AddAction.actionPerformed(Unknown Source)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$200(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue$4.run(Unknown Source)
      at java.awt.EventQueue$4.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at pcgen.gui.PCGen_Frame1$WaitCursorEventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
    • Andrew
      Hi, Debugging is always fun - send the file to help@pcgen.org. I ll see if it s a syntax issue or a code bug. Cheers, ... -- Andrew Maitland (LegacyKing) Admin
      Message 2 of 2 , May 19, 2013
      • 0 Attachment
        Hi,

        Debugging is always fun - send the file to help@....

        I'll see if it's a syntax issue or a code bug.

        Cheers,

        On 5/19/2013 3:48 PM, texasklang wrote:
        > Working on a closed content 3.5 base class that has bonus feats that come from a pool of feats, sort of like how fighters get fighter feats.
        >
        > Two of the feats in this class' pool are spell focus and greater spell focus; but the school choices available for these are limited to a set of specific schools.
        >
        > I got the spell focus working... like the basic Spell Focus from the srd35 set. Call it 'Modified Spell Focus'.
        >
        > CHOOSE:SCHOOLS|School A|School B|School C vs. CHOOSE:SCHOOLS|ALL
        >
        > I am having trouble with the modified greater spell focus. The chooser for the school seems to work OK, in that it throws up a chooser with the correct choices, and lets you add a choice (via the chooser Add button):
        >
        > CHOOSE:SPELLS|FEAT=Modified Spell Focus
        >
        > For the bonus syntax, I'm using:
        >
        > BONUS:DC|SCHOOL=%LIST|2|TYPE=SpellFocus
        >
        > When I click OK in the chooser to finish adding the feat, I get this error thrown up:
        >
        > "Failed to add Ability due to pcgen.cdom.identified.SpellSchool cannot be cast to pcgen.cdom.base.CDOMObject. See log for further details."
        >
        > (I also tried BONUS:DC|SCHOOL.%LIST|2|TYPE=SpellFocus and got similar results)
        >
        > Is this a bug, or am I committing a syntax error of some kind?
        >
        > Thanks for all the help.
        >
        > Here's the log:
        >
        > 17:32:56.538 SEVERE AWT-EventQueue-1 pcgen.gui2.facade.CharacterAbilities addAbility Failed to add ability due to
        > java.lang.ClassCastException: pcgen.cdom.identifier.SpellSchool cannot be cast to pcgen.cdom.base.CDOMObject
        > at pcgen.rules.persistence.token.AbstractQualifiedChooseToken.applyChoice(Unknown Source)
        > at pcgen.core.chooser.CDOMChoiceManager.applyChoices(Unknown Source)
        > at pcgen.core.chooser.ChooserUtilities.modChoices(Unknown Source)
        > at pcgen.core.AbilityUtilities.finaliseAbility(Unknown Source)
        > at pcgen.gui2.facade.CharacterAbilities.addPCAbility(Unknown Source)
        > at pcgen.gui2.facade.CharacterAbilities.addAbility(Unknown Source)
        > at pcgen.gui2.facade.CharacterFacadeImpl.addAbility(Unknown Source)
        > at pcgen.gui2.tabs.AbilityChooserTab$AddAction.actionPerformed(Unknown Source)
        > at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        > at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        > at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        > at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        > at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        > at java.awt.Component.processMouseEvent(Unknown Source)
        > at javax.swing.JComponent.processMouseEvent(Unknown Source)
        > at java.awt.Component.processEvent(Unknown Source)
        > at java.awt.Container.processEvent(Unknown Source)
        > at java.awt.Component.dispatchEventImpl(Unknown Source)
        > at java.awt.Container.dispatchEventImpl(Unknown Source)
        > at java.awt.Component.dispatchEvent(Unknown Source)
        > at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        > at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        > at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        > at java.awt.Container.dispatchEventImpl(Unknown Source)
        > at java.awt.Window.dispatchEventImpl(Unknown Source)
        > at java.awt.Component.dispatchEvent(Unknown Source)
        > at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        > at java.awt.EventQueue.access$200(Unknown Source)
        > at java.awt.EventQueue$3.run(Unknown Source)
        > at java.awt.EventQueue$3.run(Unknown Source)
        > at java.security.AccessController.doPrivileged(Native Method)
        > at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        > at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        > at java.awt.EventQueue$4.run(Unknown Source)
        > at java.awt.EventQueue$4.run(Unknown Source)
        > at java.security.AccessController.doPrivileged(Native Method)
        > at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        > at java.awt.EventQueue.dispatchEvent(Unknown Source)
        > at pcgen.gui.PCGen_Frame1$WaitCursorEventQueue.dispatchEvent(Unknown Source)
        > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        > at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        > at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        > at java.awt.EventDispatchThread.run(Unknown Source)
        >
        >
        >
        >
        >
        >
        >
        > ------------------------------------
        >
        > Yahoo! Groups Links
        >
        >
        >
        >


        --
        Andrew Maitland (LegacyKing)
        Admin Silverback - PCGen Board of Directors
        Data 2nd, Docs Tamarin, OS Lemur
        Unique Title "Quick-Silverback Tracker Monkey"
        Unique Title "The Torturer of PCGen"


        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.