It is currently 17 Aug 2025, 03:56
   
Text Size

Are serialized decks still used?

Post MTG Forge Related Programming Questions Here

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

Are serialized decks still used?

Postby Fnoed » 01 May 2011, 07:25

Are serialized forge.Deck instances (the old deck format) still in active use, or can we assume that they have all been converted to the new text-based format?

I am trying to move quest deck metadata (deck name, description, difficulty, etc.) into the .dck files so that code changes are no longer necessary to add quest opponents. This task is going to be much more painful if serialization compatibility is still necessary.
Fnoed
 
Posts: 84
Joined: 20 Dec 2010, 01:03
Has thanked: 0 time
Been thanked: 3 times

Re: Are serialized decks still used?

Postby Sloth » 01 May 2011, 09:30

Fnoed wrote:Are serialized forge.Deck instances (the old deck format) still in active use, or can we assume that they have all been converted to the new text-based format?

I am trying to move quest deck metadata (deck name, description, difficulty, etc.) into the .dck files so that code changes are no longer necessary to add quest opponents. This task is going to be much more painful if serialization compatibility is still necessary.
No decks appear in the game that are not in text form. If decks are loaded they are not used. So yes, please move the quest deck metadata, Fnod! [-o<
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Are serialized decks still used?

Postby Chris H. » 01 May 2011, 11:41

I think that this is a good idea. We will not miss editing the buildDeckList() method. :)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Are serialized decks still used?

Postby timmermac » 01 May 2011, 16:28

Will this bring back the ability to import decks into quest mode?
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Are serialized decks still used?

Postby Fnoed » 01 May 2011, 16:44

What do you mean by import? Copying AI decks into the quest deck folder?
Fnoed
 
Posts: 84
Joined: 20 Dec 2010, 01:03
Has thanked: 0 time
Been thanked: 3 times

Re: Are serialized decks still used?

Postby Chris H. » 01 May 2011, 17:04

Fnoed wrote:What do you mean by import? Copying AI decks into the quest deck folder?
`
We used to be able to import a serialized .deck file into our questData file. This would add the cards from the imported deck into our existing card pool. It would also add the pre-constructed deck itself and allow us to play a quest with the pre-constructed deck.

It is something of a cheat but it can also be a lot of fun for some people.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Are serialized decks still used?

Postby Fnoed » 01 May 2011, 17:14

Ah. My changes will not affect that potion of the code.

Perhaps we should support it officially, instead of importing using a hack? Perhaps allow the user to optionally import a single deck on new quest start?
Fnoed
 
Posts: 84
Joined: 20 Dec 2010, 01:03
Has thanked: 0 time
Been thanked: 3 times

Re: Are serialized decks still used?

Postby Sloth » 01 May 2011, 17:32

Fnoed wrote:Ah. My changes will not affect that potion of the code.

Perhaps we should support it officially, instead of importing using a hack? Perhaps allow the user to optionally import a single deck on new quest start?
As long as any deck can be imported it will always be cheating. But there's no reason not to allow it if it's not too much work. We can just make clear that this is not intended to be the way quest mode is to be played.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Are serialized decks still used?

Postby friarsol » 01 May 2011, 17:40

Sloth wrote:As long as any deck can be imported it will always be cheating. But there's no reason not to allow it if it's not too much work. We can just make clear that this is not intended to be the way quest mode is to be played.
Probably the best way to handle it is to open a Quest Mode option where you choose your starting deck (instead of having one generated for you) and play through that way.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 4 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 4 guests

Login Form