Bug Reports (snapshot builds)
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Bug Reports (snapshot builds)
by Sloth » 28 Nov 2012, 12:00
I will try to fix max hand size.
EDIT: Done.
EDIT: Done.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Bug Reports (snapshot builds)
by friarsol » 29 Nov 2012, 15:55
Hey Arsenal,
I saw you just made this change.
http://svn.slightlymagic.net/websvn/rev ... &rev=18469
Are you sure that's right? I think some code depends on the "base SA" being checked before moving up to the Parents.
I saw you just made this change.
http://svn.slightlymagic.net/websvn/rev ... &rev=18469
Are you sure that's right? I think some code depends on the "base SA" being checked before moving up to the Parents.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Bug Reports (snapshot builds)
by Sloth » 29 Nov 2012, 16:21
Yes, i'm sure as well that some cards will not work this way.friarsol wrote:Hey Arsenal,
I saw you just made this change.
http://svn.slightlymagic.net/websvn/rev ... &rev=18469
Are you sure that's right? I think some code depends on the "base SA" being checked before moving up to the Parents.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Bug Reports (snapshot builds)
by ArsenalNut » 29 Nov 2012, 20:25
The Ulvenwald Tracker fight ability was not working because the getParentTargtingCard method was returning the target selected by the subability rather than the parent Pump ability. This card used to work and I assumed somebody changed the getParentTargtingCard method incorrectly. From the method name, I assumed the method should not check the "child" SpellAbility that was making the query. There should probably be two sets of methods:Sloth wrote:Yes, i'm sure as well that some cards will not work this way.friarsol wrote:Hey Arsenal,
I saw you just made this change.
http://svn.slightlymagic.net/websvn/rev ... &rev=18469
Are you sure that's right? I think some code depends on the "base SA" being checked before moving up to the Parents.
getSATargeting<target class> :
these methods would check the "child" SA before moving on to the parents
getParentTargeting<target class> :
these methods would check only parent SA's
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Bug Reports (snapshot builds)
by Sloth » 29 Nov 2012, 22:08
Yes that would be a good idea. Ulvenwald Tracker should be changed to something like "Defined$ ParentTarget" which leads to getParentTargeting and the normal "Defined$ Targeted" would lead to getSATargeting.ArsenalNut wrote:The Ulvenwald Tracker fight ability was not working because the getParentTargtingCard method was returning the target selected by the subability rather than the parent Pump ability. This card used to work and I assumed somebody changed the getParentTargtingCard method incorrectly. From the method name, I assumed the method should not check the "child" SpellAbility that was making the query. There should probably be two sets of methods:
getSATargeting<target class> :
these methods would check the "child" SA before moving on to the parents
getParentTargeting<target class> :
these methods would check only parent SA's
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Bug Reports (snapshot builds)
by friarsol » 30 Nov 2012, 02:04
Can we make sure this gets fixed before Release? I'm pretty sure there's dozens of cards this change affected as opposed to the one that gained something from the change.Sloth wrote:Yes that would be a good idea. Ulvenwald Tracker should be changed to something like "Defined$ ParentTarget" which leads to getParentTargeting and the normal "Defined$ Targeted" would lead to getSATargeting.ArsenalNut wrote:
getSATargeting<target class> :
these methods would check the "child" SA before moving on to the parents
getParentTargeting<target class> :
these methods would check only parent SA's
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Bug Reports (snapshot builds)
by ArsenalNut » 30 Nov 2012, 03:10
I'll get it squared away tonight.friarsol wrote:Can we make sure this gets fixed before Release? I'm pretty sure there's dozens of cards this change affected as opposed to the one that gained something from the change.Sloth wrote:Yes that would be a good idea. Ulvenwald Tracker should be changed to something like "Defined$ ParentTarget" which leads to getParentTargeting and the normal "Defined$ Targeted" would lead to getSATargeting.ArsenalNut wrote:
getSATargeting<target class> :
these methods would check the "child" SA before moving on to the parents
getParentTargeting<target class> :
these methods would check only parent SA's
EDIT : fixing the issue with Defined cards is fairly straightforward but some of the of the other areas that use the getParentTargeting methods, like calculateAmount, are not. I am going to revert my changes that fixed Ulvenwald Tracker for now so they don't break the release. I am going to post some observation on this bit code over in the Developing Bugs topic for further discussion.
Last edited by ArsenalNut on 30 Nov 2012, 04:29, edited 2 times in total.
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Bug Reports (snapshot builds)
by Chris H. » 30 Nov 2012, 03:15
ArsenalNut wrote:friarsol wrote:Can we make sure this gets fixed before Release? I'm pretty sure there's dozens of cards this change affected as opposed to the one that gained something from the change.
I'll get it squared away tonight.
I can delay the next beta release until this issue is taken care of ... no need to rush.
Just let me know when we are ready.

-
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: Bug Reports (snapshot builds)
by Agetian » 30 Nov 2012, 03:20
I've seen a message somewhere above that the AI couldn't properly use Crypt Rats because it didn't obey the mana color restriction, I tried to take a look at the code to see where the proper restriction could be inserted but couldn't find anything useful, the AI code is, for the most part, a mystery for me at the moment, sadly... Would someone be able to take care of it or should Crypt Rats maybe be flagged "RemAIDeck:True" for the time being if it's too difficult to fix before the release?
- Agetian
- Agetian
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: Bug Reports (snapshot builds)
by Corwin72 » 30 Nov 2012, 04:30
forge-1.3.2-20121129.125941-13
lands have summoning sickness on the ai's turn the turn after they are played.
lands have summoning sickness on the ai's turn the turn after they are played.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: Bug Reports (snapshot builds)
by moomarc » 30 Nov 2012, 08:17
Is anyone else getting random freezes when something is about to resolve. I've only come across it in multiplayer, but aside from that I can't seem to see anything else common between cases. The game will be going smoothly then a player (doesn't matter who) will cast or activate something that goes to the stack, and when you press ok, nothing happens. I don't know if priority isn't being passed properly or something, but the stack is frozen. The game itself doesn't hang though and you can still quit or restart, but it's rather annoying in the middle of a fun match. I've had it while Moonglove Extract was entering play on my side, while an opponent activated Urza avatar's pinging ability (it worked in previous turns) and when an apponent cast a random instant. 

-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: Bug Reports (snapshot builds)
by friarsol » 01 Dec 2012, 03:14
Got this crash.
Attacked with Juggernaut, Talruum Minotaur blocked it. I activated Oracle's Attendant activated to save the Juggernaut, Minotaur was the chosen source. Received the crash, and then my Juggernaut died
Attacked with Juggernaut, Talruum Minotaur blocked it. I activated Oracle's Attendant activated to save the Juggernaut, Minotaur was the chosen source. Received the crash, and then my Juggernaut died

- Oracle's Attendant crash | Open
- java.lang.NullPointerException
at forge.card.abilityfactory.AbilityFactory.getAbility(AbilityFactory.java:130)
at forge.card.replacement.ReplacementHandler.executeReplacement(ReplacementHandler.java:185)
at forge.card.replacement.ReplacementHandler.run(ReplacementHandler.java:144)
at forge.card.replacement.ReplacementHandler.run(ReplacementHandler.java:74)
at forge.Card.replaceDamage(Card.java:8138)
at forge.Card.addCombatDamage(Card.java:7771)
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Bug Reports (snapshot builds)
by swordshine » 02 Dec 2012, 09:54
The spelldescription of Judge Unworthy missed a word "Choose".
- swordshine
- Posts: 682
- Joined: 11 Jul 2010, 02:37
- Has thanked: 116 times
- Been thanked: 87 times
Re: Bug Reports (snapshot builds)
by Agetian » 02 Dec 2012, 13:10
While implementing color restriction for X costs for the AI I noticed the following bug with the AI using Fireball: it'll only spend one mana on Fireball itself and it won't actually spend mana on X to deal damage to me or to any of my creatures. I thought it could have been caused by my changes but even after reverting everything the AI still won't play it correctly for some reason. Here's a test case for dev mode (fireball_ai.test):
- Agetian
- Code: Select all
ActivePlayer=Human
ActivePhase=Main1
AICardsInPlay=Swamp; Swamp; Swamp; Swamp; Mountain; Mountain; Plains; Plains
AICardsInHand=Fireball
HumanCardsInPlay=Raging Goblin; Raging Goblin
HumanLife=2
- Agetian
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: Bug Reports (snapshot builds)
by friarsol » 02 Dec 2012, 22:27
When I attempt to cast Magma Burst with kicker I have to sacrifice lands before activating mana, which is quite confusing since sacrificing costs always happen after paying mana for normal costed things.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Who is online
Users browsing this forum: No registered users and 25 guests