Jump to content

Encryption flags on modified RPF archive


Recommended Posts

Hi there,

I had some users complaining about my app crashing when working with GTAV RPF archives that were modified by OpenIV. When I investigated the issue, I noticed that OpenIV is changing the encryption flags in the main RPF archive header (i.e bytes # 12 - 15).

As an example, update.rpf in my game files has these bytes 12-15 set to 0x0FEFFFFF (ie. NG encryption) when it's unmodified. But if I edit a file in the archive (eg. make a change to dlclist.xml in the OpenIV editor), afterwards these bytes are set to 0x4E45504F (ie "OPEN").

 

I've added a workaround to my app to handle this case, but I'm still wondering if there's any reason that OpenIV does this? Or are you just using these bytes to indicate it's been edited by OpenIV?

Link to comment
https://gtaforums.com/topic/887945-encryption-flags-on-modified-rpf-archive/
Share on other sites

So for anyone interested, the short answer is that these "OPEN" bytes are used to indicate that the RPF table of contents (eg all the file names etc) is not encrypted, since OpenIV will not encrypt all that TOC data when the RPF is modified (in original files, it is all encrypted).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.