Page 1 of 1

How do I make a deck file?

PostPosted: 19 Nov 2017, 05:37
by Repeperilka
I've been trying to make a script in powershell that takes decks from mtggoldfish and creates a file with extension .dck containig the cards list of the deck. The thing is, in terms of structure, the "deck" the program creates and the ones Forge do are almost identical (well the program cannot know from whitch expansion is every card in the deck). But when I place the "deck" in the precostructed decks folder, and I open Forge, it just crashes.

Here you have the crash report it prompts
RuntimeException | Open
Code: Select all
Forge Version:    1.6.4-r-1
Operating System: Windows 10 10.0 amd64
Java Version:     1.8.0_144 Oracle Corporation

java lang RuntimeException: An object stored in
GF legacy Ad Nauseam Tendrils.dck failed to load.
Please submit this as a bug with the mentioned file/directory attached.
   at forge.util.storage.StorageReaderFolder.readAll(StorageReaderFolder.java:93)
   at forge.util.storage.StorageBase.<init>(StorageBase.java:42)
   at forge.util.storage.StorageImmediatelySerialized.<init>(StorageImmediatelySerialized.java:58)
   at forge.model.CardCollections.getConstructed(CardCollections.java:51)
   at forge.deck.DeckProxy.getAllConstructedDecks(DeckProxy.java:345)
   at forge.deck.DeckProxy.getAllConstructedDecks(DeckProxy.java:341)
   at forge.screens.deckeditor.controllers.CAllDecks.refresh(CAllDecks.java:34)
   at forge.screens.deckeditor.controllers.CAllDecks.initialize(CAllDecks.java:30)
   at forge.view.FView.initialize(FView.java:125)
   at forge.control.FControl$3.run(FControl.java:262)
   at java.awt.event.InvocationEvent.dispatch(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.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)
And a copy of the fake deck.
Thanks for your atention.

Re: How do I make a deck file?

PostPosted: 20 Nov 2017, 17:30
by churrufli
Try to write the .dck file with (carriage return) in lines.
example:

[metadata](carriage return)
Name=GF legacy Ad Nauseam Tendrils(carriage return)
[Main](carriage return)
2 Island (carriage return)
etc....
sorry for my english hope you understand it

Re: How do I make a deck file?

PostPosted: 26 Nov 2017, 11:22
by Repeperilka
Thanks for the answer, but the problem is solved.
It needed to be in ASCII in order to work.