Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Plants vs. Zombies"

From PCGamingWiki, the wiki about fixing PC games
m (→‎System requirements: updated template parameter(s))
(cleanup)
Line 1: Line 1:
{{cleanup}}
 
 
{{Infobox game
 
{{Infobox game
 
|cover        = Plants vs Zombies.jpg
 
|cover        = Plants vs Zombies.jpg
Line 13: Line 12:
 
|steam appid  = 3590
 
|steam appid  = 3590
 
|gogcom page  =  
 
|gogcom page  =  
 +
|winehq      = 9657
 
|wikipedia    = Plants vs. Zombies
 
|wikipedia    = Plants vs. Zombies
 
}}
 
}}
Line 29: Line 29:
 
{{Availability/row| Origin | plants-vs-zombies | Origin | Game of the Year Edition.}}
 
{{Availability/row| Origin | plants-vs-zombies | Origin | Game of the Year Edition.}}
 
}}
 
}}
===Linux===
+
{{ii}} A [https://chrome.google.com/webstore/detail/plants-vs-zombies/mmcegpfdgcoclcdfkjahiimlikdpnina Chrome Web Store] version is also available, and is compatible with Linux systems.
While no official Linux version exists, a version of Plants vs. Zombies for Google's Chrome web browser is available. This version, available for purchase from the [https://chrome.google.com/webstore/detail/mmcegpfdgcoclcdfkjahiimlikdpnina Chrome Web Store], uses Google's "Native Client" technology and should work on Linux systems. The Windows version [http://appdb.winehq.org/objectManager.php?sClass=application&iId=9657 works under Wine].
 
  
 
==Game data==
 
==Game data==
Line 42: Line 41:
 
{{Game data|
 
{{Game data|
 
{{Game data/row|Windows|}}
 
{{Game data/row|Windows|}}
{{Game data/row|Origin|~Programdata/Popcap Games/PlantsVsZombies/userdata}}
+
{{Game data/row|Origin|{{p|programdata}}/Popcap Games/PlantsVsZombies/userdata/}}
{{Game data/row|Steam|{{p|steam}}/userdata/{{p|uid}}/3590/remote}}
+
{{Game data/row|Steam|{{p|steam}}/userdata/{{p|uid}}/3590/remote/}}
{{Game data/row|OS X|~/Library/Application Support/PopCap/PlantsVsZombiesMac/userdata}}
+
{{Game data/row|OS X|~/Library/Application Support/PopCap/PlantsVsZombiesMac/userdata/}}
 
}}
 
}}
  
Line 58: Line 57:
 
|gamesave manager notes=  
 
|gamesave manager notes=  
 
}}
 
}}
 +
{{--}} Saves are not compatible between Windows and OS X versions, causing saves to become [[#Error reading user file: Failed reading file|corrupted]] if used on the other platform.
  
 
==Video settings==
 
==Video settings==
Line 68: Line 68:
 
|4k ultra hd wsgf award    = unsupported
 
|4k ultra hd wsgf award    = unsupported
 
|widescreen resolution      = false
 
|widescreen resolution      = false
|widescreen resolution notes= Pillarboxed 4:3.
+
|widescreen resolution notes= Pillarboxed 800x600 only.
 
|multimonitor              = false
 
|multimonitor              = false
 
|multimonitor notes        =  
 
|multimonitor notes        =  
Line 75: Line 75:
 
|4k ultra hd                = false
 
|4k ultra hd                = false
 
|4k ultra hd notes          =  
 
|4k ultra hd notes          =  
|fov                        = false
+
|fov                        = n/a
 
|fov notes                  =  
 
|fov notes                  =  
 
|windowed                  = true
 
|windowed                  = true
|windowed notes            =  
+
|windowed notes            = Can also be toggled with {{key|Alt|Enter}}.
 
|borderless windowed        = false
 
|borderless windowed        = false
|borderless windowed notes  =  
+
|borderless windowed notes  = Glitches if attempting to force.
|anisotropic                = false
+
|anisotropic                = n/a
 
|anisotropic notes          =  
 
|anisotropic notes          =  
 
|antialiasing              = false
 
|antialiasing              = false
Line 90: Line 90:
 
|oculus rift notes          =  
 
|oculus rift notes          =  
 
|high frame rate            = false
 
|high frame rate            = false
|high frame rate notes      = Frame rate is capped at 100 FPS.
+
|high frame rate notes      = Frame rate is capped at 29 FPS in fullscreen, 100 FPS in windowed.
 
|color blind                = unknown
 
|color blind                = unknown
 
|color blind notes          =  
 
|color blind notes          =  
Line 132: Line 132:
 
|eax support notes        =  
 
|eax support notes        =  
 
}}
 
}}
 +
 +
==Issues unresolved==
 +
===Error reading user file: Failed reading file===
 +
{{ii}} This is an error that occurs when the save game data is corrupted, likely as a result of syncing saves between Windows and OS X and launching the game.
 +
{{ii}} [[#Save game data location|Save data]] must be deleted in order to launch the game again. Steam user ego100000 claims to be able to repair the saves in this situation.<ref>[http://steamcommunity.com/app/3590/discussions/0/34095131905745057/ Fix: Crash on startup, Corrupt save (Mac) :: Plants vs. Zombies: Game of the Year General Discussions]</ref>
  
 
==Issues fixed==
 
==Issues fixed==
===BASS_ChannelSetAttributes Crash===
+
===BASS_ChannelSetAttributes function not found in bass.dll===
 +
{{Fixbox|1=
 +
{{Fixbox/fix|Rename base.dll|ref=<ref>[http://steamcommunity.com/app/3590/discussions/0/630802343973290024/#c540736966035264125 Error with bass.dll :: Plants vs. Zombies: Game of the Year General Discussions]</ref><ref>[http://forums.steampowered.com/forums/showthread.php?p=31830981 Bass.dll error - Steam Users' Forums]</ref><ref>[http://www.un4seen.com/forum/?topic=4228.0 Popcap framework and BASS 2.1 compatibility issue.]</ref>}}
 +
# Rename any <code>base.dll</code> file(s) found in these locations: <code>C:\Windows\</code>, <code>C:\Windows\System32\</code> and <code>C:\Windows\SysWow64\</code>
 +
# If this causes issues with the program that installed <code>bass.dll</code> there, rename the file(s) back to <code>base.dll</code>
 +
}}
  
When starting Plants Vs Zombies (and other PopCap games as well), the game might crash with an error message, BASS_ChannelSetAttributes function not found.  This is caused by the game accidentally trying to read a file that shares the name of one of the game files, bass.dll.  This happens when there is a file named bass.dll in one of the following folders (I am using C as an example):  C:\Windows\, C:\Windows\System32\, or C:\Windows\SysWow64\.  Renaming or removing this file will allow the game to run (but may cause problems with the program that installed bass.dll there, keep a backup in case this happens).  Bass.dll is usually a library file for sound support created by Un4seen developments and installed with several programs, including many PopCap games.  Plants Vs. Zombies uses a different version of the file, and some of the commands have been removed or changed, causing the error.<ref>http://forums.steampowered.com/forums/showthread.php?p=31830981</ref><ref>http://www.un4seen.com/forum/?topic=4228.0</ref>
+
{{Fixbox|1=
 +
{{Fixbox/fix|Run the game in compatibility mode for Windows XP}}
 +
}}
  
Another reported fix is running the game in XP compatibility mode. This might introduce other problems, especially on the Steam version.
+
===Unable to load Steam.dll===
 +
{{Fixbox|1=
 +
{{Fixbox/fix|[[Steam#Verify Integrity of Game Cache|Verify integrity of game cache]]}}
 +
}}
 +
{{Fixbox|1=
 +
{{Fixbox/fix|Run the game in compatibility mode for Windows XP SP2, and as an administrator}}
 +
}}
 +
{{Fixbox|1=
 +
{{Fixbox/fix|Delete/rename Steam.dll}}
 +
# Exit the Steam client.
 +
# Go to the Steam installation folder.
 +
# Delete or rename <code>Steam.dll</code>
 +
# Launch the Steam client and let it update.
 +
}}
  
This problem occurs on both retail and Steam versions of the game.
+
===Invalid Command Line Parameter: -changedir===
 
+
{{Fixbox|1=
===Steam-related problems===
+
{{Fixbox/fix|Add -changedir parameter}}
====Save Game Corruption====
+
# Right-click the game in the Steam client and choose Properties.
Although the game supports [[Steam Cloud]] to sync save files the Windows and OS X save files are not compatible with each other. Playing the game on one OS and then downloading it and running it on the other will cause the files to be permanently corrupted and you will lose all data. There are also reports of save data suddenly disappearing without clear reason. It is recommended that you back up your save data just in case.
+
# Click Set Launch Options and add <code>-changedir</code>
 
+
# Click OK to save the changes.
====Problems starting up====
+
}}
Error message: 'Unable to load Steam.dll'.
 
 
 
=====Verify cache=====
 
Right-Click on Plants Vs. Zombies in the Steam game library, click 'Properties', select the 'Local Files' tab and click on the 'Verify Integrity of Game Cache'.
 
 
 
=====Run program as an administrator=====
 
Locate the .exe file in this location:
 
<pre>C:\Program Files (x86)\Steam\steamapp\common\Plants Vs. Zombies\PlantsVsZombies.exe</pre>
 
 
 
*Right-Click on the PlantsVsZombies.exe file, click on the Compatibility tab, check the box next to 'Run this program as an administrator', click Apply and OK.
 
*Check the box next to 'Run this program in compatibility mode for:' and then select "Windows XP (Service Pack 2)".
 
 
 
=====Delete 'Steam.dll'=====
 
Close the steam client.
 
 
 
Go to the steam folder.
 
<pre>C:\Program Files (x86)\Steam</pre>
 
 
 
Delete, move, or rename 'Steam.dll' Restart the steam client and let it update.
 
 
 
====Change game launch options====
 
Error message: 'Invalid Command Line Parameter: -changedir'.
 
 
 
* In Steam game library, in the left hand pane, right-click Plants vs. Zombies.
 
* Select 'Properties'.  
 
* Click 'Set launch options...'.
 
* Enter <code>-changedir</code> into the field.
 
  
 
==System requirements==
 
==System requirements==
Line 179: Line 177:
 
|OSfamily = Windows
 
|OSfamily = Windows
  
|minOS    = XP, Vista, 7
+
|minOS    = XP
 
|minCPU  = 1.2 GHz
 
|minCPU  = 1.2 GHz
 
|minRAM  = 500 MB
 
|minRAM  = 500 MB

Revision as of 13:55, 27 October 2014

Plants vs. Zombies
Plants vs. Zombies cover
Developers
PopCap Games
Publishers
Electronic Arts
Engines
PopCap Games Framework
Release dates
Windows May 5, 2009
macOS (OS X) May 5, 2009
Plants vs. Zombies on Wikipedia

Warnings

The macOS (OS X) version of this game does not work on macOS Catalina (version 10.15) or later due to the removal of support for 32-bit-only apps.
Plants vs. Zombies
Plants vs. Zombies 2009
Plants vs. Zombies: Garden Warfare 2014
Plants vs. Zombies: Garden Warfare 2 2016
Plants vs. Zombies: Battle for Neighborville 2019

General information

Official developer site
Official game series site
Plants vs. Zombies Wiki - A wiki for everything Plants vs. Zombies related
Steam Community Discussions

Availability

Source DRM Notes Keys OS
Official website
DRM details are not known
Free trials are available for browsers and most major platforms.
Error: key type '{{{5}}}' not recognised
Error: OS parameter cannot be empty
Steam
Icon overlay.png
Game of the Year Edition.
Error: key type '{{{5}}}' not recognised
Error: OS parameter cannot be empty
Origin
Origin
Game of the Year Edition.
Error: key type '{{{5}}}' not recognised
Error: OS parameter cannot be empty
A Chrome Web Store version is also available, and is compatible with Linux systems.

Game data

Configuration file(s) location

Template:Game data/rowTemplate:Game data/row
System Location
Steam Play (Linux) <SteamLibrary-folder>/steamapps/compatdata/3590/pfx/[Note 1]

Save game data location

Save game cloud syncing

System Native Notes
Origin
Steam Cloud
Saves are not compatible between Windows and OS X versions, causing saves to become corrupted if used on the other platform.

Video settings

In-game options menu.

Template:Video settings

Input settings

Template:Input settings

Audio settings

Template:Audio settings

Issues unresolved

Error reading user file: Failed reading file

This is an error that occurs when the save game data is corrupted, likely as a result of syncing saves between Windows and OS X and launching the game.
Save data must be deleted in order to launch the game again. Steam user ego100000 claims to be able to repair the saves in this situation.[1]

Issues fixed

BASS_ChannelSetAttributes function not found in bass.dll

Instructions
Instructions

Unable to load Steam.dll

Instructions
Instructions
Instructions

Invalid Command Line Parameter: -changedir

Instructions

System requirements

Windows
Minimum
Operating system (OS) XP
Processor (CPU) 1.2 GHz
System memory (RAM) 500 MB
Hard disk drive (HDD) 65 MB
Video card (GPU) 128 MB of VRAM
macOS (OS X)
Minimum Recommended
Operating system (OS) 10.4.11
Processor (CPU) 1.66 GHz Dual Core
System memory (RAM) 1 GB
Hard disk drive (HDD) 50 MB
Video card (GPU) 64 MB of VRAM

Notes

  1. 1.0 1.1 Notes regarding Steam Play (Linux) data:

References