Hacking guide

This guide will assist you in modifying Plants vs. Zombies.

Before Start (For Cheat Engine only)

 * Open both Cheat Engine and Plants vs Zombies.
 * Choose any game mode with Choose Your Seed and start game.
 * Go to Cheat Engine, click at the blinking computer icon.
 * Choose "popcapgames1.exe" or "PlantsVsZombies.exe".
 * Start your hacking type below.

Please note, that these hacks will not work on the steam version of Plants vs. Zombies.

Unlimited Sun
Requirements: Steps: Warning: Alternative Way: Your Sun amount says 0 but it's actually unlimited.
 * Cheat Engine
 * Plants Vs Zombies
 * Type the number of sun you have in Hex Box.
 * Click "First Scan".
 * Then, go to Plants Vs Zombies, plant ONE PLANT on the lawn.
 * Go back to Cheat Engine, type the number of sun you have left in Hex Box.
 * Click "Next Scan"
 * Double-click at the address found at the left table.
 * Double-click at the number in the Value row in below table.
 * Type the number of sun you want.
 * Click at the box in Frozen or Active row.
 * COMPLETE.
 * Please delete the address at the below table after finishing game or Plants Vs Zombies will not open for certain time. Restart your computer if you forgot to do this.
 * If you found more than one address at the left table, choose the below address or restart from 3rd step.
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "00494445". Then click OK.
 * Make the Assembler Code "mov [edi+00005578],0001869F". And click OK.
 * There is a message. Click Yes.
 * DONE.

Coins hack
This hack is for those players who are lack of coins.

Requirement: Steps:
 * Cheat Engine
 * Plants Vs Zombies
 * Divide your coins amount by 10 and enter it in the value bar. (Example: If you have 50 coins, then you should input 5 in the value bar. Therefore, if you have 38960 coins, you should enter 3896 in the value bar.)
 * Click "First Scan".
 * Spend some of your coins on something in the shop. (Example: Buy Fertilizer.)
 * Divide the amount of coins you left by ten and enter it in the value bar. (Example: After buying fertilizer, you have 38210 coins, so you should type 3821 in the value bar.
 * Click "Next Scan".
 * Click on the address shown on the left. If there is two or more addresses, try all of them and see which works. If there are too many of them, reapeat step 1~5.
 * Double-click at the number in the value row in the below table.
 * Type how many coins do you want when the dialouge comes up.
 * DONE.

Instant Refill
This hack is for the impatient hacker. This hack removes the recharge time on your plants, allowing you to plant them as often as you want.

For Old PC Version

Requirement: Steps: Special: This hack will stay even after closing the Cheat Engine.
 * Cheat Engine
 * Plants Vs Zombies
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "0048728C".
 * Double-click at the coloured text.
 * Change "01" to "200" behind the comma.
 * Click OK.
 * There is a message says the generated code is 7 byte long and the opcode is 4 bytes long, click yes to remove "nop" from "00487290", "00487291", and "00487292".
 * COMPLETE.

For Game of the Year Edition

Requirement: Steps:
 * Cheat Engine
 * Plants Vs Zombies
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "00491E4C". If coloured text isn't [edi+24], go to address "004958BC".
 * Double-click at the coloured text.
 * Change "24" to "48". (Or change inc to add, add comma and 200 at the end of the code also works.)
 * Click OK.
 * COMPLETE

Another way (GOTY)
 * Click "Memory View".
 * Right click at the address and choose "Go to address".
 * Type "00491E55".
 * Double click on the coloured text.
 * Change the address code to "nop". (Original text is "jle 00491E6B")
 * There is a message says the generated code is 1 byte long and the opcode is 2 bytes long, click yes to replace "00491E56" to "nop".
 * COMPLETE

Free Plants
Plants do not cost any sun

Requirements:
 * Cheat Engine
 * Plants vs. Zombies

For GOTY Version Only:
 * Click "Memory View".
 * Right click at the address and choose "Go to address".
 * Type "0041E846".
 * Double click on the coloured text.
 * Change the address code to "nop".
 * There is a message says the generated code is 1 byte long and the opcode is 2 bytes long, click yes to replace " 0041E846 " to "nop".
 * Done

Kill Zombies in one hit even with Shields or Headwear
When a Projectile hits a Zombie, that Zombie dies instantly.

Click Yes if there is a message after changing a Assembly Code.

Requirements: For Old PC Version Steps: ​NOTE: Shields or Headwear will require an extra hit in:
 * Cheat Engine
 * Plants vs. Zombies
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "0053130F". Then click OK.
 * Double-click the selected Address
 * Change the selected Address' Assembler Code to "sub edi,[esp]".
 * Click OK.
 * Right-click at the address and choose "Go to Address".
 * Type "00531053". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "jmp 0053105e".
 * Click OK.
 * Right-click at the address and choose "Go to Address".
 * Type "0053105E". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "sub ecx,[ebp+000000d0]".
 * Click OK.
 * Right-click at the address and choose "Go to Address".
 * Type "00530CA1". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "mov [esi+000000dc],eax".
 * Click OK.
 * DONE.

Wall-nut Bowling, if a Newspaper Zombie is hit with a Wall-Nut, the newspaper will not disappear but if you use an Explode-o-Nut or a Giant Wall-nut, it will die.

​For GOTY Version Steps:
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "00541CDA". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "sub ebp,ebp".
 * Click OK.
 * Right-click at the address and choose "Go to Address".
 * Type "00542223". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "jmp 0054222d".
 * Click OK.
 * Right-click at the address and choose "Go to Address".
 * Type "00542214". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "nop".
 * Click OK.
 * Right-click at the address and choose "Go to Address".
 * Type "0047169B". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "add [eax+40],edx".
 * Click OK.
 * DONE.

NOTE: This will only work in Whack a Zombie if you use an Ice-shroom.

NOTE: The instant your Snorkel Zombies get hungry in Zombiquarium, they die instead.

NOTE: You can even kill Dr. Zomboss with one Cabbage-pult.

NOTE: This does not work on either version of Wall-nut Bowling.

Zombie Cheats
NOTE: This hack can affect game modes that aren't I, Zombie.

Requirements:
 * Cheat Engine
 * Plants vs. Zombies

Zombie's Point Sun

 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "0041E844". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "add esi,ebx".
 * Click OK.
 * DONE.

Plants die instantly
This makes the Plants so weak, one bite is enough to kill them, making it good for a challenge!

Click Yes if there is a message after changing a Assembly Code.

For Old PC Version ​For GOTY Version
 * Right-click at the address and choose "Go to Address".
 * Type "0052FCF0". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "mov [esi+40],00000000".
 * Click OK.
 * DONE.


 * Right-click at the address and choose "Go to Address".
 * Type "00540680". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "mov [esi+40],00000000".
 * Click OK.
 * DONE.

Invincible zombies
This can make a Zombie unkillable. However, Chompers can kill. This is a good cheat for I, Zombie levels.
 * Right-click at the address and choose "Go to Address".
 * Type "00541CDA". Then click OK.
 * Double-click the selected Address.
 * Change the selected Address' Assembler Code to "add ebp,[esp+20]".
 * Click OK.
 * Right-click at the address and choose "Go to Address".
 * Go to 00542223
 * Change the Assembler Code to jmp 0054222d
 * Click OK.
 * Right-click at the address and choose "Go to Address".
 * Go to 00542214
 * Change the Assembler Code to nop
 * Click OK.
 * DONE.

Indestructible Plant
This hack makes your plants invulnerable to damage.

Requirement: For Old PC Version Steps:
 * Cheat Engine
 * Plants Vs Zombies
 * Click "Memory View"
 * Right-click at the address and choose "Go to Address".
 * Type: "0052FCF0"
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "nop".
 * Click OK.
 * COMPLETE.

For GOTY Edition

Requirement: Steps: Special: This hack will remain even after closing the Cheat Engine.
 * Cheat Engine
 * Plants Vs Zombies
 * Click "Memory View"
 * Right-click at the address and choose "Go to Address".
 * Type: "00540680"
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "nop".
 * Click OK.
 * COMPLETE.

Warning: This only prevents damage from zombies eating plants. It provides no protection against other ways of damaging or destroying plants, such as from Zombonis, Catapult Zombies, Gargantuars and Dr. Zomboss. Also, Plants will still be vulnerable to Peashooter Zombie and Gatling Pea Zombie's Peas. To make Plants Invulnerable to their Peas, see Unhittable Plants in ZomBotany.

Unhittable Plants in ZomBotany
Plants cannot be hit by Peashooter Zombie and Gatling Pea Zombie's Peas regardless of the Plant's height. This applies to both Minigames ZomBotany 1 and 2.

NOTE: This was done in the GOTY Version.

Requirement: Steps:
 * Cheat Engine
 * Plants vs. Zombies
 * Click "Memory View"
 * Right-click at the address and choose "Go to Address".
 * Type "00471686"
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "jmp 004716fd".
 * Click OK.
 * COMPLETE.

Instant Win in Beghouled
Your first match will make the Trophy appear. This applies to both Minigames Beghouled and Twist.

NOTE: This was done in the GOTY Version.

Requirement: Steps:
 * Cheat Engine
 * Plants Vs Zombies
 * Click "Memory View"
 * Right-click at the address and choose "Go to Address".
 * Type "00423E40".
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "nop".
 * Click OK.
 * On the message, click yes.
 * COMPLETE.

Instant Zen Garden Plant Growth
This is a hack for those who don't want to wait for their Zen Garden plants to grow.

Requirement: Plants Vs Zombies only.

Steps: Warning: If you change your computer time too often, your computer's time will not change while it is off.
 * Open Plants Vs Zombies.
 * Double-click at the time on your computer (located at the taskbar, below-right)
 * Choose the next day from current day. (E.g., today is 15 so choose 16)
 * COMPLETE.

Special: If your plants grow in mature levels, if you choose the previous day, it's level is still the same.

New Plants
This hack is also popular with people who are bored with their Zen Garden Plants.

Requirement: Steps: Note:
 * Zen Garden Editor (can be found at mediafire.com)
 * Plants Vs Zombies
 * Buy Marigold Sprout or obtain it from games.
 * Close Plants Vs Zombies
 * Go to Plants Vs Zombies file.
 * Go to userdata file.
 * Right click at the user1 or other name. (E.g.: If you the 2nd user, choose user2.)
 * Go to Open with and go to Browse...
 * Find ZGH.
 * Use ZGH by typing the alphabet based on the option above.
 * Press Enter.
 * Close the ZGH After using it.
 * Open Plants Vs Zombies back.
 * Go to Zen Garden and COMPLETE.


 * The colour is not affected to all plants (expect Imitated). Only Tall-nuts, Lily Pads and Peashooters will affect of them.
 * For plants option, There is no Peashooter. If you want to choose Peashooter, type 0

Hidden Mini-games
The game may have 20 official Mini-games, but there are more hidden in the game. There are: Some of them are not Mini-games. There are: Requirement: Steps: (For PvZ 1.0.0.1051) Steps: (For PvZ Game Of The Year (GOTY) edition) Alternative Method: Special: This hack will remain after closing the Cheat Engine.
 * Cheat Engine
 * Plants Vs Zombies
 * Go to Cheat Engine, click "Add Address Manually".
 * Type "42DF5D" in Address box.
 * Change type "4 Bytes" to "Byte".
 * Click OK.
 * Repeat the same step, but use "42DF5E" and "42DF5F". You don't need to change the type.
 * After three of them are entered into the table at the bottom of the cheat engine window, change all of their values into "144"
 * COMPLETE.
 * Go to Cheat Engine, click "Add Addess Manually".
 * Type "430C80" in the Address box.
 * Change "4 Bytes" to "Byte"
 * Repeat the same step, but increase the last digit of "430C80" by 1.
 * After three of them are entered into the table at the bottom of the cheat engine window, change all of their values into "144"
 * COMPLETE.
 * Open Cheat Engine, click "Access Memory."
 * Right-click anywhere, then say "Search For Address"
 * Type in the box "430C80 (42SF5D For non-GOTY)" and press Enter.
 * Select the topmost address, and select "replace with Address that does nothing"
 * Press OK.
 * DONE.

Note that sometimes with changed data it will crash so be sure you do this right.

Quick Play PC Version
Although in the Program Files, in Plants vs. Zombies folder, inside "images" folder, there is A Quick Play right left of the Tree (The tree that you saw in the Main Menu), But it is unknown how to access Quick Play.

If your pvz GOTY game has black rectangles in the left and right of the game is in full screen, enable the 3D acceleration and put your mouse on the top very left corner of the left black rectangle. Then move your mouse down and you will see that your mouse will suddenly turn into a hand. When it turns into a hand, click. THAT IS A BUTTON FROM THE QUICK PLAY SCREEN!!! But when you click it, nothing will happen. That's because the button says BACK. I still don't know how to acces quick play but I posted this as a clue.

(The image below is modded)



Speed Hack
This speed hack will help to make games faster.

Requirement: Steps:
 * Plants Vs Zombies
 * Cheat Engine
 * Click "Enable Speedhack"
 * Type 500 in the blank. (You may also move the slider all the way to the right so it says '500.00'.)
 * Click Apply.
 * DONE.

Fertilizer, Bug Spray, Chocolate or Tree Food Hack
This will control the amount of Fertilizer, Bug Spray, Chocolate or Tree Food you have.

Requirement: Steps
 * Plants Vs Zombies
 * Cheat Engine
 * Add 1000 to the amount of Fertilizer/Bug Spray/Chocolate/Tree Food you have.
 * Type the value on the value bar.
 * Click First Scan
 * Go back to game, use/buy Fertilizer/Bug Spray/Chocolate/Tree Food.
 * Type the number of Fertilizer/Bug Spray/Chocolate/Tree Food(+1000) you have now on the value bar.
 * Double click on the result(if more than one result, repeat Step 4 and 5).
 * Change the value to the number of Fertilizer/Bug Spray/Chocolate/Tree Food(+1000) you want.
 * Go back to your Zen Garden to check it out.
 * COMPLETE.

No decrease in Zen Garden
Items such as Fertilizer will not decrease.

Note: This was done in the GOTY Version.

Requirement: Steps
 * Plants Vs Zombies
 * Cheat Engine
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "004976AC".
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "ret".
 * Click OK.
 * COMPLETE.

Fertilizer, Bug Spray, Chocolate or Tree Food Hack (Memory View)
Hacked items will not decrease.

Note: This was done in the GOTY Version.

Requirement:
 * Cheat Engine
 * Plants Vs Zombies

Steps (Fertilizer):
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "0052992B".
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "nop".
 * Click OK.
 * On the message, click yes.
 * COMPLETE.

Steps (Tree Food):
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "0043018D".
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "nop".
 * Click OK.
 * On the message, click yes.
 * COMPLETE.

Steps (Bug Spray):
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "00529A23".
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "nop".
 * Click OK.
 * On the message, click yes.
 * COMPLETE.

Steps (Chocolate):
 * Click "Memory View".
 * Right-click at the address and choose "Go to Address".
 * Type "00529545".
 * Right-click at the address.
 * Change the selected Address' Assembler Code to "nop".
 * Click OK.
 * On the message, click yes.
 * COMPLETE.

I, Zombie Hack
Please visit I, Zombie Hack.

How to plant Cattail on the Ground
Requirements: Steps:
 * Cheat Engine
 * Plants Vs Zombies
 * Open Plants Vs Zombies and Cheat Engine
 * Put a Wall-nut in the ground
 * Type "3" in Hex Box
 * Click "First Scan"
 * Dig the Wall-nut, put the Cherry Bomb on that place
 * Type "2" in Hex Box
 * Click "Next Scan"
 * Repeat Step 2-7 until you get 1 address
 * Add the address and change the value into "16"
 * Then put the Cattail Seed on it.

Modify Art
Please visit here.

Seed Hack
This hack requires Plants vs Zombies Cheats, visit Mediafire.

Requirement: Steps
 * Plants vs Zombies
 * Plants vs Zombies Cheats
 * Open both Programs in the Requirements list.
 * Choose your Seeds
 * Go to Plants vs Zombies Cheats (If you wanted to change seed packets)
 * Double click on the plant's name in the top right dialog and change it to the plant you want
 * Complete

Second Way
If the first way does not work, try this:
 * Open both Programs in the Requirements list.
 * Choose your Seeds
 * Go to Plants vs Zombies Cheats
 * Click on "Random Seeds" and click V2
 * Go back to the game
 * Use arrow Keys to shift the seeds.

Warning: If Plants vs Zombies Cheats program is open, the arrows keys will not work on any other things. Close the program to allow arrows keys to work for other programs.