A project focused on decompiling the latest functionality from the first PvZ title and expand upon the game and its engine
The SexyAppFramework dating as back as 2005 is a very old game engine and it does not follow proper C++ conventions as per modern standards nor does it use a modern renderer backend
This project aims to modernize the engine by using features from the latest C++ standards aswell as replacing the old legacy DirectDraw and Direct3D7 renderers for the modern Vulkan library wrapped with SDL. Additionally expanding upon an old (now deleted) decompilation project of PvZ version 0.9.9 by Miya aka Kopie to get the best possible PvZ experience both for modders and players alike.
This project does not condone piracy
This project does not include any IP from PopCap outside of their open source game engine, this will only output the executable for a decompiled, fan version of PvZ
To play the game using this project you need to have access to the original game files by purchasing it
- Add x64 support for the base game (game.pak Support left to implement)
- Replace the old renderer backend for GLFW Only a couple bugs left
- Replace all Windows only code for cross-platform GLFW counterparts
- Add all functionality from the GOTY version of the game
- Achievements (Partial)
- Zombatar
- Create an easy to use modding API for the game
- Parse zombies from files
- Parse plants from files
- Parse maps from files
- Add scripting for custom sequences
Open the folder containing the CMakeSettings.json
, wait until cache finishes generating and build the project
Run the following commands (assuming you have CMake installed with Ninja) where the CMakeSettings.json
file is located
cmake -G Ninja -B build
cmake --build build
If running these commands does not create a successful build please create an issue and detail your problem
After you build, the output executable should be in the root of the build/ folder.
Then you want to copy that executable inside of the original game's root folder (or copy the contents of the original game folder inside the previously mentioned folder)
After that you should be able to just open the built executable and enjoy re-pvz!
When contributing please follow the following guides:
SexyAppFramework coding philosophy
The framework differs from many other APIs in that some class properties are not wrapped in accessor methods, but rather are made to be accessed directly through public member data. The window caption of your application, for example, is set by assigning a value to the std::string mTitle in the application object before the application’s window is created. We felt that in many cases this reduced the code required to implement a class. Also of note is the prefix notation used on variables: “m” denotes a class member, “the” denotes a parameter passed to a method or function, and “a” denotes a local variable.
Contributor markings
Whenever you need to leave a comment for other developers to find you should do so with the following grammar:
- Always include the name of the contributor as in:
@Contributor
- For todos include the todo marking as in:
@Contributor todo
- Always add a colon to specify that the start of the comment starts there
@Contributor todo: Thing went wrong!
- If a new function has been reversed and you have found the address in the latest version of the game (or have reversed
a certain class member offset) please note it as follows:
@Contributor GOTY: 0xADDRESS
- @rspforhp for their amazing work decompiling the 0.9.9 version of PvZ
- @ruslan831 for archiving the 0.9.9 decompilation of PvZ
- The GLFW team for their amazing work
- PopCap for creating the amazing PvZ franchise (and making their game engine public)
- All the contributors which have worked or are actively working in this amazing project