We just reached 30,000 articles on this wiki! 🥳
If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!
This article has a talk page!

Plants vs. Zombies (Windows, Mac OS X)

From The Cutting Room Floor
(Redirected from Plants vs. Zombies (PC))
Jump to navigation Jump to search

Title Screen

Plants vs. Zombies

Developer: PopCap Games
Publishers: PopCap Games
Platforms: Windows, Mac OS X
Released in US: May 5, 2009
Released in EU: October 3, 2009
Released in AU: April 28, 2010


AreasIcon.png This game has unused areas.
CodeIcon.png This game has unused code.
DevTextIcon.png This game has hidden development-related text.
MinigameIcon.png This game has unused modes / minigames.
GraphicsIcon.png This game has unused graphics.
MusicIcon.png This game has unused music.
SoundIcon.png This game has unused sounds.
TextIcon.png This game has unused text.
DebugIcon.png This game has debugging material.
Carts.png This game has revisional differences.


DevelopmentIcon.png This game has a development article
ProtoIcon.png This game has a prototype article
PrereleaseIcon.png This game has a prerelease article
NotesIcon.png This game has a notes page

Hmmm...
To do:
  • Check for any other revisional differences
  • Lots of discoveries were made recently in TCRF discord. Needs to be documented.
  • Port the debug display function to all versions of the game if possible, specifically on-screen displays.
  • Apparently, a demo version of the GOTY edition seems to be a possible proto of the game, maybe make a subpage of it.

Zombies have risen from the dead, and for some reason keep invading your home, not even bothering with your neighbors. To defend yourself, you must plant a variety of zombie-fighting vegetation. As crazy as the premise sounds, it's a very fun and successful strategy game that later spawned its own franchise.

Sub-Pages

Read about development information and materials for this game.
Development Info
Read about prototype versions of this game that have been released or dumped.
Prototype Info
Read about prerelease information and/or media for this game.
Prerelease Info
Miscellaneous tidbits that are interesting enough to point out here.
Notes
Pvz Vase.png
Limbo Page
An entire page of unused minigames!
PVZ ombie flag2.png
Unused Graphics
There's unused graphics on your lawn!
TextIcon.png
Unused Text
Do not be alarmed. Plants are not real.

Unused Animations

Plants

Unused Final
PVZ Gravebuster extended planting animation.gif PVZ Gravebuster final planting animation.gif

An extended version of the Gravebuster's planting animation that has an extra bounce.

PVZ Squash unlook left.gif PVZ Squash unlook right.gif

Animations of Squash transitioning from its looking poses to its idle pose.

PVZ Magnetshroom anim nonactive idle.gif

An unused non-active version of Magnet-shroom's active idle animation, named anim_nonactive_idle.

Unused Final
PVZ Magnetshroom extended shooting animation.gif PVZ Magnetshroom final shooting animation.gif

An extended version of Magnet-shroom stealing an object from a zombie, with there being a transition going in and out of the idle animation. This version of the animation has it going back to its default pose, suggesting this and the previous animation are related. This animation is used in the mobile phone version.

Zombies

Pre-GOTY GOTY
PVZ Dancing zombie unpoint pregoty.gif PVZ Dancing zombie unpoint goty.gif

An animation of the Dancing Zombie exiting its pointing pose.

PVZ Snorkle zombie opening mouth.gif

An animation of the Snorkel Zombie opening its mouth in the Zombiquarium mini-game.

Zombie catapult.gif

The Lower half of the Catapult Zombie has some small animations that are unseen because of the catapult machine.

Zombie balloon.gif

Unused swinging animation for the Balloon Zombie.

PvZFootballunused.gif

A leftover animation of the Football Zombie from the 0.1.1.1014 prototype.

This feels a little on-the-nose considering what EA did to Bookworm.

Another leftover animation of the Jack-in-the-Box Zombie from the credits in the 0.1.1.1014 prototype--notably, the Lex from Bookworm Adventures cameo is absent, and the normal Jack-in-the-Box clown is present instead. Why they decided to update this animation to fit with the finalized design is anyone's guess.

Debug Displays

Present in the game executable are a couple of hidden debugging displays. Unfortunately, the game loses a LOT of frames when activating any of these, especially with 3D Acceleration enabled. It is wise to turn that off before attempting any of these, and even then the game could see framedrops to as low as 10FPS. To enable these, follow the steps listed here.

Zombie Spawning

Decimals are displayed in SS:MS (seconds to miliseconds).

It displays the following in this format:

ZOMBIE SPAWNING DEBUG
CurrentWave: %d of %d
TimeSinseLastSpawn: %d %s
TimeSinseLastSpawn: %d %s (too soon)
ZombieCountDown: %d/%d (%.0f%%)
ZombieHealth: before first wave
HugeWaveCountdown: %d
ZombieHealth: CurZombieHealth %d trigger %d (%.0f%%)

Spawn: %d
Stomp: %d
Bungee: %d
Head: %d'
Health: %d of %d

CurrentWave is the current internal wave the player is on; 10 is considered a game wave, and this maxes out at 40. TimeSinseLastSpawn is the time (frames) it has been since the last zombie spawn. ZombieCountDown is the time it takes before a zombie wave begins; it increases over time. ZombieHealth is the internal health of the zombies before the next wave. CurZombieHealth is the amount of internal health a wave has. HugeWaveCountdown is the amount of seconds before the huge wave starts.

The latter set only occurs on Dr. Zomboss's Revenge or the final level. Spawn is the amount of time in seconds (SS:MS) the spawn zombie action is triggered; it can be set from 221 to 0. Stomp is the time before stomping on a nearby plant if possible, defaulting to 60:00 at the beginning. Bungee is the time it takes before using Bungee Zombies to steal plants, defaulting to around 40:00; oddly enough, this also affects throwing an RV. Head is the time it takes before Dr. Zomboss is open to attacks. Health is the health of the boss; the max is 60000, and it is defeated at 1.

PVZZombieSpawningDebugZomboss.png

Music

Elementary, my dear Cactus.
This needs some investigation.
Discuss ideas and findings on the talk page.
Specifically: A message that says something along the lines of "Misaligned hihats" was able to be found, though it was not able to get a screenshot or successfully replicate it.

PvZDebugMusicOverlay.png

  • CurrentWave: Displays what wave the level is on.
  • Music Burst: Displays what kind of burst the music is on. More Zombies will enable this and make the music more dramatic.
  • Music order: Displays where the audio is playing based on the .mo3's audio location. If it is playing streamed audio it will say Music order 65535 row 16383.
  • bpm1: Displays the BPM

Memory

Hmmm...
To do:
Add descriptions of each.

PvZDebugMemoryOverlay.png

Shows how many objects are stored in memory. Most are pretty self-explanatory.

Collision

PvZDebugCollisionOverlay.png

This does not draw any text aside from what's above, but displays the hitboxes and hurtboxes of all Plants and Zombies. Green is the hurtbox while red is the hitbox. Projectiles do not have hitboxes displayed. On plants that attack both in front of and behind them, the hitbox of the rear-facing attacks will be in pink.

Unused Plant Types

PvZ BigTimeUnusedPlantsScreenshot.png

Large Sunflower, Large Marigold, and Large Wall-nut, used in the unused mini-game "Big Time". Note that Large Wall-nuts ARE normally seen in Wall-Nut Bowling 2, but never as regular plants.

Unused Zombies

The decompilation of the game contains two commented out Zombies in the Zombies code, those being for a Ghost Zombie and a Dog Walker Zombie. The Dog Walker Zombie has more data and graphics in the leaked prototype builds of the game.

Unused Music

Unused Watery Graves Section

Offsets 117 to 120 of mainmusic.mo3 contain an extra part of Watery Graves which goes unused, due to the song looping at Offset 116. These offsets contain the patterns (in this order) 99, 100, 101, and 102, as compared to the used final part of the song (offsets 113 to 116) which contain 99, 100, 101 and 103. 102 is the unused pattern here, which sounds similar to 103 except for a few different notes and the lack of "closing drums".

Offsets 117 to 120. Normal version.

Offsets 117 to 120. Horde version.

Here is a restoration of how the song should sound with these unused parts of the sequence:

Unused Rigor Mormist Volume Commands

Hmmm...
To do:
  • Probably rewrite part of this.

In Pattern 79 (Sequence 125), which is used for the intro for Rigor Mormist, there is unused data to reduce note volume in channels 14 and 15. These match up with the same data on the same channels found on Pattern 110 (Sequence 126). These volume commands are used to decrease the volume of the Sine Wave used in the ending of the song after it loops. The reason this is unusual is because the Sine Wave only plays when the song loops and the song loops at Pattern 110 (Sequence 126), making this behavior go unseen.

Pattern 79 Pattern 110
PvZ1 Pattern79.png PvZ1 Pattern110.png

Earlier Zombies on Your Lawn Segment

Within the animation files for all the segments relating to the Zombies on Your Lawn credits sequence, there exists an earlier animation during the lyrics "You're Dead so it doesn't matter".

PvZ Unusedcreditsscene.png

This is a screenshot of the scene. It is unknown what would have happened during this scene due to there being no actual animation to go along with the segment. This is because the original animation file was overwritten by the current animation of the zombies being hit by a melon.

Script File

#!/bin/sh
verbose=1

convert_if_candidate()
{
    if [ $verbose -eq 1 ]; then
        echo "checking $1 ..."
    fi

    [ -d "$1" ] && return;
    [ ! -f "$1" ] && return;

    echo "$1" | egrep -q ".*\.jpg$"

# change gamma for jpg files
    if [ $? -eq 0 ]; then
        convert "$1"
        continue;
    fi

    echo "$1" | egrep -q ".*\.png$"

    if [ $? -eq 0 ]; then
        convert "$1"
        continue;
    fi

    echo "$1" | egrep -q ".*\.gif$"

    if [ $? -eq 0 ]; then
        convert "$1"
        continue;
    fi

    if [ $verbose -eq 1 ]; then
        echo "skipping $1"
    fi
}

convert()
{
#   chmod u+w $1

    [ ! -f "$1" ] && return

    if [ $verbose -eq 1 ]; then
        echo "converting gamma of $1"
    fi
    /opt/local/bin/convert -gamma .8 "$1" "$1"
    [ $? -ne 0 ] && echo "error converting $1"
}

# will fail if file or path has a space in it. Probably need to do the while read thing...
for f in `find .`; do
    convert_if_candidate $f
done

# this will handle those paths with a space in them but skip everything else
find . -name '* *' | while read f; do # only reads those containing a space
    convert_if_candidate "$f"
done

Present in images on older or Mac releases is this shell script called gamma_correct_image_files.sh.

Unused Code

SexyCache

The game executable on Windows mentions working code for loading SexyCache.exe before bootup if the debugging flag is set. In the retail version, this function has no references, but in special versions, the launch command -tod can load it; otherwise, forcing the game to load it by changing a function to one that does nothing on the following address based off the build displays this message. Yes attempts to load SexyCache.exe and the game while No just loads the game. It is unknown what exactly SexyCache.exe does, as it doesn't exist in the installation root in all builds of the game. PopCap's original name was "Sexy Action Cool" when it was founded, so SexyCache.exe was likely an internal program that was used for games since.

Build Address
v1.20.1073 (PopCap.com, Windows) 00454CC5
v1.20.1073 RELEASE (JA, Windows) 00454CB7
v1.20.1096 (Steam GOTY, Windows) 004569AD

PVZPC SexyCachePopup.png

MP3 music support

Plants vs. Zombies has unused MP3 support, due to the final game using sequenced tracker music. However, the game also has functions to play MP3 music during menus and levels, and even to loop/pause streamed audio. In the 0.1.1.1014 prototype, these functions are used, as the switch from streamed audio to tracker music was only just starting to be made.

Command-line Parameters

The game's executable mentions developer command lines for starting the game. Most are related to the framework and it's not friendly with commands using spaces, so use = instead. None of these work on Mac OS. These are:

  • -tod: Loads the game in "cheat mode", allowing MANY cheat keys to be pressed, most cutscenes to become skippable, and more. Only works on specific builds.
  • -play: Plays popcap.dmo if its present; if not present, an error is shown. -demofile can also be used to choose the name and location of the file.
  • -recnum: Records demos with Popcap.dmo and Popcap#.dmo if that's taken on every boot.
  • -playnum: Plays demos with Popcap.dmo and Popcap#.dmo from -recnum if that's taken on every boot.
  • -record: Records a demo named Popcap.dmo and saves after shutdown of the game.
  • -demofile: Specifies filename for recorded demos.
  • -crash: Crashes the game immediately with an Access Violation error.
  • -screensaver: Makes the game act like it's a screensaver; any movement or key presses will immediately force close the game. This is a leftover from Insaniquarium Deluxe, which came with a "virtual aquarium" screensaver that showed the player's progress in that game.
  • -changedir: Changes game installation directory, for the current boot.
  • -version: Shows the product name, version, build number, and build date with a popup instead of starting the game.

Unused I, Zombie Zombies

PVZZomboniSeedPacket.png PVZPogoZombieSeedPacket.png

In the I, Zombie game mode, two unused Zombies exist which cannot be used in-game: the Zomboni and Pogo Zombie. Despite this, they have their own seed packet graphics, and via hacking, can be re-implemented in the game and are fully functional. Strangely, the Pogo Zombie will completely ignore the brain at the end of a lane, jumping right over it. Additionally, when 'planting' a Zomboni, its front end will appear cut-off.

PvZpogogif.gif

Level 6

The unused "background6" found in a prototype build.

An unused 6th level is present in the game, although not much of it is left. The only actual sublevel present is 6-1, which is simply a duplicate of level 5-9 but with the Day theme (as the theme this level tries to use is not present in the final game). All other sublevels in level 6 are simply duplicates of 6-1 read from garbage data. In the December, 2nd, 2008 prototype, this level is present with more content left; however, it uses an "elevated backyard" theme from even earlier in development (as indicated by the crude background graphics). This background is actually a leftover of what was going to be level 4 according to George Fan's Twitter.

Of interest: the night roof background graphic used exclusively for level 5-10 is named background6boss.png. The rest of level 5 uses background5.png, the day roof. It thus is possible that a night roof background6.png once existed which did not feature the Zomboss. Alternatively, the crude background6.gif graphic that is accessed when level 6 is loaded in-game could indicate a completely different layout would have been featured in this level.

Revisional Differences

Game of the Year Edition

On July 2010, a "Game of the Year" edition of the game was released (according to the readme, this edition is version 1.2.0.1073). Aside from adding new content, a few changes were made.

Michael Jackson Zombie

When the game was originally released, the Dancing Zombie and Backup Dancer Zombie looked different from how they do today. The Dancing Zombie originally resembled Michael Jackson dressed in his classic "Thriller" outfit, and the Backup Dancer Zombie resembled the backup dancers from the music video of the aforementioned song. The description of the Dancing Zombie even mentions "any resemblance between Dancing Zombie and persons living or dead is purely coincidental."

Coincidentally, Michael Jackson actually did die a little over a month after this game's release. About a year afterwards, Michael Jackson's estate objected to its inclusion. PopCap subsequently changed the designs of the Dancing Zombie and Backup Dancer Zombie out of respect to Jackson. The new Dancing Zombie was based off of Disco Stu from the simpsons and the Backup Dancers have pink shirts with mustaches. The redesign has been included in the Game of the Year version, released July 2010, and all other versions since. Despite being removed, the textures of the original Dancing Zombie and Backup Dancer Zombie can be found in the game's files.

Pre-GOTY GOTY
This is THRILLER! Thriller night! Disco is really dead now.
Pre-GOTY GOTY
Nice Calvin hair. I mustache you a question, but I'll dance first.
(Source: https://plantsvszombies.wiki.gg/wiki/Dancing_Zombie)

Zomboni Description

In the original version of the game, the Zomboni enemy had a different description in the Suburban Almanac than it does in the GOTY edition. Judging from the current description, it was most likely changed for trademark reasons.

Original description GOTY description
Often mistaken for a zombie driving an ice machine, the Zomboni is a totally different life-form more closely related to a space ogre than a zombie. Not to be mistaken for a Zamboni® brand ice resurfacing machine. Zamboni® and the image of the ice-resurfacing machine are registered trademarks of Frank J. Zamboni & Co., Inc., and "Zomboni" is used with permission. For all your non-zombie related ice resurfacing needs, visit www.zamboni.com!
(Source: https://plantsvszombies.wiki.gg/wiki/Zomboni)

Adventure button

Adventure button was changed in GOTY to better match the Start Adventure button shape.

Pre-GOTY GOTY
PlantsVsZombiesOldAdventure.png PlantsVsZombiesNewAdventure.png

Path References

Hmmm...
To do:
Specify which version the GOTY one was found in.

In 1.0.0.1051, at 0x27F850 in the game's executable, there is a reference to a Program Database file.

c:\Popcap\Lawn\releasefinal\PlantsVsZombies.pdb

In the same executable still, in the GOTY version, there's a reference to a single directory with another Program Database file.

c:\Users\dfranzi\Desktop\Files\Perforce\dfranzi_SEA-10786\games\Lawn\goty\cpp\Lawn\ReleaseFinal\PlantsVsZombies.pdb

Unused .wav

Located at 0x270F88 is a reference for an audio file. It was most likely used for the game's engine debug mode.

c:\windows\media\Windows XP Menu Command.wav

Other Additions

Achieve to believe... or something like that.
  • The Game of the Year version adds an achievement system, in which various awards are given for completing certain requirements. However, because of this, one of the game's messages is unable to be seen.
  • The Zombatar, an avatar creator, was introduced in the GOTY edition. This allows you to create your own zombie. Additionally, the accessories chosen for your Zombatar will appear on the Flag Zombie.
(Source: https://plantsvszombies.wiki.gg/wiki/Plants_vs._Zombies:_Game_of_the_Year_Edition)

Internal Project Name

The internal name of the game is Lawn.[1] This project name was probably given during when the game's name was changed to Lawn of the Dead, and its name remained that way for some time until version 0.96, where it was changed to Zom-Botany. Earlier instances of the game may have used Insaniquarium's codename WinFish[2], as seen in the present version of that game.

References