It is currently 17 Aug 2025, 03:07
   
Text Size

SVN Bug Reports

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: SVN Bug Reports

Postby SoulStorm » 16 May 2011, 15:42

Thanks for the info, I'll give that a try.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Bug Reports

Postby Corwin72 » 16 May 2011, 19:36

r8697
Creeping Tar Pit is colorless after being activated. It should be Blue and Black.
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Bug Reports

Postby Sloth » 16 May 2011, 19:58

lazylockie wrote:Clearwater Goblet is triggering on both upkeeps, when it should trigger only on your own.
Fixed. Thanks lazylockie.

Corwin72 wrote:Creeping Tar Pit is colorless after being activated. It should be Blue and Black.
Fixed. Thanks Corwin.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby jeffwadsworth » 17 May 2011, 15:45

Doomgape. The AI does not sacrifice a creature at the beginning of its upkeep. Probably related to the GainLife AF.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: SVN Bug Reports

Postby Chris H. » 17 May 2011, 17:54

jeffwadsworth wrote:Doomgape. The AI does not sacrifice a creature at the beginning of its upkeep. Probably related to the GainLife AF.
`
I found this in the card file:

Code: Select all
SVar:TrigGainLife:AB$GainLife | Cost$ Sac<1/Creature> | Defined$ You | LifeAmount$ X
`
So the sac is handled as an alt type cost. I know that the AI can handle at least the tap and mana type costs. Can it handle the sac and other type costs?

We may need to get in there and add some more SVar:RemAIDeck:True
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: SVN Bug Reports

Postby jeffwadsworth » 17 May 2011, 18:59

Chris H. wrote:
jeffwadsworth wrote:Doomgape. The AI does not sacrifice a creature at the beginning of its upkeep. Probably related to the GainLife AF.
`
I found this in the card file:

Code: Select all
SVar:TrigGainLife:AB$GainLife | Cost$ Sac<1/Creature> | Defined$ You | LifeAmount$ X
`
So the sac is handled as an alt type cost. I know that the AI can handle at least the tap and mana type costs. Can it handle the sac and other type costs?

We may need to get in there and add some more SVar:RemAIDeck:True
Well, I didn't script the card so I didn't touch it. I think I noticed some GainLife AI code added a while back that might have given the AI an option here...and it simply chooses to not commit the sacrifice.

If the SVar:X:Sacrificed:CardToughness worked for the AB$Sacrifice | Cost$ 0 | SacValid$ Creature | Defined$ You...
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: SVN Bug Reports

Postby Corwin72 » 17 May 2011, 19:24

r8776
The AI having Myr Turbine with 5 Myr out causes priority not to pass.
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Bug Reports

Postby Sloth » 17 May 2011, 19:38

Chris H. wrote:
jeffwadsworth wrote:Doomgape. The AI does not sacrifice a creature at the beginning of its upkeep. Probably related to the GainLife AF.
`
I found this in the card file:

Code: Select all
SVar:TrigGainLife:AB$GainLife | Cost$ Sac<1/Creature> | Defined$ You | LifeAmount$ X
`
So the sac is handled as an alt type cost. I know that the AI can handle at least the tap and mana type costs. Can it handle the sac and other type costs?

We may need to get in there and add some more SVar:RemAIDeck:True
The card is just scripted wrong, even the human player can just cancel the ability. The sacrificing is not a cost.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby SoulStorm » 18 May 2011, 02:52

Sloth, I just had the opportunity to test Psionic Sliver and it still doesn't work. The Psionic Sliver deals and receives damage correctly, but other slivers deal damage without receiving any.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: SVN Bug Reports

Postby Sloth » 18 May 2011, 07:45

SoulStorm wrote:Sloth, I just had the opportunity to test Psionic Sliver and it still doesn't work. The Psionic Sliver deals and receives damage correctly, but other slivers deal damage without receiving any.
Mmh, then additional code has to be written. I will try to do it.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby slapshot5 » 18 May 2011, 14:26

Sloth wrote:
SoulStorm wrote:Sloth, I just had the opportunity to test Psionic Sliver and it still doesn't work. The Psionic Sliver deals and receives damage correctly, but other slivers deal damage without receiving any.
Mmh, then additional code has to be written. I will try to do it.
I think there may just be a typo:
Code: Select all
K:stPumpAll:Sliver:0/0/SVar=DamageOther & SVar=DamageSelf:no Condition:All Sliver creatues have "tap: This creature deals 2 damage to target creature or player and 3 damage to itself."
SVar:DamageOther:AB$DealDamage | Cost$ T | Tgt$ CP | NumDmg$ 2 | SubAbility$ SVar=DBDamageSelf | SpellDescription$ This creature deals 2 damage to target creature or player and 3 damage to itself.
SVar:DBDamageSelf:DB$DealDamage | NumDmg$ 3 | Defined$ Self
The second SVar in the stPumpAll line should be "DBDamageSelf", correct?

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: SVN Bug Reports

Postby Sloth » 18 May 2011, 14:54

slapshot5 wrote:
Sloth wrote:
SoulStorm wrote:Sloth, I just had the opportunity to test Psionic Sliver and it still doesn't work. The Psionic Sliver deals and receives damage correctly, but other slivers deal damage without receiving any.
Mmh, then additional code has to be written. I will try to do it.
I think there may just be a typo:
Code: Select all
K:stPumpAll:Sliver:0/0/SVar=DamageOther & SVar=DamageSelf:no Condition:All Sliver creatues have "tap: This creature deals 2 damage to target creature or player and 3 damage to itself."
SVar:DamageOther:AB$DealDamage | Cost$ T | Tgt$ CP | NumDmg$ 2 | SubAbility$ SVar=DBDamageSelf | SpellDescription$ This creature deals 2 damage to target creature or player and 3 damage to itself.
SVar:DBDamageSelf:DB$DealDamage | NumDmg$ 3 | Defined$ Self
The second SVar in the stPumpAll line should be "DBDamageSelf", correct?

-slapshot5
Yes, that did it. Thanks slapshot.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Bug Reports

Postby Corwin72 » 18 May 2011, 15:48

r8790
Pulling Teeth does not cause the AI to discard. If you win the clash or not.
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Bug Reports

Postby Corwin72 » 18 May 2011, 19:06

r8790
AI attackes with germ equipped with Batterskull and Sword of War and Peace. I have 0 cards in hand. AI has 3.
| Open
An error has occurred. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com


forge.HumanPlayer cannot be cast to forge.card.spellability.SpellAbility


Version:
Forge -- official beta: $Date: 2011-01-06 11:34:48 -0500 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_22 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.ClassCastException: forge.HumanPlayer cannot be cast to forge.card.spellability.SpellAbility
at forge.card.abilityFactory.AbilityFactory.getDefinedSpellAbilities(Unknown Source)
at forge.card.abilityFactory.AbilityFactory.getDefinedObjects(Unknown Source)
at forge.card.abilityFactory.AbilityFactory_DealDamage.damageStackDescription(Unknown Source)
at forge.card.abilityFactory.AbilityFactory_DealDamage.access$2(Unknown Source)
at forge.card.abilityFactory.AbilityFactory_DealDamage$1.getStackDescription(Unknown Source)
at forge.card.trigger.TriggerHandler.runSingleTrigger(Unknown Source)
at forge.card.trigger.TriggerHandler.runTrigger(Unknown Source)
at forge.Player.addDamageAfterPrevention(Unknown Source)
at forge.Player.addCombatDamage(Unknown Source)
at forge.Combat.dealAssignedDamage(Unknown Source)
at forge.Phase.handleBeginPhase(Unknown Source)
at forge.gui.input.InputControl.updateInput(Unknown Source)
at forge.GuiInput.update(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at forge.MyObservable.updateObservers(Unknown Source)
at forge.Phase.nextPhase(Unknown Source)
at forge.Phase.nextPhase(Unknown Source)
at forge.GuiDisplay4$25.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$Actions.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(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.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)
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Bug Reports

Postby Hellfish » 18 May 2011, 19:17

Could you try r8797? I hope that fixed it.
EDIT:Or,you know, the latest, it hasn't changed since #-o
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 19 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 19 guests

Login Form