FANDOM


Plants vs. Zombies PAK Screenshot

An example of a modded Plants vs. Zombies with new textures and animations: Plants Vs. Zombies 2 Mod By PAK(Royal)'s Team

This page will tell you how to modify Plants vs. Zombies.

Modification will allow you to change the art, sound, animation, and many other features of Plants vs. Zombies.


Before Modifying

There is a file called "main.pak" which contain files that you are using later on to edit. You'll have to extract the pack first using this tool.

  • data: Contains the game's font.
  • properties: In this folder, only LawnStrings.txt should be messed with. This file contains all the texts in the game, like Almanac entries, Crazy Dave's speeches, etc. Game of The Year version has a new file: ZombatarTOS.txt (Zombatar's Terms Of Service), but it's NOT recommended that you mod this file, since you may violate some laws.
  • compiled: This folder contains files in a .compiled format, and they define the body parts placement and movements of characters in the game (For more info see this topic). Modifying them is possible, but pretty difficult (See this topic).
  • images: Contains various images (but not all, unlike what the name suggests) in the game, like lawns backgrounds, items in the game, etc.
  • particles: Contains images for "particles" like splats, chunks, explosions,... and zombie heads when they're decapitated.
  • reanim: Contains the characters' body parts, like plants, zombies, Crazy Dave, and more. This can be used to change pictures and stats of plants.
  • sound: Like what the name suggests, this folder contains various sounds of the game and could be modified like the images too. Most of them are in .ogg format, with the exception of 2 in .au format. The game's music is in here too, in .mo3 format. Programs like OpenMPT can open, edit and save .mo3 files
Texture hack

Squash on water, Tangle Kelp on land, unmodified Fume-shrooms and strange plants

Texture hack2

Water pots, sleeping Sun-shrooms in a "roof night" setting

Change venue

Go to images folder, find background1.jpg (Day), then copy the file to your folder and edit it with photo editor, such as Adobe Photoshop. After editing, replace the original file in the images folder to the file you have created.

Change Almanac entry

Giga-football zombie in normal pvz

Modded the normal Football Zombie with the Giga-Football Zombie

Note: You can also use a hex editor or Cheat Engine.

Go to properties folder, open "LawnStrings.txt". then find the entry you want to edit. For example:

[PEASHOOTER_DESCRIPTION]Peashooters are your first line of defense. They shoot peas at attacking zombies. {SHORTLINE} {KEYWORD}Damage:{STAT} normal {SHORTLINE} {FLAVOR}How can a single plant grow and shoot so many peas so quickly? Peashooter says, "Hard work, commitment, and a healthy, well-balanced breakfast of sunlight and high-fiber carbon dioxide make it all possible."

Dancing zombie in zombot

Messing with the compiled folder: old Dancing Zombie on Zombot

Then change the text accordingly. After that, save the text file.

The meanings of the words surrounded by an { or }:

  • Almanac:
  • SHORTLINE - Just like the keyboard key: "Enter."
  • KEYWORD - a word describing what damage or things it does. Changes the font color to brown.
  • STAT - makes letters red.
  • FLAVOR - the description of the plant and/or zombie. Only seen at Almanac entry but can also be used anywhere else in the Almanac description. Changes the font color to brown.

Crazy Dave:

  • PLAYER_NAME - Your name.
  • NO_CLICK - Triggers Crazy Dave without clicking. Just mouse it. Used at shop and during the 7 seeds prompt (as you press yes/no instead of clicking him)
  • NO_SOUND - Makes Crazy Dave speech silent. Used at shop.
  • SCREAM - Makes Crazy Dave scream.

Get Survival: Roof (Night)

  1. Go to Dr. Zomboss's Revenge, then quit after a while.
  2. Change the value to Whack a Zombie and kill every zombie (including Zomboss) and collect sun.
  3. Then Change it to Survival: Roof or Survival: Roof (Hard) or Survival: Roof (Endless).
  4. COMPLETE.

Switch Plants

You can make a Peashooter give sun or a Sunflower lob melons if you want. All you have to do is go into the compiled/reanim folder and switch two files (like Sunflower and Peashooter). Make sure the names are exactly the same or the game will not be able to start. If you want to have two of the same sprite for plants, just duplicate the file for Sunflower.reanim, and call another one Threepeater.reanim. Make sure the real Threepeater file is renamed something else. You can do this with other images too, like making the Melon-pult shoot wheels, or you can make the pictures for anything change.

Modifying animation trajectories

The tutorial of modifying the images' trajectory in PVZ

The tutorial of modifying the images' trajectory in PVZ

A tutorial by Jason Venn.

Bandicam 2018-10-05 00-40-44-053 2 4

An example of a modded Sunflower.

Before we start, you must have Adobe Flash CS4 or higher in order to modify the animations (this is due to the .jsfl file that we needed to run).

Note: this will only work for reanim.compiled

First, download the necessary files from this video:

Then open up one of the .fla files that you wanted to change the animations with. Make sure to not remove the anim layers included in the .fla files. This'll make your game crash so fair warning. If you want to add additional files, you can drag those pictures into adobe flash.

After you're done editing your plants, or zombies' trajectory, make sure to put every additional files you have added (if there's any) to the reanim folder, or otherwise the game will crash. Then find the FlashReanimExport.jsfl included with the fla files and drag it into Flash. If an error pops up, it means that you've done something wrong. But If there's no error, it will create a EXAMPLE.reanim on the folder. Now for the last steps, you need to cut it and paste it on the compiled\reanim folder and open up PVZUtil 1.0 to convert your reanim file into a .reanim.compiled file. Enjoy modding!

Gallery

See Modify Plants vs. Zombies/Gallery of mods.

Start a Discussion Discussions about Modify Plants vs. Zombies

Community content is available under CC-BY-SA unless otherwise noted.