Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

[Dissidia FF/General] File with tree structure header?

Featured Replies

  • Author
  • Localization

yuzuramen, posted Sat Sep 28, 2019 7:04 am (51029)


I've come across files that have something that looks like a tree structure as part of their header. The delimiters seem to be a decreasing number of 0's for each subtree, i.e., 0x00000000, then 0x0000, then 0x00, etc. Each leaf node then seems to have increasing short numbers. I'm wondering what this specific file could be, are there any common formats that use such a structure?

The original file can be found in viewtopic.php?f=9&t=12565 Here is what it looks like. I'm posting this is a new thread because this is a more specific/independent question.

Image
  • Author
  • Localization

yuzuramen, posted Sat Sep 28, 2019 2:02 pm (51050)


I've made some amount of progress on this, though I am still mostly clueless:

1. The file seems to consist of 4 parts: Header (32 bits), Some kind of table (variable size), another kind of table/tree (variable size), and the content data.
2. Header is [prefix][filesize][unk][unk][unk][table1_size][table2_size]
3. Table1 seems to contains some kind of increasing integers, looks like offsets. However, these offsets go past the file size. This leads me to believe that the file content is compressed and these are the offsets into the uncompressed data. I further confirmed this by looking at files of different sizes. The table1 size stays constant, but the offsets consistently go a little bit past the file size, but never too much.
4. Table 2 still seems like some kind of tree to me, but I could be wrong. I am clueless here, but I'm thinking this is what is used to actually used to compress the data. It could maybe be some kind of huffman encoding. I confirmed this by looking at files of different content sizes. The table2 size always grows proportionally with the content, while the table1 size stays pretty much constant.
  • Author
  • Localization

yuzuramen, posted Sun Sep 29, 2019 2:52 am (51069)


Another small update. I looked at the diff of the same file(s) before and after an app update. Sometimes data is appended to such files. When data is appended, entries are appended to the second table as well. It always grows with the data. I no longer believe the second table is a tree, just some kind of table-like encoding/encryption for the data. However, I haven't been able to figure out how exactly it corresponds to the data, not of the offsets seem to be matching, and I don't understand why it would contain increasing integers.

Image
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.