Quest Deck Question
by mtgrares
Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins
Quest Deck Question
by Huggybaby » 22 Feb 2010, 13:22
I've asked this before I think, but how do I start a quest with a deck I've previously made? I only get errored out now trying to import.
-

Huggybaby - Administrator
- Posts: 3124
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 628 times
- Been thanked: 574 times
Re: Quest Deck Question
by Chris H. » 23 Feb 2010, 02:35
You should be able to import any ".deck" file into the quest mode deck editor. I just imported the Zoo deck from our forums and imported it into the quest mode (Forge 02-21) and played it against one of the computer's morph decks. It was close for a while.
Could you post the error? It may help.
Could you post the error? It may help.
-

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: Quest Deck Question
by Huggybaby » 23 Feb 2010, 11:35
Here you go. It only seems to error when starting a new quest. If I continue, I can import OK.
Deck cannot be cast to forge.Deck
Version:
Forge -- official beta: $Date: 2010-02-13 13:21:36 -0600 (Sat, 13 Feb 2010) $, SVN revision: $Revision: 376 $
Detailed error trace:
java.lang.ClassCastException: Deck cannot be cast to forge.Deck
at forge.Gui_Quest_DeckEditor_Menu.importDeck(Gui_Quest_DeckEditor_Menu.java:426)
at forge.Gui_Quest_DeckEditor_Menu.access$1(Gui_Quest_DeckEditor_Menu.java:409)
at forge.Gui_Quest_DeckEditor_Menu$3.actionPerformed(Gui_Quest_DeckEditor_Menu.java:226)
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.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.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)
Deck cannot be cast to forge.Deck
Version:
Forge -- official beta: $Date: 2010-02-13 13:21:36 -0600 (Sat, 13 Feb 2010) $, SVN revision: $Revision: 376 $
Detailed error trace:
java.lang.ClassCastException: Deck cannot be cast to forge.Deck
at forge.Gui_Quest_DeckEditor_Menu.importDeck(Gui_Quest_DeckEditor_Menu.java:426)
at forge.Gui_Quest_DeckEditor_Menu.access$1(Gui_Quest_DeckEditor_Menu.java:409)
at forge.Gui_Quest_DeckEditor_Menu$3.actionPerformed(Gui_Quest_DeckEditor_Menu.java:226)
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.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.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)
-

Huggybaby - Administrator
- Posts: 3124
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 628 times
- Been thanked: 574 times
Re: Quest Deck Question
by Chris H. » 25 Feb 2010, 13:50
I tried to recreate your error on my end, and the .deck file will successfully import no matter how hard I try. In my case, New Quest and Continue Quest works fine.
-

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: Quest Deck Question
by Huggybaby » 25 Feb 2010, 14:00
Interesting...Well, thanks for looking at it Chris. It's not a show stopper, just a niggle.
-

Huggybaby - Administrator
- Posts: 3124
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 628 times
- Been thanked: 574 times
Re: Quest Deck Question
by mtgrares » 25 Feb 2010, 18:11
I just downloaded and fresh copy of Forge and got the same error.
I found a fix though.
1. Exit out of the quest mode and open the deck editor.
2. Open a deck and then export it.
3. Go back into quest mode and open the deck editor
4. Import that deck.
The reason that this works is because I wrote the import and export code. Somebody (sorry I forget who) rewrote how Forge stores decks and the new deck filetype doesn't work with my import/export code.
I hope that helps Huggybaby. (Hey, I want people to use and enjoy Forge.)
I found a fix though.
1. Exit out of the quest mode and open the deck editor.
2. Open a deck and then export it.
3. Go back into quest mode and open the deck editor
4. Import that deck.
The reason that this works is because I wrote the import and export code. Somebody (sorry I forget who) rewrote how Forge stores decks and the new deck filetype doesn't work with my import/export code.
I hope that helps Huggybaby. (Hey, I want people to use and enjoy Forge.)
- Code: Select all
Deck cannot be cast to forge.Deck
Version:
Forge -- official beta: $Date: 2010-02-13 13:21:36 -0600 (Sat, 13 Feb 2010) $, SVN revision: $Revision: 376 $
Detailed error trace:
java.lang.ClassCastException: Deck cannot be cast to forge.Deck
at forge.Gui_Quest_DeckEditor_Menu.importDeck(Gui_Quest_DeckEditor_Menu.java:426)
at forge.Gui_Quest_DeckEditor_Menu.access$1(Gui_Quest_DeckEditor_Menu.java:409)
...
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
Re: Quest Deck Question
by Huggybaby » 25 Feb 2010, 18:20
Thanks for the confirmation and workaround mtgrares. It's nice to know I'm not crazy. 
-

Huggybaby - Administrator
- Posts: 3124
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 628 times
- Been thanked: 574 times
Re: Quest Deck Question
by mtgrares » 25 Feb 2010, 18:31
Well Forge is very flexible (i.e. it has bugs and buggy workarounds).
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
Re: Quest Deck Question
by Chris H. » 25 Feb 2010, 20:56
`mtgrares wrote:I just downloaded and fresh copy of Forge and got the same error.
I found a fix though.
1. Exit out of the quest mode and open the deck editor.
2. Open a deck and then export it.
3. Go back into quest mode and open the deck editor
4. Import that deck.
The reason that this works is because I wrote the import and export code. Somebody (sorry I forget who) rewrote how Forge stores decks and the new deck filetype doesn't work with my import/export code.
I hope that helps Huggybaby. (Hey, I want people to use and enjoy Forge.)
- Code: Select all
Deck cannot be cast to forge.Deck
Version:
Forge -- official beta: $Date: 2010-02-13 13:21:36 -0600 (Sat, 13 Feb 2010) $, SVN revision: $Revision: 376 $
Detailed error trace:
java.lang.ClassCastException: Deck cannot be cast to forge.Deck
at forge.Gui_Quest_DeckEditor_Menu.importDeck(Gui_Quest_DeckEditor_Menu.java:426)
at forge.Gui_Quest_DeckEditor_Menu.access$1(Gui_Quest_DeckEditor_Menu.java:409)
...
I tried Rare's approach and I finally got an error message, not the same one but a different one.
- Code: Select all
An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
http://www.slightlymagic.net/forum/viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com
invalid stream header: 74657374
Version:
Forge -- official beta: $Date: 2010-02-22 11:48:25 -0500 (Mon, 22 Feb 2010) $, SVN revision: $Revision: 415 $
Detailed error trace:
java.io.StreamCorruptedException: invalid stream header: 74657374
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at forge.Gui_Quest_DeckEditor_Menu.importDeck(Gui_Quest_DeckEditor_Menu.java:417)
at forge.Gui_Quest_DeckEditor_Menu.access$1(Gui_Quest_DeckEditor_Menu.java:409)
at forge.Gui_Quest_DeckEditor_Menu$3.actionPerformed(Gui_Quest_DeckEditor_Menu.java:226)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:137)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.Component.processMouseEvent(Component.java:6348)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
at java.awt.Component.processEvent(Component.java:6113)
at java.awt.Container.processEvent(Container.java:2085)
at java.awt.Component.dispatchEventImpl(Component.java:4714)
at java.awt.Container.dispatchEventImpl(Container.java:2143)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
-

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: Quest Deck Question
by silly freak » 25 Feb 2010, 21:50
i can't tell why it doesn't work. rares' workaround should do... does it happen everytime? the stream header is not even written by forge code, so I can only guess that either it was a glitch or the export code does not totally match the import code.
Do you know how old the deck is, Huggybaby? as rares said, I reworked the deck system some time ago, but not the quest decks. I thought it was working though. and you can import decks into a running quest but not a new one? how long was it that you started the quest?
I hope i can help you...
Do you know how old the deck is, Huggybaby? as rares said, I reworked the deck system some time ago, but not the quest decks. I thought it was working though. and you can import decks into a running quest but not a new one? how long was it that you started the quest?
I hope i can help you...
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
Re: Quest Deck Question
by Chris H. » 25 Feb 2010, 22:14
`silly freak wrote:the stream header is not even written by forge code, so I can only guess that either it was a glitch or the export code does not totally match the import code.
Yeah, I think the invalid stream header is caused by a miss match. I was trying to import a new style ".dck" file rather than the old style ".deck" file.
-

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: Quest Deck Question
by Huggybaby » 26 Feb 2010, 00:31
I tried importing any number of .deck files from the latest more%20decks.zip. It's possible that some of them work, but I tried around 20 so I don't think so.silly freak wrote:Do you know how old the deck is, Huggybaby?
-

Huggybaby - Administrator
- Posts: 3124
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 628 times
- Been thanked: 574 times
Re: Quest Deck Question
by silly freak » 26 Feb 2010, 05:53
okay, i'll do my best
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
- silly freak
- DEVELOPER
- Posts: 598
- Joined: 26 Mar 2009, 07:18
- Location: Vienna, Austria
- Has thanked: 93 times
- Been thanked: 25 times
Re: Quest Deck Question
by Chris H. » 26 Feb 2010, 12:26
I tried to import a deck from the original more decks archive and got the same error as Huggybaby. And I got it with the normal non-quest mode deck editor.
If I export one of my existing .dck files so that it is converted to a .deck file, then I can re-import it back into the deck editor without an error.
So, the answer to your original question:
Most of the .deck files that have been uploaded to the Forge Decks Forum in recent months should be compatible.
If I export one of my existing .dck files so that it is converted to a .deck file, then I can re-import it back into the deck editor without an error.
So, the answer to your original question:
- The individual .deck files that come with the original more decks archive are not compatible at this time. People should instead use the newer archive:
more decks 11-12-2009.zip
Select one of these .dck files and place it into your Forge/res/decks/ folder. Then select your deck from the non-quest mode deck editor and export the deck. This will convert the .dck file into a compatible .deck file.
You should then be able to import this compatible .deck file into the quest mode deck editor.
Most of the .deck files that have been uploaded to the Forge Decks Forum in recent months should be compatible.
-

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: Quest Deck Question
by mtgrares » 26 Feb 2010, 18:42
silly freak, you did a good job updating the deck code. I never really thought about this stuff being updated and the quest mode uses a different "internal system" that crams the AI and player's decks into one file: questData
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
16 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 13 guests
