Warhammer: Vermintide 2

Warhammer: Vermintide 2

Not enough ratings
Murmur Hash
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.351 KB
21 Apr @ 7:22am
23 Apr @ 3:33pm
3 Change Notes ( view )

Subscribe to download
Murmur Hash

In 1 collection by Janoti!
Janoti!'s Mods
13 items
Description
This is a mod for other modders

This Mod allows the convertion of strings to murmur hashes as they are used by the game,
and the convertion from a hash to an inverted hash that when hashed again results in the same hash for further use in other mods.

This functionality has been part of the VT2 Bundle Unpacker[gitlab.com] for some time but was not accessible in the game itself.

The inverse hash is not the original string that was used to create a hash. Instead, it is a string of fixed length that, when hashed with Murmur, creates a hash identical to <input>.
While the primary version of the hash function operates on and creates 64-bit hashes, the engine sometimes uses 32-bit hashes. However, while a separate algorithm does exist, the game instead simply creates a 64-bit hash and cuts off the second half.

Functionality
Create a hash value from a string:
/murmur_hash <string_to_hash>

Create an inversed hash value from a hash:
/murmur_inverse <hash_hi> <hash_lo>

The has value has to be split in its hi and lo part eg
0C5CF5FB0717AFCB --> hash_hi = 0x0C5CF5FB, hash_lo = 0x0717AFCB


For additional details to what murmur is and how the mod works please refer to:
The mods source[github.com]
Discussion in the Vermintide Modders Discord Server[discord.com]
Documentation of the VT2 Bundle Unpacker[gitlab.com]
Original reference code[bitsquid.blogspot.com]

Credits
Huge thanks to Minding who helped me make 64bit calculations finally a reality in lua
And many thanks to all the people that helped me with tools or general support while researching and testing the topic;
Sir Aiedail, Whitegoat, MantisShrimp, dalo_kraff, MannyBlanc

Thumbnail
1 Comments
Max Stirner 30 Apr @ 9:49am 
Upvote for the Thumbnail.