-
Notifications
You must be signed in to change notification settings - Fork 0
Asset Hashes
ZNixian edited this page Oct 23, 2017
·
2 revisions
The asset databaes seems to be some kind of map between IDStrings and assets. Rather than storing a assetname->asset relationship, assets are stored as a hash(assetname)->asset relationship, IDString representing the hash function.
Using the PAYDAY 2 bundle tool, you can extract the contents of PAYDAY 2's assets, and view the hashed names of each asset. Additionally, see the unofficial hashlist file, which contains a valid set of mappings between strings and hashes: BB:Frankelstner/pd2-hashlist.
A decompiled and cleaned-up implementation of the hashing function: Gist.
Internally, hashes are represented by dsl::IDString objects.