How do I make a deck file?
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
How do I make a deck file?
by 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
Thanks for your atention.
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)
Thanks for your atention.
- Attachments
-
- GF legacy Ad Nauseam Tendrils.txt
- The Goddamn deck
- (1.12 KiB) Downloaded 149 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?
by 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
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?
by 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.
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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 178 guests