It is currently 07 Nov 2025, 12:46
   
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 xbon » 30 Jan 2015, 03:08

Description: ai played Enchantress's Presence with Hoofprints of the Stag and Yavimaya Enchantress on field.

NullPointerException | Open
Code: Select all
Forge Version:    1.5.34-SNAPSHOT-r-1u
Operating System: Windows 8.1 6.3 x86
Java Version:     1.8.0_20 Oracle Corporation

java.lang.NullPointerException
   at forge.game.staticability.StaticAbilityCantTarget.applyCantTargetAbility(StaticAbilityCantTarget.java:79)
   at forge.game.staticability.StaticAbility.applyAbility(StaticAbility.java:337)
   at forge.game.card.Card.canBeTargetedBy(Card.java:5942)
   at forge.game.spellability.SpellAbility.canTarget(SpellAbility.java:700)
   at forge.game.card.CardPredicates$7.apply(CardPredicates.java:97)
   at forge.game.card.CardPredicates$7.apply(CardPredicates.java:94)
   at com.google.common.collect.Iterators$7.computeNext(Iterators.java:647)
   at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
   at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
   at forge.util.FCollection.<init>(FCollection.java:35)
   at forge.game.card.CardCollection.<init>(CardCollection.java:61)
   at forge.game.card.CardLists.filter(CardLists.java:229)
   at forge.game.card.CardLists.getTargetableCards(CardLists.java:183)
   at forge.ai.AiController.canPlaySa(AiController.java:691)
   at forge.ai.AiController.canPlayAndPayFor(AiController.java:641)
   at forge.ai.AiController.chooseSpellAbilityToPlay(AiController.java:1227)
   at forge.ai.AiController.getSpellAbilityToPlay(AiController.java:1204)
   at forge.ai.AiController.chooseSpellAbilityToPlay(AiController.java:1146)
   at forge.ai.PlayerControllerAi.chooseSpellAbilityToPlay(PlayerControllerAi.java:385)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:917)
   at forge.game.GameAction.startGame(GameAction.java:1388)
   at forge.game.Match.startGame(Match.java:71)
   at forge.match.MatchUtil$2.run(MatchUtil.java:202)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
xbon
 
Posts: 124
Joined: 04 Jun 2013, 22:52
Has thanked: 18 times
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby Hanmac » 30 Jan 2015, 06:27

cards like Scrying Sheets does not let me look at the card without revaling it to others
cards with Devour like Gluttonous Slime does enter the battlefield with one +1/+1 counter when Hardened Scales is on the field
Hanmac
 
Posts: 954
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 158 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 31 Jan 2015, 05:12

r28752

Just had a weird situation come up in a quest game. I Mulliganed once to 6, and part of my next hand was a face down card. It was just.. Completely face down, no info, never flipped over. If I click view all cards it turns out to be a mountain (I think my first hand might have had 1 mountain and 6 non-lands?)

I tried clicking on it to see if it would play earlier, and nothing happened. But i clicked a few turns later (after I viewed all) and it let me play it. Not sure about the timing, or what. I can't tell if this is a UI caching like we were experiencing earlier or something else.
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 Devilman06 » 31 Jan 2015, 16:45

version
forge-gui-desktop-1.5.34-20150129.173551-2.tar
Played lotus bloom for it's suspend cost none of the counters got removed it just stayed in exile
Devilman06
 
Posts: 127
Joined: 29 Jan 2010, 03:59
Has thanked: 1 time
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby Devilman06 » 01 Feb 2015, 06:07

version forge-gui-desktop-1.5.35-20150201.015317-1.tar.bz2
Doubling Season is adding twice more than it should. For example I had 1 doubling season, 1 academy Rector and Kiki-Jiki. tapped Kiki to make copy of Rector and instead of 2 copies it made 4. I had one emblem for Kiora. Instead of 2 kraken it add 8 of them.
Devilman06
 
Posts: 127
Joined: 29 Jan 2010, 03:59
Has thanked: 1 time
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby elcnesh » 01 Feb 2015, 10:40

Devilman06 wrote:version forge-gui-desktop-1.5.35-20150201.015317-1.tar.bz2
Doubling Season is adding twice more than it should. For example I had 1 doubling season, 1 academy Rector and Kiki-Jiki. tapped Kiki to make copy of Rector and instead of 2 copies it made 4. I had one emblem for Kiora. Instead of 2 kraken it add 8 of them.
I think these are all related also to triggers appearing twice... Maybe something in TriggerReplacementBase?
elcnesh
 
Posts: 290
Joined: 16 May 2014, 15:11
Location: Netherlands
Has thanked: 34 times
Been thanked: 92 times

Re: Bug Reports (snapshot builds)

Postby Agetian » 01 Feb 2015, 10:52

elcnesh wrote:
Devilman06 wrote:version forge-gui-desktop-1.5.35-20150201.015317-1.tar.bz2
Doubling Season is adding twice more than it should. For example I had 1 doubling season, 1 academy Rector and Kiki-Jiki. tapped Kiki to make copy of Rector and instead of 2 copies it made 4. I had one emblem for Kiora. Instead of 2 kraken it add 8 of them.
I think these are all related also to triggers appearing twice... Maybe something in TriggerReplacementBase?
I tried to reproduce this in isolation in a brand new game (added 1 Doubling Season, 1 Academy Rector, and 1 Kiki-Jiki and did exactly what was mentioned) and couldn't do it - 2 tokens were correctly made and exiled. Tried it repeatedly over the next 5 or 6 turns, worked fine every time. This leads me to a conclusion that it's most likely some kind of a "lingering", "left-over" effect that happens after something else fails to clean up after itself - possibly another issue of triggers not being cleaned up somewhere in the code and thus being added more times than necessary? I can't get to the bottom of this, sadly, so if anybody knows what may be wrong and can help, please assist...

@ Devilman06: Do you roughly remember what was happening in your game before all of this multiple triggering started happening? Maybe some other triggers resolved that you remember, etc.?

- Agetian
Agetian
Programmer
 
Posts: 3490
Joined: 14 Mar 2011, 05:58
Has thanked: 684 times
Been thanked: 572 times

Re: Bug Reports (snapshot builds)

Postby Devilman06 » 02 Feb 2015, 06:04

Agetian wrote:
elcnesh wrote:
Devilman06 wrote:version forge-gui-desktop-1.5.35-20150201.015317-1.tar.bz2
Doubling Season is adding twice more than it should. For example I had 1 doubling season, 1 academy Rector and Kiki-Jiki. tapped Kiki to make copy of Rector and instead of 2 copies it made 4. I had one emblem for Kiora. Instead of 2 kraken it add 8 of them.
I think these are all related also to triggers appearing twice... Maybe something in TriggerReplacementBase?
I tried to reproduce this in isolation in a brand new game (added 1 Doubling Season, 1 Academy Rector, and 1 Kiki-Jiki and did exactly what was mentioned) and couldn't do it - 2 tokens were correctly made and exiled. Tried it repeatedly over the next 5 or 6 turns, worked fine every time. This leads me to a conclusion that it's most likely some kind of a "lingering", "left-over" effect that happens after something else fails to clean up after itself - possibly another issue of triggers not being cleaned up somewhere in the code and thus being added more times than necessary? I can't get to the bottom of this, sadly, so if anybody knows what may be wrong and can help, please assist...

@ Devilman06: Do you roughly remember what was happening in your game before all of this multiple triggering started happening? Maybe some other triggers resolved that you remember, etc.?

- Agetian
Offhand not exactly I tried to replicate and it did as it was supposed to which is strange. It was in a commander game and I played doubling season first then a couple planeswalker's and used Diabolic Revelation to tutor for the academy rector and Kiki-Jiki. before that, one of the planeswalkers was sarkhan vol and used his ultimate which created the 10 dragon tokens as it should. played kiki and rector next turn and that's when i noticed the discrepancy in the number because it created 4. Kiora's Emblem started creating 8 instead of the 2 it should have. I triggered sarkhan's ultimate shortly after and it created near 20 as I recall. I'll try later tonight using that same deck and see if I can't see what triggers the situation and let you know.

On a different note it seems that cards with suspend are not removing counters and stay permanently exiled in this case lotus bloom
Devilman06
 
Posts: 127
Joined: 29 Jan 2010, 03:59
Has thanked: 1 time
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby Agetian » 02 Feb 2015, 06:15

Devilman06 wrote:On a different note it seems that cards with suspend are not removing counters and stay permanently exiled in this case lotus bloom
I tried this (r28769), once again, in a brand new game, and it seemed to work correctly for me, it correctly got 3 counters, then after 3 turns it entered the battlefield from exile as it was supposed to... Can you reproduce this? If so, is there a particular precondition for it to start misbehaving for you, or does it always misbehave even in a brand new game?

- Agetian
Agetian
Programmer
 
Posts: 3490
Joined: 14 Mar 2011, 05:58
Has thanked: 684 times
Been thanked: 572 times

Re: Bug Reports (snapshot builds)

Postby Hanmac » 02 Feb 2015, 06:16

Soulfire Grand Master 's Lifegain abillity doesnt work with copied spells like from Isochron Scepter i tried Glacial Ray
Hanmac
 
Posts: 954
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 158 times

Re: Bug Reports (snapshot builds)

Postby Devilman06 » 02 Feb 2015, 06:58

Doubling season mess up.png
Agetian wrote:
Devilman06 wrote:On a different note it seems that cards with suspend are not removing counters and stay permanently exiled in this case lotus bloom
I tried this (r28769), once again, in a brand new game, and it seemed to work correctly for me, it correctly got 3 counters, then after 3 turns it entered the battlefield from exile as it was supposed to... Can you reproduce this? If so, is there a particular precondition for it to start misbehaving for you, or does it always misbehave even in a brand new game?

- Agetian
using the latest snapshot forge-gui-desktop-1.5.35-20150201.015317-1.tar.bz2
lotus bloom does it every time i've tried to use it


I'm not sure if this is how to add pics or not but I took a snapshot of my game for the doubling season issue I mentioned earlier. I just tapped Kiki-Jiki and you can see the number of token it produced for rector. This was after playing Tamiyo and Demonic Tutor.
[img]
Doubling%20season%20mess%20up.png
[/img]
Devilman06
 
Posts: 127
Joined: 29 Jan 2010, 03:59
Has thanked: 1 time
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby Frgrbrgr » 02 Feb 2015, 19:07

Agetian wrote:
Devilman06 wrote:On a different note it seems that cards with suspend are not removing counters and stay permanently exiled in this case lotus bloom
I tried this (r28769), once again, in a brand new game, and it seemed to work correctly for me, it correctly got 3 counters, then after 3 turns it entered the battlefield from exile as it was supposed to... Can you reproduce this? If so, is there a particular precondition for it to start misbehaving for you, or does it always misbehave even in a brand new game?

- Agetian
Just tested this because it happened to me. In r28769, started a brand new game, casting lotus bloom, counters not coming off it during upkeeps. Only actions in the game were playing a land (Volcanic Island) and then suspending it.
Frgrbrgr
 
Posts: 29
Joined: 02 Feb 2015, 19:05
Has thanked: 5 times
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby hervebronnimann » 03 Feb 2015, 04:00

http://www.cardforge.org/bugz/view.php?id=803

I'm playing the svn latest snapshot. Updated to revision 28747.

I played Ghastly Conscription (FRF) and it manifested the creatures from the opponents' graveyard. However, I was able to turn them up for no mana cost, whereas the card states "manifest them (put them on the battlefield face down; turn face up for their mana cost)". I don't know if it's an issue with manifest, or specifically because the cards changed zone.

Steps To Reproduce Just build a deck with Ghastly Conscription and play it. It happens to me every time.
hervebronnimann
 
Posts: 20
Joined: 29 Nov 2014, 22:34
Has thanked: 1 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby hervebronnimann » 03 Feb 2015, 04:05

Description: The ai was just attacking me with two Mystic of the Hidden Way, and put a Feat of Resistance on one of them. What weird is that both show the attacking red marker, but one is tapped and the other is not (my guess is that the code shows it tapped after it resolves the abilities). Anyway, the stack says it all:

NullPointerException | Open
Code: Select all
Forge Version:    SVN
Operating System: Mac OS X 10.10.1 x86_64
Java Version:     1.7.0_17 Oracle Corporation

java.lang.NullPointerException
   at forge.game.combat.Combat.isBlocking(Combat.java:770)
   at forge.ai.PlayerControllerAi.chooseProtectionType(PlayerControllerAi.java:622)
   at forge.game.ability.effects.ProtectEffect.resolve(ProtectEffect.java:110)
   at forge.game.spellability.AbilitySub.resolve(AbilitySub.java:119)
   at forge.game.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1234)
   at forge.game.ability.AbilityUtils.resolveSubAbilities(AbilityUtils.java:1227)
   at forge.game.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1241)
   at forge.game.ability.AbilityUtils.resolve(AbilityUtils.java:1216)
   at forge.game.zone.MagicStack.resolveStack(MagicStack.java:466)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:972)
   at forge.game.GameAction.startGame(GameAction.java:1390)
   at forge.game.Match.startGame(Match.java:71)
   at forge.match.MatchUtil$2.run(MatchUtil.java:202)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:722)
This is with svn updated to r28773.

By the way (if that matters) immediately before that the logs contain: AI profile Default was chosen for the lobby player Ricardo.
hervebronnimann
 
Posts: 20
Joined: 29 Nov 2014, 22:34
Has thanked: 1 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby matrix4767 » 03 Feb 2015, 13:56

r28775: AI has Dovescape on the field. I have a Seeker of the Way and a Monastery Mentor.
I activate Lightning Strike, Dovescape triggers and counters spell, Prowess triggers resolve and Ai is dealt 3 damage.
Should this happen?
matrix4767
 
Posts: 125
Joined: 09 Sep 2014, 08:10
Has thanked: 5 times
Been thanked: 3 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 69 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 69 users online :: 0 registered, 0 hidden and 69 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 69 guests

Login Form