SVN Bug Reports
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: SVN Bug Reports
by Corwin72 » 16 May 2011, 19:36
r8697
Creeping Tar Pit is colorless after being activated. It should be Blue and Black.
Creeping Tar Pit is colorless after being activated. It should be Blue and Black.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Bug Reports
by Sloth » 16 May 2011, 19:58
Fixed. Thanks lazylockie.lazylockie wrote:Clearwater Goblet is triggering on both upkeeps, when it should trigger only on your own.
Fixed. Thanks Corwin.Corwin72 wrote:Creeping Tar Pit is colorless after being activated. It should be Blue and Black.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by 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
by 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
-
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
by jeffwadsworth » 17 May 2011, 18:59
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.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
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
by Corwin72 » 17 May 2011, 19:24
r8776
The AI having Myr Turbine with 5 Myr out causes priority not to pass.
The AI having Myr Turbine with 5 Myr out causes priority not to pass.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Bug Reports
by Sloth » 17 May 2011, 19:38
The card is just scripted wrong, even the human player can just cancel the ability. The sacrificing is not a cost.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
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by 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.
Re: SVN Bug Reports
by Sloth » 18 May 2011, 07:45
Mmh, then additional code has to be written. I will try to do it.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.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by slapshot5 » 18 May 2011, 14:26
I think there may just be a typo:Sloth wrote:Mmh, then additional code has to be written. I will try to do it.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.
- 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
-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
by Sloth » 18 May 2011, 14:54
Yes, that did it. Thanks slapshot.slapshot5 wrote:I think there may just be a typo:Sloth wrote:Mmh, then additional code has to be written. I will try to do it.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.The second SVar in the stPumpAll line should be "DBDamageSelf", correct?
- 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
-slapshot5
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Bug Reports
by Corwin72 » 18 May 2011, 15:48
r8790
Pulling Teeth does not cause the AI to discard. If you win the clash or not.
Pulling Teeth does not cause the AI to discard. If you win the clash or not.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Bug Reports
by 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.
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)
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Bug Reports
by 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
EDIT:Or,you know, the latest, it hasn't changed since

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
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
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Who is online
Users browsing this forum: No registered users and 19 guests