It is currently 17 Jul 2019, 11:19
   
Text Size

Bug for duel decks in quest mode

Post MTG Forge Related Programming Questions Here

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

Bug for duel decks in quest mode

Postby togie14 » 13 Apr 2017, 23:32

Hey guys, having trouble getting duel decks to work in quest mode.

After modifying my worlds to add duel decks to buy in the shop i am getting the error. If i "Continue" everything works semi-fine. It loads the cards but not the decks.

I noticed in the source there is a note in QuestUtilCards at line 93 about land cards in duel decks: "// Duel decks might have only 2 types of basic lands"

Any Info would be great!

Also, while i am here is there a way to mod best 2 out of 3 to best 1 out of 2 ? I am not in fantasy mode so i do not have access to the item. This should be a setting in the quest preferences.

Worlds.txt:
Code: Select all
Name:Custom: Duel Decks|Sets:DDR, DDQ, DDP, DDO, DDN, DDM, DDL, DDK, DDJ, DDI, DDH, DDG, DDF, DDE,DDD , DDC, DD2, EVG
Error:
Code: Select all
Description: [describe what you were doing when the crash occurred]

[spoiler=NullPointerException][code]
Forge Version:    1.5.60-r-1
Operating System: Windows 10 10.0 amd64
Java Version:     1.8.0_73 Oracle Corporation

java.lang.NullPointerException
   at forge.card.CardEdition$Predicates$1.apply(CardEdition.java:518)
   at forge.card.CardEdition$Predicates$1.apply(CardEdition.java:514)
   at forge.quest.QuestUtilCards.generateBasicLands(QuestUtilCards.java:93)
   at forge.quest.QuestUtilCards.generateCardsInShop(QuestUtilCards.java:729)
   at forge.quest.QuestUtilCards.getShopList(QuestUtilCards.java:748)
   at forge.screens.deckeditor.controllers.CEditorQuestCardShop.update(CEditorQuestCardShop.java:251)
   at forge.screens.deckeditor.CDeckEditorUI.setCurrentEditorController(CDeckEditorUI.java:269)
   at forge.screens.deckeditor.CDeckEditorUI.initialize(CDeckEditorUI.java:296)
   at forge.control.FControl.setCurrentScreen(FControl.java:323)
   at forge.control.FControl.setCurrentScreen(FControl.java:287)
   at forge.GuiDesktop.showSpellShop(GuiDesktop.java:268)
   at forge.quest.QuestUtil.showSpellShop(QuestUtil.java:483)
   at forge.screens.home.quest.CSubmenuDuels$1.run(CSubmenuDuels.java:47)
   at forge.toolbox.FLabel._doMouseAction(FLabel.java:314)
   at forge.toolbox.FLabel.access$1300(FLabel.java:55)
   at forge.toolbox.FLabel$6.onLeftClick(FLabel.java:352)
   at forge.toolbox.FMouseAdapter.mouseReleased(FMouseAdapter.java:246)
   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$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.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$JavaSecurityAccessImpl.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)
[/code][/spoiler]
togie14
 
Posts: 1
Joined: 13 Apr 2017, 23:14
Has thanked: 0 time
Been thanked: 0 time

Re: Bug for duel decks in quest mode

Postby friarsol » 14 Apr 2017, 00:30

Probably the only thing you can do is set your quest preferences for shop basics to 0. Duel decks and quest shop do not work nicely together
friarsol
Global Moderator
 
Posts: 7455
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 930 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 5 guests


Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 10 minutes)
Most users ever online was 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 5 guests

Login Form