Converted Unknown64 from PAK format into Timestamp#22
Closed
Redplcs wants to merge 2 commits intoIanusInferus:masterfrom
Closed
Converted Unknown64 from PAK format into Timestamp#22Redplcs wants to merge 2 commits intoIanusInferus:masterfrom
Unknown64 from PAK format into Timestamp#22Redplcs wants to merge 2 commits intoIanusInferus:masterfrom
Conversation
Contributor
Author
Owner
|
I have merged your pull request manually. |
Owner
|
Please rebase to latest master next time. |
|
Hi! Would it make sense to modify the LastWriteTime of the extracted files so it matches the timestamp? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

After some researching using ChatGPT, I found that unknown64 is basically filetime, because It absolutely not hash sum, because It starts the same which is not impossible for multiple files. AI says that this may be Windows FILETIME and I agree with it, because it has almost the same date with the creation date of .exe file. I've changed field, conversion from u64 into datetime, changed UI and docs, which was kinda painful. I didn't use datetimeoffset, because filetime does not stores offset and it may be only guessed
AI summary:
FILETIME format: 64-bit little-endian integer = number of 100-ns ticks since 1601-01-01 (UTC).
When you interpret Unknown64 that way, the values decode into very plausible build/packaging timestamps, and they cluster into tight time windows (hours/days), which hashes don’t do.
Example (Xbox release, first entry MENUS/TEXTURES/RELOJ.RAW):
Unknown64 = 127823472405772090 → 2006-01-21 20:00:40 UTC (FILETIME decode)
Example (PC release, first entry):
127846437150577500 → 2006-02-17 09:55:15 UTC
Resources:
