"Plants vs. Zombies" game save modification

Description

demand

know how

Necessary software

principle

Process

to sum up

Software download related instructions

Related Links

Description

demand

Modify the archive file of "Plants vs. Zombies", directly modify the level progress of a new player to level 5-2 (jump level), and directly modify the money to 10000

know how

The meaning
of binary and hexadecimal to computers Master the conversion between various data systems
Master how to modify and save binary files

Necessary software

Hex Editor Neo
"Plants vs. Zombies 1"

principle

Use the principle of data conversion to modify the archive, specifically by using the "Hex Editor Neo" software to open the file about the archive and record the relevant data, then open the game and complete a level in the game, exit the game and use the "Hex Editor Neo" again The software checks the archived files and observes the changing laws among them. After repeated repetitions, a certain rule is drawn.
By using the rules drawn before to modify the data to skip the level.
Similarly, gold coins in the game can be modified by skipping levels.

Process

After entering the game, create a new user, the user name is "shenshu", and then look for the game archive file location C:\ProgramData\PopCap Games\PlantsVsZombies\userdata\user2.dat as shown in the figure:
Generally speaking, this position is relatively deep and requires an operation, as shown in the figure below
This location is generally hidden relatively deep , You need to perform an operation, as shown in the figure below.
Through this step, you can find the specific file location
Through this step, you can find the specific file location. The
game user’s archive file is user1.dat, which is opened with Hex Editor Neo as shown in the figure:
Insert picture description here

If you want to modify the archive to achieve the purpose of jumping, you need to know where the level data is stored in the archive file. Therefore, you need to play from level 1-1 to level 1-3. Every time you pass a level, you will back up the user2.dat file. Then compare the data differences in the three documents:
Insert picture description here
Insert picture description here

Through 3 times of checking, we can see that the data has changed. After comparison, the data of address 04 is different in each archive. In
level 1-1, the data is "01", in
level 1-2, the data is "02", and in
level 1-3, the data is "03" "
As the level changes, it is found that the data of address 04 can be modified. After saving the archive file, enter the game to see if the level has changed; modify the data to "08", enter the game and find that the level has changed:
Insert picture description here
continue to modify the data, more After this time, it was found that the corresponding relationship between the
level and the hexadecimal data of the address 04 is: level 1-1,
level 01 1-10,
level 0A
level 2-1, level 0B level 2-10, level 14
and so on,
level 5-1 , 29
level 5-2, 2A
level 5-10, 32

Change the data in the 04 address to 2A, the first step is realized, and the store function is also unlocked, but the data is "0".
Insert picture description here

Insert picture description here

Here we begin to modify the data of gold coins. After playing the same game and checking, it can be found that the gold coins are determined by the data of address 08-0b, so modifying this address can change the gold coins in the game.
For example: the data under address 08 is changed to 01. Insert picture description here
You can see that the gold coin has changed to 10, and after testing, it is found that an address 08 can be changed to hexadecimal at most (ff) The maximum value of gold coins that can be stored is 2550 (10 of ff) Times), so the maximum total number of gold coins in the game is 10200, but if 08-0b is changed to (ff), it will overflow to -10, so the maximum is 10000 gold coins, modify the data of 08-0b to e8 03 00 00 The hour gold coin is 10,000.
In this way, gold coins can be modified. In theory, you can control the game archive at will through the conversion of the base.

to sum up

Computers use a binary system, and for developers, hexadecimal is more compact and easier to read, so data files are basically stored in binary, while hexadecimal is used for display and editing.

Software download related instructions

Hex Editor Neo:
download link: (official website): https://www.hhdsoftware.com/free-hex-editor
because the official website download may be particularly slow, you can use Thunder when downloading to achieve relatively high-speed download .
Plants vs. Zombies: It can be downloaded for free on the official website of Douyou. But at the same time you have to download the funny game box.

Guess you like

Origin blog.csdn.net/qq_54734645/article/details/115056880