Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repair Header #53

Open
harumazzz opened this issue Feb 12, 2023 · 8 comments
Open

Repair Header #53

harumazzz opened this issue Feb 12, 2023 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@harumazzz
Copy link

harumazzz commented Feb 12, 2023

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
Copy link
Owner

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

@nineteendo nineteendo added the help wanted Extra attention is needed label Feb 12, 2023
@denny4-user
Copy link

Hey guys, how can I fix the headers?

@nineteendo
Copy link
Owner

I don't know.

@denny4-user
Copy link

@Haruma-VN Does he know?

@denny4-user
Copy link

I understand the principle itself, but I don't have the programming skills to write such a script.

@nineteendo
Copy link
Owner

RSB1 is a proprietary data format, that the modding community tries to reverse engineer. If it was simple, it would already be implemented in PyVZ2.

@denny4-user
Copy link

I'm not saying that I'm a better programmer than you or others, I just want to help you if I can.

@nineteendo
Copy link
Owner

OK, but right now I'm improving the rton2json and json2rton conversion. As well as implementing json patching:
https://github.com/nineteendo/jsonyx

There's a lot left to do with these arguably simpler data formats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants