Hacking guide

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

Before You Start:

 * Download Cheat Engine.
 * 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" if Full Version or "PlantsVsZombies.exe" if GotY.
 * 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:
 * Cheat Engine
 * Plants vs. Zombies
 * Type the number of sun you have in Hex Box.
 * Click "First Scan".
 * Then, go to Plants vs. Zombies, increase or decrease your sun (Example: Get some sun from your sunflowers).
 * 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 Active row.
 * COMPLETE.

Alternative Way: Your Sun amount says 0 but it's actually unlimited.
 * 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 there's two or more addresses, repeat step 3-5.
 * 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.

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

Requirement: Steps: ​Warning:
 * Cheat Engine
 * Plants vs. Zombies
 * Divide your coins amount by 10 and enter it in the value bar. (Example: 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.
 * 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.
 * 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 there is two or more addresses, repeat step 1-5.

Zero Recharge
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

Automatic One-hit KO's
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.

Free Zombies

 * 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.

Invincible Plants
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 Zen Garden 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

Squirrel
Turn off full screen first, then open Zombotany, click the desktop or other windows before the seed choosing screen pops up so it will pause. Go to Cheat Engine, click Add Address Manually, type  0028A338. Click OK, and change the value to 49. DONE!

Other Cancelled 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: Make sure first that you're in the main menu. 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.

After that, click Mini-games, then click Limbo Page.

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 access 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. Note: An easy speed to still be able to operate the game is 1.5-4.
 * 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
 * Find out how many Fertilizer/Bug Spray/Chocolate/Tree Food.
 * Type the value on the value bar.
 * Click First Scan.
 * Go back to game, use/buy Fertilizer/Bug Spray/Chocolate/Tree Food. Just make sure to change the number.
 * 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 the last two steps).
 * Change the value to the number of Fertilizer/Bug Spray/Chocolate/Tree Food(+1000) you want.
 * Check the X in the Frozen row.
 * Go back to your Zen Garden to check it out.
 * COMPLETE.

Alternate Way (Memory View):

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.

Tree of Wisdom Height Hack

 * Buy Tree Food.
 * Go to the Tree of Wisdom.
 * Find the current height and click "First Scan".
 * Give the Tree of Wisdom Food.
 * Enter the new height in the Value Bar and click "Next Scan"
 * Repeat last two steps until there is only one value in the list.
 * Change size to whatever you want.
 * COMPLETE.

I, Zombie Hack
Please visit I, Zombie Hack or I, Zombie Hack/Mac.

How to plant Cattail on the Ground and others
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 Modify Plants vs. Zombies.

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

First Way
Requirements: 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.
 * DONE!

Second Way
Requirements: Steps:
 * Plants vs. Zombies
 * Plants vs. Zombies Cheats
 * 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 arrow keys to work for other programs.

ZomBotany Bowling 1 and 2
This will mod ZomBotany and Wall-nut Bowling and hack the modded game.

Requirements: Steps:
 * Plants vs. Zombies
 * Windows Explorer
 * Go to folder options and enable hidden files and folders.
 * Go to C:
 * Open ProgramData.
 * Click PopCap Games.
 * Click the PlantsVsZombies folder.
 * Open userdata.
 * Now go to PvZ.
 * Play ZomBotany 1 or 2.
 * Choose your plants (don't use upgrade plants).
 * After the game starts, go to main menu.
 * Minimize game.
 * Rename game1_16 or game1_32 to game1_17 (game1_33 if Wall-nut Bowling 2) (if you see the game1_17 or game1_33 ready, delete the file and rename game1_16 or game1_32).
 * DONE!
 * The hack is if the zombie touches a plant, it will killed.
 * The plant will bounce and move in their column forever.

NOTE: Plants don't attack zombies. Sometimes when changing the save data it crashes.

Modding Plants using Cheat Engine
Please visit the Plant Transformations.

Imitater of Upgrade Plants
This will hack all upgrade plants into imitater of them.

Note: This hack requires Hex Editor.

Requirements: Steps:
 * Plants vs. Zombies
 * Hex Editor
 * Open the game
 * Choose any level
 * Plant the upgrade plants as many as you want
 * Pause then go to Main Menu
 * Open Hex Editor
 * Choose your save data level (e.g. if your level Survival: Endless, choose "game1_13.dat", but if you user 2, you should choose "game2_13")
 * Find the code that looks like in the green area of this picture:

For Video Tutorial, visit here
 * Replace the code FF FF FF FF by 00 00 00 00
 * Then, click Save
 * Open the game again
 * Enjoy your Plants!

NOTE: Sometimes this hack make the color of Zombies change into Imitater color, but only the first time.

User File file format and edit
Please visit User File Format.

Requirements

 * Plants vs. Zombies

Steps

 * 1) Play any pool/fog/roof mini-game.  If you chose Last Stand, make the build and select "Start onsalaught"
 * 2) Save and exit.
 * 3) Choose that file and change the number to "30" AKA: game1_30
 * 4) Choose Whack-a-Zombie
 * 5) DONE!

Zen Garden Survival
Cheat Engine is required.

1. Open Cheat Engine, and click on ZomBotany.

2. Type 16 in the value bar.

3. Go to Wall-nut Bowling.

4. Type 17 in it.

5. Keep going back to ZomBotany and Wall-nut Bowling, typing in 16 and 17 respectively until you have one value.

6. Go to Zen Garden. It should automatically change to 43.

7. Change the value in the bar to 13.

8. Your Zen Garden plants will act like they are actually in battle. Unfortunately, you can't plant any other plants.

Not very zen-like anymore, eh?

How to make Zombie Nimble Zombie Quick minigame speed normal
This hack can help you slow down the minigame Zombie Nimble Zombie Quick speed so you can play it at normal speed.

Steps: Note: After finishing, be sure to uncheck the "Enable Speedhack" check box, or the game speed will be slow.
 * 1) Open Cheat Engine and Plants vs. Zombies.
 * 2) Select the Zombie Nimble Zombie Quick minigame
 * 3) Choose your seeds, then start the game.
 * 4) Go to Cheat Engine, check the "Enable Speedhack" check box.
 * 5) Type 0.5 in the Speed box.
 * 6) Click Apply.
 * 7) Done!