It is currently 16 Apr 2024, 07:00
   
Text Size

How do I make a deck file?

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

How do I make a deck file?

Postby Repeperilka » 19 Nov 2017, 05:37

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.
Attachments
GF legacy Ad Nauseam Tendrils.txt
The Goddamn deck
(1.12 KiB) Downloaded 147 times
Repeperilka
 
Posts: 5
Joined: 19 Nov 2017, 05:12
Has thanked: 1 time
Been thanked: 2 times

Re: How do I make a deck file?

Postby churrufli » 20 Nov 2017, 17:30

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
churrufli
 
Posts: 53
Joined: 15 Feb 2016, 12:12
Has thanked: 14 times
Been thanked: 15 times

Re: How do I make a deck file?

Postby Repeperilka » 26 Nov 2017, 11:22

Thanks for the answer, but the problem is solved.
It needed to be in ASCII in order to work.
Repeperilka
 
Posts: 5
Joined: 19 Nov 2017, 05:12
Has thanked: 1 time
Been thanked: 2 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 66 guests


Who is online

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

Login Form