You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thought it would be interesting to create a tracking issue for this, since I was looking into it.
One of the reasons I think parsing PPAC v4 wasn't possible is because the current implementation uses the zstd streaming API to save the files, and ImHex's zstd_decompress didn't support that.
With that out of the way, it is now possible to parse the zstd data... but the way it is displayed is kinda weird. Here's the updated parts of the script:
This works under the PR branch, but it seems like the way ImHex pattern scripts treats @ 0x00 in <section> is a bit weird: WerWolv/ImHex#1899
In order to access the data you need to go to the sections tab which looks like this:
As of right now, you can't resize this window, which makes it pretty much useless. I'm trying to see if there are any better options on the above ticket.
The text was updated successfully, but these errors were encountered:
rockisch
changed the title
Update ppac_tools to support PPAC 4 (zstd)
Update packets.hexpat to support PPAC 4 (zstd)
Sep 10, 2024
Little background on the packets.hexpat: when I was writing the pattern file, I wasn't planning on adding compression, but when the time came, I was already using other tools to extract data (ppak_reader), so I've kinda gave up on the pattern. I didn't know that there were decompression functions. Also I believe that viewing large packet files in ImHex is not a nice experience.
Anyway, when compression was added to the format, I've written a small program (reppac) to decompress the files, so they could be viewed without trouble in other editors.
Looking through the linked issue I've noticed a mention about virtual files. In the pattern docs there is one function mentioned that is linked to virtual files: hex::core::add_virtual_file
And it can be opened as a reguar file. However it requires slightly modified hexpat to parse. Maybe there is some way to copy data in the pattern between files or views.
Thought it would be interesting to create a tracking issue for this, since I was looking into it.
One of the reasons I think parsing PPAC v4 wasn't possible is because the current implementation uses the zstd streaming API to save the files, and ImHex's
zstd_decompress
didn't support that.This PR fixes that:
WerWolv/ImHex#1898
With that out of the way, it is now possible to parse the zstd data... but the way it is displayed is kinda weird. Here's the updated parts of the script:
This works under the PR branch, but it seems like the way ImHex pattern scripts treats
@ 0x00 in <section>
is a bit weird:WerWolv/ImHex#1899
In order to access the data you need to go to the sections tab which looks like this:
As of right now, you can't resize this window, which makes it pretty much useless. I'm trying to see if there are any better options on the above ticket.
The text was updated successfully, but these errors were encountered: