It is currently 24 May 2025, 18:03
   
Text Size

Bug Reports (snapshot builds)

Post MTG Forge Related Programming Questions Here

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

Re: Bug Reports (snapshot builds)

Postby swordshine » 20 Jun 2013, 06:32

r22167, Gideon, Champion of Justice's first ability is broken.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Bug Reports (snapshot builds)

Postby jsv » 20 Jun 2013, 06:44

r22164, got this in forge.log:

Code: Select all
SVar 'X' not found in ability, fallback to Card (Sanity Grinding). Ability is ( )
SVar 'X' not found in ability, fallback to Card (Sanity Grinding). Ability is ( )
SVar 'X' not found in ability, fallback to Card (Sanity Grinding). Ability is ( )
SVar 'X' not found in ability, fallback to Card (Sanity Grinding). Ability is ( )
[... 12 times more ...]
The match was against a random WUG deck, that did contain Sanity Grinding, although I do not remember AI playing that card.

Also in the log:

Code: Select all
Unsupported file type of the sound file: res/sound/end_of_turn.wav - could not get audio input stream from input file
The file indeed looks more like a headerless mp3 than like a proper WAV. I'm attaching a converted version that works fine, even if after testing it I'm not so sure having this sound is such a good idea. It becomes somewhat annoying after a while. :)
Attachments
end_of_turn.zip
(83.47 KiB) Downloaded 197 times
jsv
 
Posts: 53
Joined: 29 May 2013, 03:20
Has thanked: 3 times
Been thanked: 6 times

Re: Bug Reports (snapshot builds)

Postby swordshine » 20 Jun 2013, 09:37

swordshine wrote:r22167, Gideon, Champion of Justice's first ability is broken.
I think this should use getDefinedCardsOrTargeted(sa, "Defined"), Gideon, Champion of Justice is the only card that contains "Defined" and "ValidTgts" in PutCounter effect.
Code: Select all
### Eclipse Workspace Patch 1.0
#P trunk
Index: src/main/java/forge/card/ability/effects/CountersPutEffect.java
===================================================================
--- src/main/java/forge/card/ability/effects/CountersPutEffect.java   (revision 22167)
+++ src/main/java/forge/card/ability/effects/CountersPutEffect.java   (working copy)
@@ -90,7 +90,7 @@
             }
         }
 
-        List<Card> tgtCards = getTargetCards(sa);
+        List<Card> tgtCards = getDefinedCardsOrTargeted(sa, "Defined");
 
         for (final Card tgtCard : tgtCards) {
             counterAmount = (sa.usesTargeting() && sa.hasParam("DividedAsYouChoose")) ? sa.getTargetRestrictions().getDividedValue(tgtCard) : counterAmount;
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Bug Reports (snapshot builds)

Postby jsv » 20 Jun 2013, 10:23

r22167, endless loop on Goblin Arsonist activation:
Attachments
arsonist.png
jsv
 
Posts: 53
Joined: 29 May 2013, 03:20
Has thanked: 3 times
Been thanked: 6 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 20 Jun 2013, 12:17

jsv wrote:r22167, endless loop on Goblin Arsonist activation:
Yea this is the same as I posted below. Sloth says the function that removes it from the stack is broken due to Targeting changes.
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 pqnet » 20 Jun 2013, 14:42

I have found some bugs/crashes and fixed them. Where am I supposed to post report (and patches for review)? I used the bug tracker ( cardforge.org/bugs ), but looks like most activity is done through this thread.
pqnet
 
Posts: 1
Joined: 02 Jun 2013, 21:19
Has thanked: 0 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby friarsol » 20 Jun 2013, 14:47

pqnet wrote:I have found some bugs/crashes and fixed them. Where am I supposed to post report (and patches for review)? I used the bug tracker ( cardforge.org/bugs ), but looks like most activity is done through this thread.
If it's for recent SVN builds, feel free to post them here.
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 Max mtg » 20 Jun 2013, 18:13

Looks like triggers similiar to Goblin Arsonist are already fixed.
Gideon's ability fixed as proposed by Swordshine
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby Hanmac » 20 Jun 2013, 20:33

Momentary Blink does not work with evoke elementars, the sacrifice Effect does still resolve and kills the Creature even if it should be a new one
Hanmac
 
Posts: 954
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 158 times

Re: Bug Reports (snapshot builds)

Postby xbon » 21 Jun 2013, 00:41

friarsol wrote:If it's for recent SVN builds, feel free to post them here.
Anywhere to get more recent snapshots? there hasn't been a new snapshot in 3 days, and I want to use some of the more recently fixed cards like the sliver.
xbon
 
Posts: 124
Joined: 04 Jun 2013, 22:52
Has thanked: 18 times
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby Chris H. » 21 Jun 2013, 01:31

xbon wrote:
friarsol wrote:If it's for recent SVN builds, feel free to post them here.
Anywhere to get more recent snapshots? there hasn't been a new snapshot in 3 days, and I want to use some of the more recently fixed cards like the sliver.
 
The dev team is in the process of changing Forge to require that it be run from Java 7 only. Some issues came up and we are dealing with them as quickly as we can.

At this time Forge will build for windows/*nix only and we are not able to provide a Mac OS X version at this time. We hope to be able to resolve this issue soon.
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: Bug Reports (snapshot builds)

Postby Max mtg » 21 Jun 2013, 01:42

Chris, is it possible to release only windows/linux shapshots for the time being (until jendave fixes osx-related issues)?
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 21 Jun 2013, 02:25

r22173
AI has The Great Gatsby deck (Guildgates) and casts Smelt-Ward Gatekeepers and doesn't target anything. I can't imagine Sloth would put this in a deck if this target didn't work correct. The first time I had Kamahl, Pit Fighter out, which definitely is worth taking, but honestly pretty much anything should be worth grabbing.
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 xbon » 21 Jun 2013, 03:41

Description: Start Match, with 2 fully random decks.

RuntimeException | Open
Code: Select all
Forge Version:    r22173
Operating System: Windows 8 6.2 x86
Java Version:     1.7.0_25 Oracle Corporation

java.lang.RuntimeException: Generate2ColorDeck : get2ColorDeck -- looped too much -- Cr12
   at forge.deck.generate.GenerateColoredDeckBase.addSome(GenerateColoredDeckBase.java:112)
   at forge.deck.generate.GenerateColoredDeckBase.addCmcAdjusted(GenerateColoredDeckBase.java:228)
   at forge.deck.generate.GenerateColoredDeckBase.addCreaturesAndSpells(GenerateColoredDeckBase.java:92)
   at forge.deck.generate.Generate2ColorDeck.getDeck(Generate2ColorDeck.java:91)
   at forge.deck.DeckgenUtil.buildColorDeck(DeckgenUtil.java:78)
   at forge.gui.toolbox.FDeckChooser.getDeck(FDeckChooser.java:284)
   at forge.gui.home.sanctioned.CSubmenuConstructed.startGame(CSubmenuConstructed.java:100)
   at forge.gui.home.sanctioned.CSubmenuConstructed.access$3(CSubmenuConstructed.java:99)
   at forge.gui.home.sanctioned.CSubmenuConstructed$2.actionPerformed(CSubmenuConstructed.java:58)
   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.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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$1.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$1.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$1.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)
Description: Orzhov Euthanist attempted to haunt Lymph Sliver

NullPointerException | Open
Code: Select all
Forge Version:    r22173
Operating System: Windows 8 6.2 x86
Java Version:     1.7.0_25 Oracle Corporation

java.lang.NullPointerException
   at forge.card.cardfactory.CardFactoryUtil$12.resolve(CardFactoryUtil.java:2783)
   at forge.game.zone.MagicStack.resolveStack(MagicStack.java:529)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:871)
   at forge.game.GameAction.startGame(GameAction.java:1456)
   at forge.game.Match$1.run(Match.java:105)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Abu Ja'Far ability doesn't work.
xbon
 
Posts: 124
Joined: 04 Jun 2013, 22:52
Has thanked: 18 times
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 21 Jun 2013, 06:09

Haunt does not throw exceptions when target is about to be chosen.
Now there's another problem - tirggered ability that resolves when haunted creature dies won't leave stack
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 24 guests


Who is online

In total there are 24 users online :: 0 registered, 0 hidden and 24 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 24 guests

Login Form