It is currently 14 May 2025, 21:36
   
Text Size

Custom Deck Unlocks

Moderator: CCGHQ Admins

Custom Deck Unlocks

Postby AlphaMagnum » 22 Sep 2013, 04:52

Thanks to the help of the coders on this forum, I've got my hands on a shiny custom deck. There's only one problem: all 30 of the unlockable cards are unlocked by default. I was hoping to play through the campaigns and acquire the cards one step at a time. It's true that I can artificially do so currently by self-policing each transfer from unlocked cards to the main deck, but I'd rather learn how to make the cards start out locked just for my own modding knowledge. That way, I can build decks in the future to my own specifications.

Is there a simple way to lock all the cards? Some line in one of the XML files associated with the deck, maybe? I don't recall how it worked in DotP 2013, but I do remember that it was possible to start with no cards unlocked and slowly get a whole deck in the end. Any help would be greatly appreciated!
AlphaMagnum
 
Posts: 37
Joined: 15 Mar 2013, 18:21
Has thanked: 1 time
Been thanked: 0 time

Re: Custom Deck Unlocks

Postby Kieran » 22 Sep 2013, 06:56

AlphaMagnum, if you would like for your 'Unlockables' to be locked I think I can upload you a version of your custom deck with them 'locked'. I think it's called promo. Give me just a short while to test it and I'll upload it here for your convenience.

Edit: After some quick research I think promo is something different entirely. I'll get back with you after I delve deeper into the information.
Kieran
 
Posts: 232
Joined: 03 Nov 2012, 01:09
Has thanked: 21 times
Been thanked: 16 times

Re: Custom Deck Unlocks

Postby RiiakShiNal » 22 Sep 2013, 14:09

The reason your unlockables are unlocked by default is probably because the steam_id_1 and/or steam_id_2 attributes in the deck are set to 213850 which causes the unlocks to be unlocked by default. If you change those numbers in the Deck XML those cards can be locked (though you may need to delete your profile to get them to lock).

It should be noted that if you choose to have the cards locked then you may run into problems trying to unlock them by playing through the game regularly as they may get re-locked when you exit the game due to the game not storing deck configurations for custom decks. It is due to this reason that among modders it is a best practice to make the unlockable cards unlocked by default for custom decks.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Custom Deck Unlocks

Postby AlphaMagnum » 22 Sep 2013, 15:58

RiiakShiNal wrote:The reason your unlockables are unlocked by default is probably because the steam_id_1 and/or steam_id_2 attributes in the deck are set to 213850 which causes the unlocks to be unlocked by default. If you change those numbers in the Deck XML those cards can be locked (though you may need to delete your profile to get them to lock).

It should be noted that if you choose to have the cards locked then you may run into problems trying to unlock them by playing through the game regularly as they may get re-locked when you exit the game due to the game not storing deck configurations for custom decks. It is due to this reason that among modders it is a best practice to make the unlockable cards unlocked by default for custom decks.
Is there a limit on the number of custom decks the game will store? I only really want one deck to be saved. I'm guessing it would be impossible to make the game treat my custom deck as one of the official decks that came with the game.
AlphaMagnum
 
Posts: 37
Joined: 15 Mar 2013, 18:21
Has thanked: 1 time
Been thanked: 0 time

Re: Custom Deck Unlocks

Postby RiiakShiNal » 22 Sep 2013, 16:30

AlphaMagnum wrote:Is there a limit on the number of custom decks the game will store? I only really want one deck to be saved. I'm guessing it would be impossible to make the game treat my custom deck as one of the official decks that came with the game.
We don't currently know how many deck configurations the game will save, but we do know it is a fixed amount (due to the profile size being constant). We have no way of controlling which decks get saved to the profile so if a custom deck gets saved to the profile then it is through pure luck.

The only way to get the game to treat a custom deck like an official deck is to replace an official deck with your custom one and use file names and ids of the deck you are replacing (this would ensure proper overriding of the official deck).
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Custom Deck Unlocks

Postby AlphaMagnum » 22 Sep 2013, 16:52

RiiakShiNal wrote:
AlphaMagnum wrote:Is there a limit on the number of custom decks the game will store? I only really want one deck to be saved. I'm guessing it would be impossible to make the game treat my custom deck as one of the official decks that came with the game.
We don't currently know how many deck configurations the game will save, but we do know it is a fixed amount (due to the profile size being constant). We have no way of controlling which decks get saved to the profile so if a custom deck gets saved to the profile then it is through pure luck.

The only way to get the game to treat a custom deck like an official deck is to replace an official deck with your custom one and use file names and ids of the deck you are replacing (this would ensure proper overriding of the official deck).
Hm. That's definitely something to think about. Would you expect to see any errors associated with turning an official deck into a custom deck, so long as I maintain the file names and IDs?
AlphaMagnum
 
Posts: 37
Joined: 15 Mar 2013, 18:21
Has thanked: 1 time
Been thanked: 0 time

Re: Custom Deck Unlocks

Postby RiiakShiNal » 22 Sep 2013, 17:58

AlphaMagnum wrote:Hm. That's definitely something to think about. Would you expect to see any errors associated with turning an official deck into a custom deck, so long as I maintain the file names and IDs?
Errors, no, but it would prevent you from playing online because to play online the person you would want to play against would need to have the exact same modification.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times


Return to 2014

Who is online

Users browsing this forum: No registered users and 12 guests


Who is online

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

Login Form