1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. While the majority of active discourse on D20PRO has moved to our Discord Channels, this forum is still active and checked-in on regularly by our staff. However, for the very latest information, conversation and/or immediate support, please join us on Discord here: http://discord.gg/Ph38ckM
    Dismiss Notice

Attack spells don't roll 1d20 vs AC

Discussion in 'Bug Reports & Installation Support' started by Wheels, Sep 7, 2017.

  1. Wheels

    Wheels Member

    Joined:
    Oct 4, 2015
    Messages:
    30
    Likes Received:
    0
    So as you know I've been trying to implement firebolt spell. This spell does 1d10 damage after a ranged attack vs AC.

    With the help of Owlbear I implemented firebolt but there are some things not running correctly.
    1. On the Save / Attack window AC option wont show unless you activate Custom Defense on the options (this is a knowed bug)
    2. The value set for the Save / Attack window does not roll 1d20 + value set (be it fixed or calculated by formulas). If you set it to 9, when using the spell the dice will always show 9 on the game log (see image game_log_shows_9). The target's AC is 10 so no damage is applied. Setting the value to 11 always applies the damage (which is correct since save negates).
    3. Formulas from scripts don't seems to be working correctly. For example if I put on the Save / Attack Value "getSpellcastingClassAbilityMod()" the dice always comes with zero but if I put "caster.resolveBAB()" the dice shows the correct value (which is 2 for level 1 char) but ofc doesn't add the roll from the 1d20 as pointed in the first bullet.

    The flow used is
    upload_2017-9-7_20-2-48.png
     

    Attached Files:

  2. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    part of this is that the 'Save Type' is throwing an error.

    [07 Sep 2017 12:58:57,240] INFO D20 | D20PRO version: 3.7.1.10
    [07 Sep 2017 12:58:57,240] INFO D20 | Java version: 1.8.0_131
    [07 Sep 2017 12:58:57,240] INFO D20 | Operating System: Windows 10 (10.0)
    [07 Sep 2017 14:39:48,070] WARN ErrCaptureStream | Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.d20pro.temp_extraction.plugin.handler.effect.AttackSaveHandler.calculateSaveForEffect(AttackSaveHandler.java:140)
    at com.d20pro.temp_extraction.plugin.handler.effect.AttackSaveHandler.calculate(AttackSaveHandler.java:80)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.runSaveAndResistanceCalculation(EffectHandlerLauncher.java:635)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.runProcessingForEffects(EffectHandlerLauncher.java:211)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.recalculateBeforeApply(EffectHandlerLauncher.java:194)
    at com.d20pro.temp_extraction.plugin.feature.service.manager.FeatureBehaviorManager_DM.recalculate(FeatureBehaviorManager_DM.java:147)
    at com.d20pro.temp_extraction.feature.library.ui.decision.DecisionVC_ApplyFeature.callRecalculate(DecisionVC_ApplyFeature.java:114)
    at com.d20pro.temp_extraction.feature.library.ui.decision.DecisionVC_ParentApplyFeature.lambda$changed$1(DecisionVC_ParentApplyFeature.java:92)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.mindgene.d20.common.AbstractApp$CustomEventQueue.dispatchEvent(AbstractApp.java:795)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.d20pro.temp_extraction.plugin.handler.effect.AttackSaveHandler.calculateSaveForEffect(AttackSaveHandler.java:140)
    at com.d20pro.temp_extraction.plugin.handler.effect.AttackSaveHandler.calculate(AttackSaveHandler.java:80)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.runSaveAndResistanceCalculation(EffectHandlerLauncher.java:635)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.runProcessingForEffects(EffectHandlerLauncher.java:211)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.recalculateBeforeApply(EffectHandlerLauncher.java:194)
    at com.d20pro.temp_extraction.plugin.feature.service.manager.FeatureBehaviorManager_DM.recalculate(FeatureBehaviorManager_DM.java:147)
    at com.d20pro.temp_extraction.feature.library.ui.decision.DecisionVC_ApplyFeature.callRecalculate(DecisionVC_ApplyFeature.java:114)
    at com.d20pro.temp_extraction.feature.library.ui.decision.DecisionVC_ParentApplyFeature.lambda$changed$1(DecisionVC_ParentApplyFeature.java:92)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.mindgene.d20.common.AbstractApp$CustomEventQueue.dispatchEvent(AbstractApp.java:795)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


    [07 Sep 2017 14:45:12,695] WARN ErrCaptureStream | Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.d20pro.temp_extraction.plugin.handler.effect.AttackSaveHandler.calculateSaveForEffect(AttackSaveHandler.java:140)
    at com.d20pro.temp_extraction.plugin.handler.effect.AttackSaveHandler.calculate(AttackSaveHandler.java:80)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.runSaveAndResistanceCalculation(EffectHandlerLauncher.java:635)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.runProcessingForEffects(EffectHandlerLauncher.java:211)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.recalculateBeforeApply(EffectHandlerLauncher.java:194)
    at com.d20pro.temp_extraction.plugin.feature.service.manager.FeatureBehaviorManager_DM.recalculate(FeatureBehaviorManager_DM.java:147)
    at com.d20pro.temp_extraction.feature.library.ui.decision.DecisionVC_ApplyFeature.callRecalculate(DecisionVC_ApplyFeature.java:114)
    at com.d20pro.temp_extraction.feature.library.ui.decision.DecisionVC_ParentApplyFeature.lambda$changed$1(DecisionVC_ParentApplyFeature.java:92)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.mindgene.d20.common.AbstractApp$CustomEventQueue.dispatchEvent(AbstractApp.java:795)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.d20pro.temp_extraction.plugin.handler.effect.AttackSaveHandler.calculateSaveForEffect(AttackSaveHandler.java:140)
    at com.d20pro.temp_extraction.plugin.handler.effect.AttackSaveHandler.calculate(AttackSaveHandler.java:80)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.runSaveAndResistanceCalculation(EffectHandlerLauncher.java:635)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.runProcessingForEffects(EffectHandlerLauncher.java:211)
    at com.d20pro.temp_extraction.plugin.handler.EffectHandlerLauncher.recalculateBeforeApply(EffectHandlerLauncher.java:194)
    at com.d20pro.temp_extraction.plugin.feature.service.manager.FeatureBehaviorManager_DM.recalculate(FeatureBehaviorManager_DM.java:147)
    at com.d20pro.temp_extraction.feature.library.ui.decision.DecisionVC_ApplyFeature.callRecalculate(DecisionVC_ApplyFeature.java:114)
    at com.d20pro.temp_extraction.feature.library.ui.decision.DecisionVC_ParentApplyFeature.lambda$changed$1(DecisionVC_ParentApplyFeature.java:92)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.mindgene.d20.common.AbstractApp$CustomEventQueue.dispatchEvent(AbstractApp.java:795)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


    and tho, I am not certain, it looks to be resolving back wards (applying 0 on failed, but a # on saved.

    upload_2017-9-7_14-46-52.png

    Click to switch him from Failed to Saved, changes the number (should be the other way around).


    upload_2017-9-7_14-48-50.png
     
  3. owlbear

    owlbear Administrator
    Staff Member

    Joined:
    Sep 5, 2011
    Messages:
    636
    Likes Received:
    160
    Fixed in 3.7.1.11 (release today hopefully!)
     

Share This Page