It is currently 20 May 2025, 21:27
   
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 Givre » 07 Sep 2013, 12:34

Hi,
Tried to attempt the challenge "Alladin's Cave" and that caused the following exception.

NoSuchElementException | Open
Code: Select all
Forge Version:    1.4.6-r22922
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_25 Oracle Corporation

java.util.NoSuchElementException: Card 'ARN' not found in our database.
   at forge.card.CardDb.getCard(CardDb.java:277)
   at forge.quest.QuestUtil.readExtraCard(QuestUtil.java:170)
   at forge.quest.QuestUtil.getHumanStartingCards(QuestUtil.java:120)
   at forge.gui.home.quest.SSubmenuQuestUtil.startGame(SSubmenuQuestUtil.java:431)
   at forge.gui.home.quest.CSubmenuChallenges$5.actionPerformed(CSubmenuChallenges.java:66)
   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.mouseReleased(Unknown Source)
   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$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)
Givre
 
Posts: 1
Joined: 07 Sep 2013, 12:30
Has thanked: 0 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby friarsol » 07 Sep 2013, 12:55

Givre wrote:Hi,
Tried to attempt the challenge "Alladin's Cave" and that caused the following exception.

NoSuchElementException | Open
[code]
Forge Version: 1.4.6-r22922
Operating System: Windows XP 5.1 x86
Java Version: 1.7.0_25 Oracle Corporation
Hi Givre,

This seems to be your first time posting so I'll give you some pointers. In addition, please make sure to read the link in my signature as it gives a handful more.

1. You are using an old version of Forge, 1.4.7 was recently released.
2. We ask that people report bugs in the release thread of the beta that you have as long as it's the most recent beta. If you don't have the most recent beta, please update to that first and see if the bug still occurs. (We fix lots of bugs in between each release)
3. This is the thread for people who are on builds more recent than the latest beta. Most people who use Forge are not on this.
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 swordshine » 07 Sep 2013, 13:44

Cards with CopyPermanent effect (Mizzium Transreliquat) don't redraw after the resolving.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 07 Sep 2013, 15:25

r23140
I cast a Stolen Identity using Melek, Izzet Paragon from the top of my library. It copies and resolves appropriately, but it seems like both the copy and the original spell both cipher. Since the first one to resolve is a copy not a card, it shouldn't be able to be ciphered.

Edit: Scroll Rack puts cards onto the library in the wrong order. The UI dialog lists "Closest to top" in the dialog, but the card that is highest on the list actually is placed on top the library first. (Which means it's furthest from the top). I think the issue is that the same utility function is used for cards like Scroll Rack and cards like Impulse.
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 swordshine » 12 Sep 2013, 13:38

"LibraryPosition$ -1" in DigEffect is broken, e.g. Crown of Convergence.
Edit: Fixed in 23183.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Bug Reports (snapshot builds)

Postby weiskg » 12 Sep 2013, 15:48

i get this message when i start qouick gauntlet

Description: [describe what you were doing when the crash occurred]

ArrayIndexOutOfBoundsException | Open
Code: Select all
Forge Version:    1.4.8-SNAPSHOT-r23173
Operating System: Windows 7 6.1 x86
Java Version:     1.7.0_25 Oracle Corporation

java.lang.ArrayIndexOutOfBoundsException: 0
   at forge.deck.DeckgenUtil.getRandomCustomDeck(DeckgenUtil.java:163)
   at forge.gui.home.gauntlet.CSubmenuGauntletQuick.startGame(CSubmenuGauntletQuick.java:126)
   at forge.gui.home.gauntlet.CSubmenuGauntletQuick.access$000(CSubmenuGauntletQuick.java:36)
   at forge.gui.home.gauntlet.CSubmenuGauntletQuick$1.actionPerformed(CSubmenuGauntletQuick.java:41)
   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.mouseReleased(Unknown Source)
   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$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)
weiskg
 
Posts: 2
Joined: 07 Sep 2011, 15:40
Has thanked: 0 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby spr » 12 Sep 2013, 18:29

r23182. Could be my dev setup but the update of the code from HVM to DDL in Duel Decks Heroes vs. Monsters.txt generates the following and prevents Forge from starting. If I change the code back to HVM it works again.

ConversionException | Open
Code: Select all
Forge Version:    SVN-r23182
Operating System: Windows 7 6.1 amd64
Java Version:     1.7.0_25 Oracle Corporation

EDT > Error loading Gauntlet Data
com.thoughtworks.xstream.converters.ConversionException: Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy. : Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy.
---- Debugging information ----
message             : Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy.
cause-exception     : java.util.NoSuchElementException
cause-message       : Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy.
class               : forge.deck.CardPool
required-type       : forge.deck.CardPool
converter-type      : forge.gauntlet.GauntletIO$DeckSectionToXml
path                : /forge.gauntlet.GauntletData/decks/forge.deck.Deck/parts/entry/forge.deck.CardPool/card[8]
line number         : 62
class[1]            : java.util.EnumMap
converter-type[1]   : com.thoughtworks.xstream.converters.enums.EnumMapConverter
class[2]            : forge.deck.Deck
converter-type[2]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[3]            : java.util.ArrayList
converter-type[3]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[4]            : forge.gauntlet.GauntletData
version             : null
-------------------------------
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryIntoMap(MapConverter.java:90)
   at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:78)
   at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:72)
   at com.thoughtworks.xstream.converters.enums.EnumMapConverter.unmarshal(EnumMapConverter.java:89)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:79)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:72)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:66)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
   at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1058)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1042)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:913)
   at forge.gauntlet.GauntletIO.loadGauntlet(GauntletIO.java:97)
   at forge.gui.home.gauntlet.CSubmenuGauntletQuick.updateData(CSubmenuGauntletQuick.java:74)
   at forge.gui.home.gauntlet.CSubmenuGauntletQuick.initialize(CSubmenuGauntletQuick.java:62)
   at forge.view.FView.initialize(FView.java:135)
   at forge.control.FControl$6.run(FControl.java:218)
   at java.awt.event.InvocationEvent.dispatch(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.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)
Caused by: java.util.NoSuchElementException: Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy.
   at forge.card.CardDb.getCard(CardDb.java:294)
   at forge.gauntlet.GauntletIO$DeckSectionToXml.readCardPrinted(GauntletIO.java:186)
   at forge.gauntlet.GauntletIO$DeckSectionToXml.unmarshal(GauntletIO.java:158)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   ... 57 more

Cheers,
Steve
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Bug Reports (snapshot builds)

Postby swordshine » 13 Sep 2013, 00:23

spr wrote:r23182. Could be my dev setup but the update of the code from HVM to DDL in Duel Decks Heroes vs. Monsters.txt generates the following and prevents Forge from starting. If I change the code back to HVM it works again.

ConversionException | Open
Code: Select all
Forge Version:    SVN-r23182
Operating System: Windows 7 6.1 amd64
Java Version:     1.7.0_25 Oracle Corporation

EDT > Error loading Gauntlet Data
com.thoughtworks.xstream.converters.ConversionException: Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy. : Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy.
---- Debugging information ----
message             : Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy.
cause-exception     : java.util.NoSuchElementException
cause-message       : Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy.
class               : forge.deck.CardPool
required-type       : forge.deck.CardPool
converter-type      : forge.gauntlet.GauntletIO$DeckSectionToXml
path                : /forge.gauntlet.GauntletData/decks/forge.deck.Deck/parts/entry/forge.deck.CardPool/card[8]
line number         : 62
class[1]            : java.util.EnumMap
converter-type[1]   : com.thoughtworks.xstream.converters.enums.EnumMapConverter
class[2]            : forge.deck.Deck
converter-type[2]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[3]            : java.util.ArrayList
converter-type[3]   : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[4]            : forge.gauntlet.GauntletData
version             : null
-------------------------------
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryIntoMap(MapConverter.java:90)
   at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:78)
   at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:72)
   at com.thoughtworks.xstream.converters.enums.EnumMapConverter.unmarshal(EnumMapConverter.java:89)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.addCurrentElementToCollection(CollectionConverter.java:79)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:72)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:66)
   at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:355)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
   at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1058)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1042)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:913)
   at forge.gauntlet.GauntletIO.loadGauntlet(GauntletIO.java:97)
   at forge.gui.home.gauntlet.CSubmenuGauntletQuick.updateData(CSubmenuGauntletQuick.java:74)
   at forge.gui.home.gauntlet.CSubmenuGauntletQuick.initialize(CSubmenuGauntletQuick.java:62)
   at forge.view.FView.initialize(FView.java:135)
   at forge.control.FControl$6.run(FControl.java:218)
   at java.awt.event.InvocationEvent.dispatch(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.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)
Caused by: java.util.NoSuchElementException: Asked for 'Kamahl, Pit Fighter' from 'HVM' #0: db didn't find that copy.
   at forge.card.CardDb.getCard(CardDb.java:294)
   at forge.gauntlet.GauntletIO$DeckSectionToXml.readCardPrinted(GauntletIO.java:186)
   at forge.gauntlet.GauntletIO$DeckSectionToXml.unmarshal(GauntletIO.java:158)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   ... 57 more

Cheers,
Steve
The edition file was written according to http://wiki.mtgsalvation.com/article/Duel_Decks:_Heroes_vs._Monsters, but actually the official code is going to be DDL http://www.slightlymagic.net/forum/viewtopic.php?f=15&t=9954&start=15. I have to update it before the release.
Our deck editor automatically generates the newest edition code for cards. It would be convenient to replace all "|HVM" to "|DDL" for all the custom decks in eclipse.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Bug Reports (snapshot builds)

Postby spr » 13 Sep 2013, 02:29

swordshine wrote:The edition file was written according to http://wiki.mtgsalvation.com/article/Duel_Decks:_Heroes_vs._Monsters, but actually the official code is going to be DDL http://www.slightlymagic.net/forum/viewtopic.php?f=15&t=9954&start=15. I have to update it before the release.
Our deck editor automatically generates the newest edition code for cards. It would be convenient to replace all "|HVM" to "|DDL" for all the custom decks in eclipse.

I resolved it by deleting the .dat files from %appdata%\Forge\gauntlet.

Cheers,
Steve
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 13 Sep 2013, 09:49

AFAIR, there is a setting to add an alias to edition code, so that cards with that code will get loaded correctly

For an example see conflux.txt
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 spr » 13 Sep 2013, 10:55

Max mtg wrote:AFAIR, there is a setting to add an alias to edition code, so that cards with that code will get loaded correctly
For an example see conflux.txt
I gave it a try but it did not make any difference. Since no-one else seems to be having this problem I am assuming it is down to my own peculiar settings. I still have the offending "dat" files if anyone is interested in testing them.

Cheers,
Steve
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 13 Sep 2013, 14:57

Upload the dat-file somewhere - I'll have a look at this.
The fact that alias is not working looks like a bug.
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 spr » 13 Sep 2013, 15:57

See attached. r23178 works. r23182 fails.

Cheers,
Steve
Attachments
gauntlet.zip
(9.94 KiB) Downloaded 215 times
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 13 Sep 2013, 18:30

Ok, found the problem. CardDb in its tryLoadCard method does not really check any aliases.
So I am going to review the cardDb initialization, make it hold the entire edition collection and lookup for edition aliases when one was supplied (just need to get to a diffrent device to make it)

... done in revision 23202
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 swordshine » 16 Sep 2013, 04:01

Max mtg wrote:Ok, found the problem. CardDb in its tryLoadCard method does not really check any aliases.
So I am going to review the cardDb initialization, make it hold the entire edition collection and lookup for edition aliases when one was supplied (just need to get to a diffrent device to make it)

... done in revision 23202
This fix is not good for new THS cards that I'm scripting. I got an exception when I killed one of the THS creatures.
Description:When I sacrifice/kill a THS creature.

NoSuchElementException | Open
Code: Select all
Forge Version:    SVN
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_17 Oracle Corporation

java.util.NoSuchElementException: Asked for 'Akroan Horse' from '???' #-1: db didn't find that copy.
   at forge.card.CardDb.getCard(CardDb.java:300)
   at forge.card.CardDb.getCard(CardDb.java:291)
   at forge.card.CardDb.getCard(CardDb.java:314)
   at forge.card.cardfactory.CardFactory.copyCard(CardFactory.java:92)
   at forge.game.GameAction.changeZone(GameAction.java:176)
   at forge.game.GameAction.moveTo(GameAction.java:420)
   at forge.game.GameAction.moveTo(GameAction.java:399)
   at forge.game.GameAction.moveToGraveyard(GameAction.java:519)
   at forge.game.GameAction.sacrificeDestroy(GameAction.java:1407)
   at forge.game.GameAction.destroyNoRegeneration(GameAction.java:1342)
   at forge.game.GameAction.destroy(GameAction.java:1294)
   at forge.card.ability.effects.DestroyEffect.resolve(DestroyEffect.java:102)
   at forge.card.ability.SpellApiBased.resolve(SpellApiBased.java:54)
   at forge.card.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1094)
   at forge.card.ability.AbilityUtils.resolve(AbilityUtils.java:1076)
   at forge.game.zone.MagicStack.resolveStack(MagicStack.java:520)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:990)
   at forge.game.GameAction.startGame(GameAction.java:1542)
   at forge.game.Match$1.run(Match.java:103)
   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)
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 39 guests


Who is online

In total there are 39 users online :: 0 registered, 0 hidden and 39 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 39 guests

Login Form