Custom Cube
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Custom Cube
by Niv-Mizzet » 15 May 2013, 06:34
I'm trying to get my own personal cube to work in Forge but I'm having a hard time. I managed to import my list, but I'm not sure how to get it to appear in the available draft choices. How do I get the computer to save a file as a draft file? It just saves it as a text. And how do I get it to associate the draft file with the right deck list? I tried saving over one of the other draft files by just renaming it and changing the info, but when I opened the draft, none of the cards were correct. It looked like just random cards.
-
Niv-Mizzet - Posts: 125
- Joined: 17 Oct 2009, 21:20
- Has thanked: 0 time
- Been thanked: 5 times
Re: Custom Cube
by Max mtg » 15 May 2013, 06:43
1. Save your cube as a constructed deck - place the .dck file in /res/cube
2. To create a description file in the /res/draft folder make a copy of any existing *.draft file and the adjust the deckfile and booster structure to meed your needs.
2. To create a description file in the /res/draft folder make a copy of any existing *.draft file and the adjust the deckfile and booster structure to meed your needs.
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: Custom Cube
by Niv-Mizzet » 15 May 2013, 13:34
I did get that far, but I'm getting this error when I try to start a game.
Name:PauperCube
DeckFile:PauperCube
Singleton:True
LandSetCode:ZEN
NumCards:15
NumPacks:3
- IllegalStateException | Open
- Code: Select all
Forge Version: 1.3.14-r21289
Operating System: Windows XP 5.1 x86
Java Version: 1.7.0_17 Oracle Corporation
java.lang.IllegalStateException: The cardpool has been depleted and has no more cards for slot RareMythic
at forge.card.UnOpenedProduct.getBoosterPack(UnOpenedProduct.java:71)
at forge.card.UnOpenedProduct.get(UnOpenedProduct.java:62)
at forge.card.UnOpenedProduct.get(UnOpenedProduct.java:1)
at forge.game.limited.BoosterDraft.get8BoosterPack(BoosterDraft.java:233)
at forge.game.limited.BoosterDraft.<init>(BoosterDraft.java:156)
at forge.gui.home.sanctioned.CSubmenuDraft.setupDraft(CSubmenuDraft.java:183)
at forge.gui.home.sanctioned.CSubmenuDraft.access$2(CSubmenuDraft.java:157)
at forge.gui.home.sanctioned.CSubmenuDraft$2.run(CSubmenuDraft.java:58)
at forge.gui.toolbox.FLabel._doMouseAction(FLabel.java:309)
at forge.gui.toolbox.FLabel.access$5(FLabel.java:304)
at forge.gui.toolbox.FLabel$4.mouseClicked(FLabel.java:345)
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)
Name:PauperCube
DeckFile:PauperCube
Singleton:True
LandSetCode:ZEN
NumCards:15
NumPacks:3
-
Niv-Mizzet - Posts: 125
- Joined: 17 Oct 2009, 21:20
- Has thanked: 0 time
- Been thanked: 5 times
Re: Custom Cube
by Max mtg » 15 May 2013, 18:04
This file format is outdated.
'NumCards' is no longer used. Instead there should be a line describing a booster.
Find some examples below:
'NumCards' is no longer used. Instead there should be a line describing a booster.
Find some examples below:
- Code: Select all
Booster: 1 Rare, 11 Common, 3 Uncommon
Booster: 5 Common, 5 Uncommon, 5 Rare, 1 Mythic
Booster: 16 Any
Booster: 10 Common, 3 Uncommon, 1 RareMythic, 1 BasicLand
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: Custom Cube
by P for Pizza » 24 Feb 2014, 14:02
I tried to port Adam styborsky pauper cube. all goes well until I write the name of a just finished draft. It doesn't save the draft and crashes.this is the log.
- NullPointerException | Open
- Code: Select all
Forge Version: 1.5.12-r${forge.revision}${forge.specialStatus} (mixed revisions detected; please update from the root directory)
Operating System: Windows 7 6.1 x86
Java Version: 1.7.0_51 Oracle Corporation
java.lang.NullPointerException
at forge.gui.deckeditor.controllers.CEditorDraftingProcess.getPlayersDeck(CEditorDraftingProcess.java:159)
at forge.gui.deckeditor.controllers.CEditorDraftingProcess.saveDraft(CEditorDraftingProcess.java:217)
at forge.gui.deckeditor.controllers.CEditorDraftingProcess.onAddItems(CEditorDraftingProcess.java:110)
at forge.gui.deckeditor.controllers.ACEditorBase.addItems(ACEditorBase.java:168)
at forge.gui.deckeditor.CDeckEditorUI$1.move(CDeckEditorUI.java:163)
at forge.gui.deckeditor.CDeckEditorUI.moveSelectedItems(CDeckEditorUI.java:153)
at forge.gui.deckeditor.CDeckEditorUI.addSelectedCards(CDeckEditorUI.java:160)
at forge.gui.deckeditor.CDeckEditorUI$6.run(CDeckEditorUI.java:242)
at forge.gui.toolbox.itemmanager.ItemManager.activateSelectedItems(ItemManager.java:1157)
at forge.gui.toolbox.itemmanager.views.ImageView$3.onLeftDoubleClick(ImageView.java:160)
at forge.gui.toolbox.FMouseAdapter.mousePressed(FMouseAdapter.java:147)
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)
- P for Pizza
- Posts: 13
- Joined: 29 Oct 2013, 11:00
- Has thanked: 1 time
- Been thanked: 5 times
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 44 guests