nineteendo / pyvz2

PyVZ2 is a command line utility to modify PvZ2
GNU General Public License v3.0
44 stars 6 forks source link

Repair Header #53

Open Haruma-VN opened 1 year ago

Haruma-VN commented 1 year ago

There are multiple things we can do with the header. Example: RSGP header are very easily to be broken, but that's not impossible to repair. In the first place, they trying to change compression flag 0x01 and 0x03 to an random hex byte number, but now it can be more corrupt since the entire header has been corrupted. Also, 1BSR Header which is known as the smart path has the version number can easily be changed from 04 to any other number. Try to make the tool recover the magic by return it to 0x04

nineteendo commented 1 year ago

Compression flag will be repairable again. (I'll re-implement the functionality for that) The rest of the header too. The version number isn't used by the game, so repairing will simply fix other tools. And I'm not sure how this can be figured out (pvzfree vs. pvz2 ipad3):

pvzfree ipad3