5. Hacked Deck Editing - 10buttonmushrooms/PVZH-Modding-Wiki GitHub Wiki
For this recipe, you will need:
-
Recipe_decks_32, found under Android>data>pvzh>files>cache>bundles>files>deck_recipes
-
Data_assets_360, found under Android>data>pvzh>files>cache>bundles>files
to start: select your hero you'd like to make your modded deck for
modifying the recipe_decks file modifies existing strategy decks
so ideally (so we dont have to search the card ID reference), find a strategy deck that already contains the cards you want to have more than 4x of
just for simplicity, i will choose super brains' plundering pirates deck, so remember: this is his 2 star deck.
the card we ideally want 40x of is buried treasure
with that in mind now,
let's open uabea
open your recipe_decks file in uabea
click info (im not the best at drawing circles, deal with it)
click here to sort by name
and then go find Deck_SuperBrainz_R2
we know it's this one, because we're looking for his 2 star deck
his galactic gardens deck is _G1 and his dinosaur deck is _RDinosaur
this is for every hero btw
except Huge Giganticus and Beta Carrotina idk why they're not here
now that you've found the strategy deck you want to edit, click edit data
find buried treasure's list entry
sometimes (most times actually) the name won't appear hre and you'll get some random string, so you'll have to find your card's ID in the id
reference and then match it to the id here. but luckily buried treasure actually has a name there
an example of this is admiral navy bean, who's name you'll find will be one of these random garbled nonsense, so you'll have to find the entry with ID 76
anyway
delete every entry that isn't buried treasure
make sure that buried treasure is entry 0
it should look like this
now you can modify the num of copies to 40, and make sure to modify the array size from 15 to 1
the final script should be (copy and paste if u want):
0 MonoBehaviour Base
0 PPtr<GameObject> m_GameObject
0 int m_FileID = 0
0 SInt64 m_PathID = 0
1 UInt8 m_Enabled = 1
0 PPtr<MonoScript> m_Script
0 int m_FileID = 0
0 SInt64 m_PathID = 7190961916729645371
1 string m_Name = "Deck_SuperBrainz_R2"
0 int Faction = 1
0 CardEntryGroup Cards
0 CardEntry CardEntries
0 Array Array (1 items)
0 int size = 1
[0]
0 CardEntry data
0 int Faction = 1
0 int CardGuid = 684
1 string Guid = "Buried Treasure"
0 int NumCopies = 40
1 string Filter = ""
0 CardEntryGroup SuperpowerOverrides
0 CardEntry CardEntries
0 Array Array (0 items)
0 int size = 0
you can now safely hit x
now you're back here, press [ctrl] + [s] to save and then close this
now back here
file > save
this will overwrite your original recipe_decks file that you opened with uabea
and then throw that back into your game
now we're halfway done
open data_assets_360 with uabea
press info
press [ctrl] + [f] on your keyboard
search for DeckRecipesConfig
hit Edit Data
again
change the number values here to very large numbers (but not too large)
close the data editor
back in asset info press [ctrl] + [s] to save
and then file > save again to overwrite your original Data_Assets file
now drag both deck_recipes and data_assets back to where you found them, and launch the game!
now if you look in your collection
under decks
you can unlock your deck for 10 gems
now some final notes:
-
You can add more than 40 of a card to a deck
- Adding 2000 of a legendary card and then recycling the extras will let you craft every card in the game
-
Dont add zombie cards to a plant deck and dont add plant cards to a zombie deck, the game will be very buggy
-
If you followed this method, you can take these modded decks into multiplayer!
-
If you take cards from classes that the hero cannot use, the deck will not work in multiplayer! (e.g. using beastly cards on super brainz)
-
Do not put superpowers in your decks like normal cards, they will break the deck. also do not put them in the overrides section, that will break the whole recipe_decks file and crash uabea