User:Ballistic Planet/PVZ2 CTG Hacking Guide/Archive

Copy-pasted from

Important notes
Before hacking, make a backup of your .obb file in case you end up doing the hack wrong and subsequently crashing the game, or else, you'll have to re-download the game. You may need to keep five copies, just in case.

It is automatic that you should open HxD Hex Editor and open the .obb file with it, so it is no longer included in the instructions.

Improved text
Edit the game text, that includes, almanac entries, plant names, zombie names, trophy names, but  not  achievement names.
 * 1) Search for the  exact  name of the game text. That means, "Ctrl + F", and remember to  check the Unicode box in the search box before searching. Editing game text is different than editing others, this time, you don't search code names. Example: Don't search "holonut", search "Infi-nut" instead.
 * 2) Now edit it, but  keep the dots. One small mistake and all game text goes ""
 * 3) Now this is the hard-to-explain part: If your edited text is shorter than the original,  nullify  the remaining, but in nullifying, the other hex codes are  not  00, but is  0A . Try to find the pattern starting from the end of the originally nullified code. For example, the original nullifying pattern is (starting backwards) is 00 0A 00 0A, just keep that pattern going until you get to the edited text. For almanac entries, for the ending letter, the code next to the nullified "00", next to the letter,  must be 2E .

Zombot spawning
Edit what the Zombots summon. Note: There is currently no way to edit what Zombot Dark Dragon summons, this only works for the four-legged cyclop zombots.
 * 1) Search for "ZombossSpawnJump" until you find something about future zombies. (for example: future, future_armor1) Just press  F3  to continously search for it.
 * 2) Once you find it, go here. That is where the code names of all zombies are.
 * 3) Now replace. Remember to  nullify  extra space if you want to replace something that has less number of letters than the original one.

Sun costs
This method is for plants costing any amount of sun.


 * 1) Search for {PlantName}Default.
 * 2) Make sure there isn't POPANIM_PLANT_{PLANTNAME} right after it. If there is, press F3 or next.
 * 3) Find the nearest $ sign after {PlantName}Default.
 * 4) Change the next two bytes to the hex values above.

For example, to make Banana Launcher cost 150 sun, change "24 F4 03"  to " 24 96 01" (in hex) after BananaDefault.

Zombot battles with new plants
Edit plants in conveyor belts. Note: This is for Zomboss Battles only, editing plants on other conveyor-belt levels is still possible, but i still don't know what to search to find your desired conveyor-belt level, aside from boss battles.
 * 1) Search for "zombossmech_{choose either "egypt", "pirate", "cowboy", "future", "dark", or "beach"}
 * 2) When you find it, scroll up and down until you see some list of plants.
 * 3) Edit them. Remember to nullify if the new plant has less letters than the original.

Insta-chomp
Remove Chomper's chewing time.
 * 1) Search for "ChewTimeSeconds".
 * 2) There you see dots, then 2 crazy symbols, then dots again.
 * 3) Nullify the 2 crazy symbols.

Seed-Choosing Zombots
Make zomboss battles seed selection levels.

To do this mod, go here: http://hacking-video-games.wikia.com/wiki/Thread:2155

Switcheroo
Switch the places of plants or zombies in the almanac and the seed selection screen. Not really a beneficial hack, but you can do it anyway. Note:  Never in under any circumstances  edit a plant to be a plant that is already there. For example, there's already a Chili Bean, and you replace Torchwood with Chili Bean, there cannot be 2 same plants, or else it crashes.
 * 1) Search for "TypeOrder."
 * 2) You should see a list of plants first. (zombies are in the bottom)
 * 3) Edit the names. You can only edit plants or zombies with the same number of letters. So for example, switch Torchwood with Chili Bean.

New credits
Edit the credits.
 * 1) Search for names or stuff in the credits. No need to "codify" it. Just for the pure word, it means it has spaces with the right capital letters if needed.
 * 2) Press the case sensitive option (only if you type the  exact thing in the credits.)
 * 3) Replace the names with yours, no need to type in code, just type normal. (it means with space)

Restore Power Pinch

 * 1) Search for "Make new powerups"
 * 2) Scroll down a bit until you find the  exact  words "PowerupFlickzombie" (must include the capital F and P)
 * 3) Replace the "Flick" part with "Pinch"

Jester hacks
Edit what Jester Zombie deflects. Note: You can only replace and remove, not add, so you have to make him vulnerable to a projectile he originally can deflect and make him immune to projectiles he can't deflect.
 * 1) Search for "JuggleableProjectiles"
 * 2) Below there you should see projectile names.
 * 3) Now replace one of the projectiles with the one you want.

Spring Bouncing

 * 1) Search for "SpringBeanDefault"
 * 2) Press F3.
 * 3) Below, you should see "KnockbackOffset"
 * 4) In the "B" part of the KnockbackOffset, turn the "B" into a capital "C".

Sleepproof Bean

 * 1) Search for "SpringBeanDefault"
 * 2) Press F3.
 * 3) Below you should see "AttackRecoveryTime"
 * 4) In "AttackRecoveryTime".. A..", nullify "A" and the space before "A"

Zeus reed
Make Lightning Reed's PF cloud deal  insanely big  amounts of damage, make it fly faster, make Lightning Reed's chain lightning have more bounces. Basically, this mod makes Lightning Reed one powerful zeus-like plant.

More bounces

 * 1) Search "lightningreeddefault".
 * 2) Press F3.
 * 3) Below you should find "NumShotBounces$".
 * 4) The dot next to the dollar sign's hex code is "03", now change it to "0A".

Gotta go fast

 * 1) Search "lightningreeddefault".
 * 2) Press F3.
 * 3) Below you should find "PlantFoodCloudSpeed"..úC.."
 * 4) Now change "C" to "D".

More damage
Note: When changing the letters, it is important for it to be  capital letter , using small letters makes a  huge  difference.
 * 1) Search for "lightningreeddefault".
 * 2) Press F3
 * 3) Below you should find "PlantFoodLightningBoltDamage".. A.."
 * 4) Now change "A" to "B".

Unlock Marigold
Search for "IsZenGardenTreasurePlant" and nullify it.

Always free Tile Turnips

 * 1) Search for "PowerPlant" until you will see "SecondTileCost" and "$" after that.
 * 2) Change the numbers after "$" to "80 00" and your turnips will be free.

Different recharge speeds
Search for {PlantName}Default and change the two selected bytes on this picture (it's not always " @", it can be " A", " B", "pA" or "pB") to the hex values above.

Useless hacks
There's no point to these, but they're possible!


 * To remove all costumes, search "CostumeList" and nullify it. This method removes all costumes, there's no way to choose which costumes to keep or to remove. Also, since the 2.9 update, you may not want to do this.