Scobalula / GreyhoundPackageIndex

Package Index Lists for Greyhound
21 stars 8 forks source link

Greyhound Package Index

Discord

The Greyhound Package Index is an ongoing community effort to supply Greyhound with meaningful filenames for assets across various Call of Duty titles. It is a continuation of DTZxPorter's CommunityNameDB.

Index Progress
xAnims 40.42%
xImages 68.76%
xMaterials 61.13%
xModels 70.18%
xSounds 35.64%
xStrings 76.75%
Title Packages Used
Vanguard xsounds, xstrings
Black Ops Cold War xanims, ximages, xmaterials, xmodels, xsounds, xstrings
Black Ops 4 xanims, ximages, xmaterials, xmodels, xsounds
Black Ops III sab
Black Ops II ipak, sab

Package Index Tool

Package Index Tool is used to convert package indexes between the .WNI, .CSV, and .TXT formats.

The FNV-1a hash algorithm, provided by DTZxPorter, is used by Black Ops 4, Black Ops Cold War and Vanguard.

const uint64_t FNVPrime = 0x100000001B3;
const uint64_t FNVOffset = 0xCBF29CE484222325;

uint64_t Hash(const char* Data, uint64_t Size)
{
    uint64_t Result = FNVOffset;

    for (uint64_t i = 0; i < Size; i++)
    {
        Result ^= Data[i];
        Result *= FNVPrime;
    }

    return Result;
}

auto Example = Hash("void", strlen("void"));

Contributing

To contribute to the Package Index, submit a new Issue using the provided template. For unverified filenames, ensure that you adhere to the Community Asset Naming Specification.