It is currently 14 Nov 2025, 10:39
   
Text Size

Bug Reports (snapshot builds)

Post MTG Forge Related Programming Questions Here

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

Re: Bug Reports (snapshot builds)

Postby stormcat » 10 Sep 2016, 18:55

Song of the Dryads has bug.
1, Song of the Dryads enchant a permanent.
2, Destroy Song of the Dryads.
3, The rest permanent still has ability of forest.
stormcat
 
Posts: 361
Joined: 17 Jun 2015, 05:32
Has thanked: 0 time
Been thanked: 6 times

Re: Bug Reports (snapshot builds)

Postby matrix4767 » 11 Sep 2016, 07:20

r32089:
Grenzo, Havoc Raiser doesn't trigger when AI uses it. Its second mode doesn't exile a card.

Now AI crashes game with Melee when entering Declare Attackers Step (but not when that creature has summoning sickness):

NullPointerException | Open
Code: Select all
Forge Version:    1.5.56-SNAPSHOT-r32089
Operating System: Windows 7 6.1 x86
Java Version:     1.8.0_77 Oracle Corporation

java.lang.NullPointerException
   at forge.game.card.Card.getTriggeringObject(Card.java:788)
   at forge.game.card.CardFactoryUtil.xCount(CardFactoryUtil.java:1124)
   at forge.ai.ComputerUtilCombat.predictToughnessBonusOfAttacker(ComputerUtilCombat.java:1487)
   at forge.ai.AiAttackController.isEffectiveAttacker(AiAttackController.java:200)
   at forge.ai.AiAttackController.shouldAttack(AiAttackController.java:957)
   at forge.ai.AiAttackController.declareAttackers(AiAttackController.java:859)
   at forge.ai.AiController.declareAttackers(AiController.java:1268)
   at forge.ai.PlayerControllerAi.declareAttackers(PlayerControllerAi.java:382)
   at forge.game.phase.PhaseHandler.declareAttackersTurnBasedAction(PhaseHandler.java:476)
   at forge.game.phase.PhaseHandler.onPhaseBegin(PhaseHandler.java:267)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:975)
   at forge.game.GameAction.startGame(GameAction.java:1463)
   at forge.game.Match.startGame(Match.java:95)
   at forge.match.HostedMatch$2.run(HostedMatch.java:220)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
matrix4767
 
Posts: 125
Joined: 09 Sep 2014, 08:10
Has thanked: 5 times
Been thanked: 3 times

Re: Bug Reports (snapshot builds)

Postby fmartel » 12 Sep 2016, 00:02

Description: [In commander, Sacrificing Eldrazi Scion to pay cost]

NullPointerException | Open
Code: Select all
Forge Version:    1.5.56-SNAPSHOT-r32089
Operating System: Windows 7 6.1 amd64
Java Version:     1.8.0_101 Oracle Corporation

java.lang.NullPointerException
   at forge.view.arcane.PlayArea.selectCard(PlayArea.java:577)
   at forge.view.arcane.PlayArea.mouseLeftClicked(PlayArea.java:536)
   at forge.view.arcane.CardPanelContainer$2.mouseReleased(CardPanelContainer.java:165)
   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$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.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$JavaSecurityAccessImpl.doIntersectionPrivilege(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)
fmartel
 
Posts: 281
Joined: 31 Dec 2013, 19:27
Location: Québec City
Has thanked: 8 times
Been thanked: 4 times

Re: Bug Reports (snapshot builds)

Postby fmartel » 12 Sep 2016, 14:27

in snapshot 32097, even though my creature is taped I can have the option of blocking a creature. If I don't, the creature assign to blocked is untaped.
fmartel
 
Posts: 281
Joined: 31 Dec 2013, 19:27
Location: Québec City
Has thanked: 8 times
Been thanked: 4 times

Re: Bug Reports (snapshot builds)

Postby Hanmac » 12 Sep 2016, 16:08

matrix4767 wrote:r32089:
Grenzo, Havoc Raiser doesn't trigger when AI uses it. Its second mode doesn't exile a card.

Now AI crashes game with Melee when entering Declare Attackers Step (but not when that creature has summoning sickness):

NullPointerException | Open
Code: Select all
Forge Version:    1.5.56-SNAPSHOT-r32089
Operating System: Windows 7 6.1 x86
Java Version:     1.8.0_77 Oracle Corporation

java.lang.NullPointerException
   at forge.game.card.Card.getTriggeringObject(Card.java:788)
   at forge.game.card.CardFactoryUtil.xCount(CardFactoryUtil.java:1124)
   at forge.ai.ComputerUtilCombat.predictToughnessBonusOfAttacker(ComputerUtilCombat.java:1487)
   at forge.ai.AiAttackController.isEffectiveAttacker(AiAttackController.java:200)
   at forge.ai.AiAttackController.shouldAttack(AiAttackController.java:957)
   at forge.ai.AiAttackController.declareAttackers(AiAttackController.java:859)
   at forge.ai.AiController.declareAttackers(AiController.java:1268)
   at forge.ai.PlayerControllerAi.declareAttackers(PlayerControllerAi.java:382)
   at forge.game.phase.PhaseHandler.declareAttackersTurnBasedAction(PhaseHandler.java:476)
   at forge.game.phase.PhaseHandler.onPhaseBegin(PhaseHandler.java:267)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:975)
   at forge.game.GameAction.startGame(GameAction.java:1463)
   at forge.game.Match.startGame(Match.java:95)
   at forge.match.HostedMatch$2.run(HostedMatch.java:220)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Grenzo was fixed r32091 including some AI for Goad in r32090.
the Problem with Melee was fixed in r32092.

stormcat wrote:Song of the Dryads has bug.
1, Song of the Dryads enchant a permanent.
2, Destroy Song of the Dryads.
3, The rest permanent still has ability of forest.
fixed in r32098.
Hanmac
 
Posts: 954
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 158 times

Re: Bug Reports (snapshot builds)

Postby fmartel » 13 Sep 2016, 20:35

Description: [In commander, played Nylea, God of the Hunt]

NullPointerException | Open
Code: Select all
Forge Version:    1.5.56-SNAPSHOT-r32101
Operating System: Windows 7 6.1 amd64
Java Version:     1.7.0_25 Oracle Corporation

java.lang.NullPointerException
   at forge.game.card.Card.removeChangedCardTypes(Card.java:2580)
   at forge.game.StaticEffect.remove(StaticEffect.java:1043)
   at forge.game.StaticEffects.clearStaticEffects(StaticEffects.java:50)
   at forge.game.GameAction.checkStaticAbilities(GameAction.java:643)
   at forge.game.GameAction.checkStateEffects(GameAction.java:791)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:905)
   at forge.game.GameAction.startGame(GameAction.java:1463)
   at forge.game.Match.startGame(Match.java:95)
   at forge.match.HostedMatch$2.run(HostedMatch.java:220)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
fmartel
 
Posts: 281
Joined: 31 Dec 2013, 19:27
Location: Québec City
Has thanked: 8 times
Been thanked: 4 times

Re: Bug Reports (snapshot builds)

Postby fmartel » 15 Sep 2016, 01:46

casting Mycoloth made Java go Wild !
Attachments
Capture.PNG
Java, again close to 99% of CPU Juice
fmartel
 
Posts: 281
Joined: 31 Dec 2013, 19:27
Location: Québec City
Has thanked: 8 times
Been thanked: 4 times

Re: Bug Reports (snapshot builds)

Postby stormcat » 15 Sep 2016, 01:59

It seems that Nykthos, Shrine to Nyx's Second ability is not considered mana ability.
Because, it is not influenced by Vorinclex, Voice of Hunger's effect.
(ex. don't increase produce mana)
stormcat
 
Posts: 361
Joined: 17 Jun 2015, 05:32
Has thanked: 0 time
Been thanked: 6 times

Re: Bug Reports (snapshot builds)

Postby leshrac » 15 Sep 2016, 22:13

r32102:

If Song of the Dryads enchants a Blood Moon, non-basic lands are still mountains.

Similar thing happens if you enchant Urborg, Tomb of Yawgmoth with Song of the Dryads (all lands are still swamps in addition to their usual type). Or if you enchant it with Spreading Seas. Also: If you have Urborg, Tomb of Yawgmoth and Blood Moon in play, all basic lands are still Swamps.
leshrac
 
Posts: 33
Joined: 31 Dec 2014, 00:05
Has thanked: 2 times
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby friarsol » 16 Sep 2016, 02:08

leshrac wrote:r32102:

If Song of the Dryads enchants a Blood Moon, non-basic lands are still mountains.

Similar thing happens if you enchant Urborg, Tomb of Yawgmoth with Song of the Dryads (all lands are still swamps in addition to their usual type). Or if you enchant it with Spreading Seas. Also: If you have Urborg, Tomb of Yawgmoth and Blood Moon in play, all basic lands are still Swamps.
That's how layers work:

7/18/2014: If Urborg loses its abilities (for example, if it becomes a creature and then Turn to Frog targets it), all lands on the battlefield, including Urborg, will still be Swamps, but Urborg won’t have the ability “Each land is a Swamp in addition to its other land types.” Urborg also won’t be able to tap to produce {B}, but other lands (including those that enter the battlefield later in the turn) will. The way continuous effects work, Urborg’s type-changing ability is applied before the effect that removes both the type-changing ability and its own mana ability.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Bug Reports (snapshot builds)

Postby Hanmac » 16 Sep 2016, 04:53

@friarsol I am unsure about that,
I found this:

http://magicjudge.tumblr.com/post/13885 ... d-moon-and

But now I am more confused about this.
Hanmac
 
Posts: 954
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 158 times

Re: Bug Reports (snapshot builds)

Postby Ldcs8T4EAnj8h5ZMD8rf » 16 Sep 2016, 12:57

r32107

It appears Valakut, the Molten Pinnacle is not working properly. With 8 lands on the field, I Scapeshifted 7 of them (leaving Valakut) into basic Mountain, 3 Steam Vents, and 3 Stomping Ground. I only got 2 Valakut triggers. I have not seen this problem occur in the 1.5.55 beta.
Attachments
valakut.tif
Ldcs8T4EAnj8h5ZMD8rf
 
Posts: 36
Joined: 13 Nov 2015, 15:36
Has thanked: 1 time
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby leshrac » 16 Sep 2016, 19:27

friarsol wrote:
leshrac wrote:r32102:

If Song of the Dryads enchants a Blood Moon, non-basic lands are still mountains.

Similar thing happens if you enchant Urborg, Tomb of Yawgmoth with Song of the Dryads (all lands are still swamps in addition to their usual type). Or if you enchant it with Spreading Seas. Also: If you have Urborg, Tomb of Yawgmoth and Blood Moon in play, all basic lands are still Swamps.
That's how layers work:

7/18/2014: If Urborg loses its abilities (for example, if it becomes a creature and then Turn to Frog targets it), all lands on the battlefield, including Urborg, will still be Swamps, but Urborg won’t have the ability “Each land is a Swamp in addition to its other land types.” Urborg also won’t be able to tap to produce {B}, but other lands (including those that enter the battlefield later in the turn) will. The way continuous effects work, Urborg’s type-changing ability is applied before the effect that removes both the type-changing ability and its own mana ability.
I tried to google that problem, but the only thing i found for sure is that non-basic lands with both Urborg and Blood Moon in play would be just Mountains, no source explicitely mentions basic lands, so that quote might apply to that, but i'm not sure. Most likely it works that way with Urborg and Song of the Dryads.

However, afaik a Blood Moon enchanted with Song of the Dryads still shouldn't work any more, and that's the bug that's really relevant for me, i just brought up the other examples because i thought they might be related.
leshrac
 
Posts: 33
Joined: 31 Dec 2014, 00:05
Has thanked: 2 times
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby fmartel » 18 Sep 2016, 14:14

Description: [In Commander, AI played his commander Prime Speaker Zegana, at M2 turn. Game crashed trying to pass phase priority.]

NullPointerException | Open
Code: Select all
Forge Version:    1.5.56-SNAPSHOT-r32120
Operating System: Windows 7 6.1 amd64
Java Version:     1.8.0_101 Oracle Corporation

java.lang.NullPointerException
   at forge.util.collect.FCollection.<init>(FCollection.java:90)
   at forge.game.card.CardCollection.<init>(CardCollection.java:115)
   at forge.game.ability.AbilityUtils.xCount(AbilityUtils.java:1548)
   at forge.game.ability.AbilityUtils.calculateAmount(AbilityUtils.java:396)
   at forge.ai.ability.CountersPutAi.doTriggerAINoCost(CountersPutAi.java:438)
   at forge.ai.SpellAbilityAi.doTriggerNoCostWithSubs(SpellAbilityAi.java:118)
   at forge.ai.SpellAbilityAi.doTriggerAI(SpellAbilityAi.java:113)
   at forge.ai.AiController.doTrigger(AiController.java:1380)
   at forge.ai.AiController.checkETBEffects(AiController.java:346)
   at forge.ai.AiController.canPlayFromEffectAI(AiController.java:1218)
   at forge.ai.AiController.canPlaySa(AiController.java:780)
   at forge.ai.AiController.canPlayAndPayFor(AiController.java:636)
   at forge.ai.AiController.chooseSpellAbilityToPlay(AiController.java:1333)
   at forge.ai.AiController.getSpellAbilityToPlay(AiController.java:1308)
   at forge.ai.AiController.chooseSpellAbilityToPlay(AiController.java:1247)
   at forge.ai.PlayerControllerAi.chooseSpellAbilityToPlay(PlayerControllerAi.java:392)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:923)
   at forge.game.GameAction.startGame(GameAction.java:1463)
   at forge.game.Match.startGame(Match.java:95)
   at forge.match.HostedMatch$2.run(HostedMatch.java:220)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
fmartel
 
Posts: 281
Joined: 31 Dec 2013, 19:27
Location: Québec City
Has thanked: 8 times
Been thanked: 4 times

Re: Bug Reports (snapshot builds)

Postby Hanmac » 18 Sep 2016, 16:08

@fmartel: i think i finally found the problem.
LastState is only set when something did hit the stack or resolves.
but in some corner cases it might not happed yet.

i added a fix and it should solve your problem with it.
Hanmac
 
Posts: 954
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 158 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 42 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 42 users online :: 0 registered, 0 hidden and 42 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 42 guests

Login Form