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

Version 4 data after START? #5

Open
abdullahbaa5 opened this issue Mar 8, 2022 · 2 comments
Open

Version 4 data after START? #5

abdullahbaa5 opened this issue Mar 8, 2022 · 2 comments

Comments

@abdullahbaa5
Copy link

Since version 4 there seems to be export names and some random data related to each export after "START" in compressed file. Considering the export data is being read from the decompressed buffer any idea what the extra data after START is?

@baraklevy20
Copy link
Owner

baraklevy20 commented Mar 8, 2022

I'm not exactly sure. From a very shallow look, it seems to be a footer, which consists of (when reading from the end of the file):

  • Length of the footer (4 bytes) - excluding the 4 bytes specifying the length of the footer. i.e. all the bytes from START to the end of the file - 4 bytes.
  • Field size - 1 byte. Let's call this field field_size.

Then reading from START:

  • A list of export names. Each export name is null-terminated, followed by 0x10 (probably MD5 length), followed by 10 bytes (probably MD5).
  • The number of exports - read 1 byte. if it's not zero, this field is 1 byte. If it's zero, the number of exports is the next 2 bytes. Let's call this field num_exports.
  • unknown - A list of length num_exports where each field is of size 2^field_size bytes.
  • unknown - 3 bytes.
  • unknown - A list of length num_exports where each field is a byte equal to 0x64 (maybe a padding of some sort, dunno).
  • unknown - 2^field_size bytes.

The footer is very small, it doesn't seem to contain new data (e.g. new textures/movie clips). It's probably just metadata.

@abdullahbaa5
Copy link
Author

Great thanks! Now it does make sense. Though I will try to figure out and see what those lengths and md5 hash corresponds to > could help with sc writing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants