Plants vs. Zombies 2 Hacking Guide/OBB/old

***Note: This guide is severely outdated and may not be up to date with the latest release. It is considered archived.***
How do I start editing?
* For version **1.4 - 3.3** you can **edit the OBB directly** using a Hex Editor (or use PyVZ2 like described below).
* For version **3.4 - latest** with **OBBPatcher / PyVZ2 OBBEdit 1-3** you have to to **extract packages.section**. **Edit** **section** with a Hex Editor and then **patch OBB with Section**.

## Plants

### **Sunflower**

#### Change the amount of sun produced on Plant Food

1. Search for "PlantFoodSunCount$".
2. Change the byte after the $ from 03 to 7F.

#### Change the amount of sun produced per round

1. Search for "SunProps".
2. You should see "Amount$" afterwards.
3. Change the byte after the $ from 32 to 7F.

### **Peashooter**

#### Change the amount of peas it shoots on Plant Food

1. Search for "PlantFoodProjectileCount$".
2. Change the byte after the $ from 3C to 7F.

### **Potato Mine**

#### Reduce arm time

1. Search for "TimeUntilArmed"".
2. Change the bytes afterwards from 70 41 to 80 00.

#### Increase duplicate count when given Plant Food

1. Search for "NumberOfDuplicates$".
2. Change the byte after the $ from 02 to 7F.

### **Bloomerang**

#### Increase boomerang hit count

1. Search for "BoomerangHitCount$".
2. Change the byte after the $ from 03 to 7F.

### **Grave Buster**

#### Reduce grave destruction time

1. Search for "EatTime"".
2. Change the bytes afterward from 80 40 to 80 00.

### **Twin Sunflower**

Change the amount of sun produced on Plant Food

1. Search for "Play\_Plant\_TwinSunflower\_Nitro".
2. Then look for the closest $ afterwards.
3. Change the byte after the $ from 05 to 7F.

#### Change the amount of sun produced per round

1. Search for "Play\_Plant\_TwinSunflower\_Nitro".
2. Then look for the second closest $ afterwards.
3. Change the byte after the $ from 32 to 7F.

### **Repeater**

#### Change the amount of peas it shoots on Plant Food

1. Search for "RepeaterDefault".
2. Find the third $ afterwards.
3. Change the byte after the $ from 5A to 7F.

### **Snow Pea**

#### Change the amount of peas it shoots on Plant Food

1. Search for "SnowPeaProps".
2. Find the second $ afterwards.
3. Change the byte after the $ from 3C to 7F.

### **Kernel-pult**

#### Always shoots butter

1. Search for "ButterChance"".
2. Change the bytes afterward from 80 3E to 80 3F.

#### More butter during Plant Food

1. Search for "AdditionalButterStormMissiles$".
2. Chnage the bytes afterward from 05 to 7F.

### **Spikeweed**

#### Increase the damage per second of Plant Food

1. Search for "PlantFoodDPS$".
2. Change the byte after the $ from 64 to 7F.

#### Make the Plant Food spikes drag zombies faster

1. Search for "PFConveyorSpeed"".
2. Change the nearest @ to an A.

### **Coconut Cannon**

More zombies to reduce Plant Food coconut projectile

1. Search for "NumPushedZombiesForMinSpeed$".
2. Change the byte after the $ from 04 to 7F.

#### Reduce reload time

1. Search for "CoconutCannonProps".
2. You should see "CannonballDefault" afterwards.
3. Below that you should see two sets of 70 41 bytes, not counting the third one.
4. Change both of them from 70 41 to 80 00.

### **Cherry Bomb**

#### Full board damage area

1. Search for "CherryBombDefault".
2. You should see "radius" afterwards.
3. Change the nearest @ to an A.

### **Spring Bean**

#### Increase launch distance

1. Search for "AttackRecoveryTime"".
2. Before that, find the nearest B.
3. Change the B to a C.

#### Reduce sleep time

1. Search for "AttackRecoveryTime"".
2. Change the bytes after that from 20 41 to 80 00.

### **Spikerock**

#### Increase the damage per second of Plant Food

1. Search for "PlantFoodDPS$".
2. Change the byte after the $ from 64 to 7F.

#### Make the Plant Food spikes drag zombies faster

1. Search for "PFConveyorSpeed"".
2. Change the nearest @ to an A.

### **Squash**

#### Increase the number of squashes on Plant Food

1. Search for "PlantfoodZombiesToTarget".
2. You should see "Number$" afterwards.
3. Change the byte after the $ from 02 to 7F.

#### Increase damage area

1. Search for "SquashRadius$".
2. Change the byte after the $ from 20 to 7F.

### **Split Pea**

#### Change the amount of peas it shoots forward on Plant Food

1. Search for "PlantFoodForwardProjectileCount$".
2. Change the byte after the $ from 3C to 7F.

#### Change the amount of peas it shoots on Plant Food

1. Search for "PlantFoodBackwardProjectileCount$".
2. Change the byte after the $ from 5A to 7F.

### **Chili Bean**

#### Increase duplicate count when given Plant Food

1. Search for "ChilibeanProps".
2. Then find the seventh $ afterwards.
3. Change the byte after the $ from 03 to 7F.

### **Lightning Reed**

#### Increase bolt bounces

1. Search for "NumShotBounces$".
2. Change the byte after the $ from 03 to 7F.

#### Bigger cloud damage

1. Search for "PlantFoodLightningBoltDamage"".
2. Change the nearest A into a B.

Faster Plant Food cloud

1. Search for "PlantFoodCloudSpeed"".
2. Change the nearest C to a D.

### **Marigold**

#### Selectable in-game

1. Search for "IsZenGardenTreasurePlant"
2. Change the byte after that from 01 to 00.

#### Give more coins on Plant Food

1. Search for "PlantFoodCoinsToSpawn$".
2. Change the byte after the $ from 04 to 7F.

### **Blover**

#### Blow more Dandelions

1. Search for "WindGiveHelpLimit$".
2. Change the byte after the $ from 02 to 7F.

### **Electromagnetic Peach**

#### Larger stun radius

1. Search for "ActivationRadius"".
2. Change the nearest C to a D.

#### Longer stun time

1. Search for "StunTime"".
2. Change the bytes after the $ from 20 41 to 70 42.

### **Starfruit**

#### Change the amount of stars it shoots on Plant Food

1. Search for "Play\_Plant\_StarFruit\_Nitro".
2. Before that you should see a $.
3. Change the byte after the $ from 0A to 7F.

### **Infi-nut**

#### Decrease health regeneration time

1. Search for "DelayBeforeRegenFromDamage"".
2. Change the bytes after that from 70 41 to 80 00.

#### Decrease health regeneration time from eaten

1. Search for "DelayBeforeRecoverFromDeath"".
2. Change the bytes after that from 70 41 to 80 00.

### **Magnifying Grass**

#### Free shots

1. Search for "SunMoneyPerShot$".
2. Change the byte after the $ from 32 to 00.

#### Increase beam damage per second

1. Search for "PlantFoodBeamDPS"".
2. Change the nearest C to a D.

Increase beam pulse damage

1. Search for "PlantFoodPulseDamage$".
2. Change the byte after the $ from 64 to 7F.

### **Tile Turnip**

#### Always free

1. Search for "SecondTileCost$".
2. Change the bytes after the $ from FA 01 to 80 00.

### **Hypno-shroom**

#### Any zombie which can bite it gets hypnotized

1. Search for "CannotBeHypnotized".
2. Nullify it.

### **Sun-shroom**

#### Reduce growth stages

1. Search for "TimeToGrowInSeconds$".
2. Change the byte after the $ from 12 to 00.
3. Then look for the second closest $ afterwards.
4. Change the byte after the $ from 48 to 00.

### **Puff-shroom**

#### Lasts forever

1. Search for "ExpirationDurationSeconds$".
2. Change the byte after the $ from 3C to 00.

### **Fume-shroom**

#### Increase Plant Food push speed

1. Search for "PlantFoodPushSpeed"".
2. Change the nearest @ to an A.

### **Pea-nut**

#### Change the amount of peas it shoots on Plant Food

1. Search for "Play\_Plant\_DarkAges\_Peanut\_PF\_Attack".
2. Before that, find the nearest $.
3. Change the byte after the $ from 3C to 7F.

### **Magnet-shroom**

#### Larger extraction range

1. Search for "GridSquareRangeHeight$".
2. Change the byte after the $ from 05 to 7F.
3. Search for "GridSquareRangeWidth$".
4. Change the byte after the $ from 07 to 7F.

#### Increase Plant Food object attract amount

1. Search for "MaxPlantFoodObjects$".
2. Change the byte after the $ from 14 to 7F.

Reduce item destruction time

1. Search for "DestroyPulledObjectsTime"".
2. Change the bytes after that from 20 41 to 80 00.

### **Chomper**

#### Increase amount of zombies eaten on Plant Food

1. Search for "NumberOfPlantfoodTargets$".
2. Change the byte after the $ from 03 to 7F.

#### Reduce zombie chew time

1. Search for "ChewTimeSeconds"".
2. Change the bytes after that from F0 41 to 80 00.

### **Lily Pad**

#### Make ground plants plantable on

1. Search for "PlantsWhichCannotBePlantedOnLilypads".
2. Right after you should see some bytes, and then byte 04.
3. Nullify it.

### **Tangle Kelp**

Take down more zombies on Plant Food

1. Search for "MaxPlantfoodWaterKills$".
2. Change the byte after the $ from 05 to 7F.

### **Bowling Bulb**

#### Change the amount of bulbs it shoots on Plant Food

1. Search for "MaxAmmo$".
2. Change the byte after the $ from 03 to 7F.

#### All heads recharge before attack

1. Search for "AmmoRefreshTime"".
2. Change the bytes after that from 80 00 to 00 00.

### **Homing Thistle**

#### Increase Plant Food targets

1. Search for "ThistlePlantfoodMinTargets$".
2. Change the byte after the $ from 0A to 7F.

#### Change the amount of thistles it shoots on Plant Food

1. Search for "ThistlePlantfoodUnaimedRepeatCount$".
2. Change the byte after the $ from 05 to 7F.

#### Make Plant Food shots more accurate

1. Search for "ThistleUnaimedSlotDegrees$".
2. Change the byte after the $ from 0F to 00.

### **Banana Launcher**

#### Change the amount of bananas it shoots on Plant Food

1. Search for "NumPlantfoodRockets$".
2. Change the byte after the $ from 04 to 7F.

#### Reduce reload time

1. Search for "BananaProps".
2. You should see "ProjectileTypes..BananaDefault" afterwards.
3. Below that you should see two sets of A0 41 bytes.
4. Change both of them from A0 41 to 80 00.

### **Ghost Pepper**

Increase explosion damage

1. Search for "DeathExplosionDamage"".
2. Change the nearest C to a D.

#### Full board damage area

1. Search for "DeathExplosionRadius".
2. Change the nearest @ to an A.

### **Sap-fling**

#### Increase the amount of pinecones launched

1. Search for "PlantfoodPineconeCount$".
2. Change the byte after the $ from 14 to 7F.

### **Hurrikale**

#### Increase push speed

1. Search for "GroundZombieBlowingSpeed"".
2. Change the nearest @ to an A.

#### Blow more Dandelions

1. Search for "BlowDuration"".
2. After that, find the nearest $.
3. Change the byte after the $ from 02 to 7F.

### **Hot Potato**

#### Reduce ice block melt time

1. Search for "BlockMeltingDuration"".
2. Change the bytes after that from 20 40 to 80 00.

### **Pepper-pult**

#### Increase the amount of peppers launched on Plant Food

1. Search for "PlantfoodProjectilesToFire$".
2. Change the byte after the $ from 04 to 7F.

### **Chard Guard**

#### Longer lasting leaves

1. Search for "PushesPerLeaf$".
2. Change the byte after the $ from 01 to 7F.

#### Increase launch distance

1. Search for "KnockbackOffset"".
2. Change the nearest C to a D.

Increase Plant Food launch distance

1. Search for "PFKnockbackOffset"".
2. Change the nearest C to a D.

### **Fire Peashooter**

#### Longer fire trail

1. Search for "FlameThrowerLengthInNumTiles$".
2. Change the byte after $ from 08 to 7F.

### **Stunion**

#### Longer stun range on Plant Food

1. Search for "PlantfoodProjectileDistance$".
2. Change the byte after the $ from 04 to 7F.

### **Rotobaga**

#### Change the amount of rutabagas it shoots on Plant Food

1. Search for "PlantFoodAngleVarianceInDegrees"".
2. Before that, find nearest $.
3. Change the byte after the $ from 0F to 7F.

### **Dandelion**

#### Increase dandelions blow off from

1. Search for "WindHelperProjectilesToFire$".
2. Change the byte after the $ from 0C to 7F.

### **Lava Guava**

#### Increase explosion damage

1. Search for "ExplosionDamage"".
2. Change the nearest C to a D.

#### Full board damage area

1. Search for "ExplosionRadius".
2. Change the nearest @ to an A.

#### Increase Plant Food crack trail

1. Search for "CrackLengthInNumTiles$".
2. Change the byte after the $ from 09 to 7F.

### **Red Stinger**

#### Always offensive

1. Search for "RightmostColumn$".
2. Change the byte after the $ from 02 to 7F.

### **Autonomous Katapulting Ejectomatic Emitter**

#### Increase projectile bounces

1. Search for "ProjectileBounceCount$".
2. Change the byte after the $ from 04 to 7F.

#### Reduction damage per bounce

1. Search for "DamageReductionAmountPerBounce$".
2. Change the byte after the $ from 0A to 01.

### **Toadstool**

#### Reduce zombie chew time

1. Search for "NormalChewTimeSeconds"".
2. Change the bytes after that from F0 41 to 80 00.

#### Increase sun production

1. Search for "NormalAmountOfSunProducedPerZombie$".
2. Change the byte after the $ from 32 to 7F.

#### Increase amount of zombies eaten on Plant Food

1. Search for "PFMaxNumberOfTargets$".
2. Change the byte after the $ from 04 to 7F.

#### Longer Plant Food tongue range

1. Search for "PFTongueRange$".
2. Change the byte after the $ from 04 to 7F.

#### Reduce Plant Food zombie chew time

1. Search for "PFChewTimeSeconds"".
2. Change the bytes after that from 40 40 to 80 00.

#### Increase Plant Food sun per zombie production

1. Search for "PFAmountOfSunProducedPerZombie$".
2. Change the byte after the $ from 32 to 7F.

### **Stallia**

#### Increase stall duration

1. Search for "StallDuration$".
2. Change the byte after the $ from 0C to 7F.

#### Increase Plant Food stall duration

1. Search for "PlantfoodStallDuration$".
2. Change the byte after the $ from 12 to 7F.

### **Strawburst**

#### Reduce growth stages

1. Search for "TimeBetweenGrowthStages".
2. Afterwards, you should see bytes 20 41, 70 41, and 70 41.
3. Change each of those to 80 00.

#### Reduce reload time

1. Search for "StrawburstProps".
2. You should see "ProjectileTypes..StrawburstProjectileSmall" afterwards.
3. Below that you should see two sets of A0 40 bytes.
4. Change both of them from A0 40 to 80 00.

### **Cactus**

#### Spikes pierces through more zombies

1. Search for "PierceChanceReductionPerHit$".
2. Change the byte after the $ from 46 to 00.

#### Increase spike damage

1. Search for "SpikeDamage$".
2. Change the byte after the $ from 0A to 7F.

#### Increase Plant Food spike damage

1. Search for "PFSpikeDamage$".
2. Change the byte after the $ from 14 to 7F.

### **Phat Beet**

#### Always deal critical damage

1. Search for "PowerfulAttackRatioMin$".
2. Change the byte after the $ from 04 to 00.
3. You should see "PowerfulAttackRatioMax$" afterwards.
4. Change the byte after the $ from 06 to 00.

### **Celery Stalker**

#### Reduce retraction delay

1. Search for "RetractionDelay$".
2. Change the byte after the $ from 03 to 00.

#### Increase duplicate count when given Plant Food

1. Search for "PlantFoodPlantsToSpawn$".
2. Change the byte after the $ from 03 to 7F.

### **Electric Blueberry**

#### Increase Plant Food cloud targets

1. Search for "PlantFoodLightningTargets$".
2. Change the byte after the $ from 03 to 7F.

#### Faster cloud

1. Search for "NormalCloudSpeed"".
2. Change the nearest C to a D.

#### Increase cloud targets

1. Search for "NormalLightningTargets$".
2. Change the byte after the $ from 01 to 7F.

### **Garlic**

#### Reduce being eaten time

1. Search for "EatDuration"".
2. Change the bytes after that from C0 3F to 00 00.

### **Jack O' Lantern**

#### Longer fire trail

1. Search for "GridLengthOfFlamethrower$".
2. Change the byte after the $ from 03 to 7F.

#### More Wisps on Plant Food

1. Search for "PFWispCount$".
2. Change the byte after the $ from 03 to 0F.

### **Grapeshot**

#### Increase grape bounces

1. Search for "BouncesUntilSelfDestruct$".
2. Change the byter after the $ from 05 to 7F.

### **Primal Peashooter**

#### Bigger Knockback

1. Search for "KnockbackDistance""
2. Change the B to a C

### **Perfume-shroom**

#### Longer lasting perfume

1. Search for "EffectLoopCount$".
2. Change the byte after the $ from 06 to 7F.

### **Primal Sunflower**

Change the amount of sun produced on Plant Food

1. Search for "PlantFoodShineTime#".
2. Then look for the closest $ afterwards.
3. Change the byte after the $ from 03 to 7F.

#### Change the amount of sun produced per round

1. Search for "PlantFoodShineTime#".
2. Then look for the second closest $ afterwards.
3. Change the byte after the $ from 4B to 7F.

### **Primal Potato Mine**

#### Reduce arm time

1. Search for "PrimalPotatomineDefault".
2. Then look for bytes A0 40.
3. Change the bytes from A0 40 to 80 00.

#### Increase duplicate count when given Plant Food

1. Search for "POPANIM\_EFFECTS\_PRIMAL\_POTATOMINE\_EXPLOSION".
2. Then look for the third closest $ afterwards.
3. Change the byte after the $ from 02 to 7F.

### **Moonflower**

#### Change the amount of sun produced alone per round

1. Search for "SunPerNeighbor$".
2. Before that, find the nearest $.
3. Change the byte after the $ from 19 to 7F.

#### Change the amount of sun produced per neighbor

1. Search for "SunPerNeighbor$".
2. Change the byte after the $ from 19 to 7F.

#### Change the max amount of sun produced per round

1. Search for "MaxSunProduction$".
2. Change the byte after the $ from 64 to 7F.

### **Nightshade**

#### Reduce leave regrowth time

1. Search for "LeafRespawnCooldown"".
2. Change the bytes after that from A0 40 to 80 00.

### **Shadow-shroom**

#### Increase the poision damage per second

1. Search for "PoisonDPS"".
2. Change the nearest A to a D.

#### Any zombie which can bite it gets poisoned

1. Search for "CannotBePoisoned".
2. Nullify it.

### **Blooming Heart**

#### Larger stack damage

1. Search for "AdditionalDamagePerStack$".
2. Change the byte after the $ from 0A to 7F.

#### Increase the maximum of stacks

1. Search for "MaximumStacks$".
2. Change the byte after the $ from 05 to 7F.

#### Increase the number of stacks to add per hit

1. Search for "StacksToAdd$".
2. Chane the byte after the $ from 01 to 7F.

## Zombies

### **Imp Dragon Zombie**

#### Vulnerable to fire

1. Search for "FireDamageMultiplier#".
2. Nullify it.

### **Jester Zombie**

#### Vulnerable to all projectiles

1. Search for "JuggleableProjectiles".
2. Nullify it.

## Game Items

### **Silver Coin**

#### Make them last longer

1. Search for "ExpireDuration"".
2. Change the bytes after that from F0 40 to FF 7F.

#### Make them worth more

1. Search for "CoinValue$".
2. Change the byte after the $ from 0A to 7F.

### **Gold Coin**

#### Make them last longer

1. Search for "POPANIM\_EFFECTS\_COIN\_GOLD".
2. Afterwards, you should see bytes F0 40.
3. Change it from F0 40 to FF 7F.

#### Make them worth more

1. Search for "POPANIM\_EFFECTS\_COIN\_GOLD".
2. Then look for the third closest $ afterwards.
3. Change the byte after that from 64 to 7F.

### **Gem**

#### Make them last longer

1. Search for "Play\_UI\_Game\_Reward\_Jewel".
2. Change the bytes after that from F0 40 to FF 7F.

#### Make them worth more

1. Search for "GemValue$".
2. Change the byte after that from 01 to 7F.

### **Sun**

#### Make them last longer

1. Search for "Play\_Spawn\_Sun".
2. Change the bytes after that from F0 40 to FF 7F.

#### Make them worth more

1. Search for "SunValue$".
2. Change the byte after that from 32 to 7F.

### **Power Zap**

#### Remove cost

1. Search for "Cost$è".
2. Change the bytes after the $ from E8 07 to 80 00.

### **Power Toss**

#### Remove cost

1. Search for "IMAGE\_UI\_POWERUPS\_POWER\_SWEEP".
2. Then look for the fifth closest $ afterwards.
3. Change the bytes after the $ from B0 09 to 80 00.

### **Power Snow**

#### Remove cost

1. Search for "IMAGE\_UI\_POWERUPS\_POWER\_ICE".
2. Then look for the fifth closest $ afterwards.
3. Change the bytes after the $ from F8 0A to 80 00.

### **Power Flame**

#### Remove cost

1. Search for "IMAGE\_UI\_POWERUPS\_POWER\_FLAMETHROWER".
2. Then look for the fifth closest $ afterwards.
3. Change the bytes after the $ from DC 0B to 80 00.

#### Increase ground flame count

1. Search for "GroundFlameMaxCount$".
2. Change the byte after the $ from 0C to 7F.

### **Reveal Vase**

#### Remove cost

1. Search for "AudioOnPowerupSelected".
2. Before that, find the nearest $.
3. Change the bytes after the $ from C8 01 to 80 00.

### **Butter Zombie**

#### Remove cost

1. Search for "Play\_UI\_MiniGame\_VaseBreak\_ButterActivate".
2. Before that, find the nearest $.
3. Change the bytes after the $ from AC 02 to 80 00.

### **Move Vase**

#### Remove cost

1. Search for "Play\_UI\_MiniGame\_VaseBreak\_MoveActivate".
2. Before that, find the nearest $.
3. Change the bytes after the $ from 90 03 to 80 00.

## Grid Items

### **Lava Puddle**

#### Deal more damage per second

1. Search for "DamagePerSecond$".
2. Change the byte after the $ from 64 to 7F.

### **Speaker**

#### Reduce sound wave damage

1. Search for "SonicDamageAmount$".
2. Change the byte after the $ from 0A to 00.

### **Gold Tile**

#### Increase sun production

1. Search for "SunGrantedPerPlant$".
2. Change the byte after the $ from 32 to 7F.

#### Increase sun produced on planting

1. Search for "SunGrantedOnFirstPlant$".
2. Change the byte after the $ from 32 to 7F.