Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014




Custom Deck Unlocks
Moderator: CCGHQ Admins
Custom Deck Unlocks
by 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!
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
by 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.
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.
Re: Custom Deck Unlocks
by 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.
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.
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Custom Deck Unlocks
by AlphaMagnum » 22 Sep 2013, 15:58
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.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.
- AlphaMagnum
- Posts: 37
- Joined: 15 Mar 2013, 18:21
- Has thanked: 1 time
- Been thanked: 0 time
Re: Custom Deck Unlocks
by RiiakShiNal » 22 Sep 2013, 16:30
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.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.
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).
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Custom Deck Unlocks
by AlphaMagnum » 22 Sep 2013, 16:52
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?RiiakShiNal wrote: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.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.
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).
- AlphaMagnum
- Posts: 37
- Joined: 15 Mar 2013, 18:21
- Has thanked: 1 time
- Been thanked: 0 time
Re: Custom Deck Unlocks
by RiiakShiNal » 22 Sep 2013, 17:58
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.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?
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 12 guests