-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use greyhound index, deploy by types
- Loading branch information
Showing
15 changed files
with
1,704,595 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,51 @@ | ||
# HashIndex | ||
# Hash Index | ||
|
||
Powered by [acts](https://github.com/ate47/atian-cod-tools). | ||
[](https://github.com/ate47/HashIndex/actions/workflows/release.yml) | ||
|
||
Index containing different hashes, feel free to reuse them. | ||
Index containing different hashes, feel free to reuse them. | ||
|
||
The repository was created using hashes from various sources, see the credits section for the list. | ||
|
||
## Downloads | ||
|
||
| File | Description | | ||
|------|-------------| | ||
| [hashes-all.zip](https://github.com/ate47/HashIndex/releases/download/release/hashes-all.zip) | All the hashes | | ||
| [hashes-xassets-all.zip](https://github.com/ate47/HashIndex/releases/download/release/hashes-xassets-all.zip) | All XAssets, useful for [Greyhound](https://github.com/Scobalula/Greyhound)| | ||
| [hashes-scr-all.zip](https://github.com/ate47/HashIndex/releases/download/release/hashes-scr-all.zip) | All source hashes, to be used with a decompiler like [acts](https://github.com/ate47/atian-cod-tools) | | ||
|
||
## Propose new hashes | ||
|
||
[See CONTRIBUTING.md](.github/CONTRIBUTING.md). | ||
|
||
## Dev | ||
|
||
The different hashing algorithms are defined in the file [hash.hpp](https://github.com/ate47/atian-cod-tools/blob/main/src/shared/utils/hash.hpp). | ||
|
||
The files are exported to .wni files. The file structure is in unaligned little endian: | ||
|
||
It is composed of: | ||
|
||
- file magic `0x20494E57` (32 bits integer) | ||
- file version `1` (16 bits integer) | ||
- number of entries (32 bits integer) | ||
- compressed size of the data (32 bits integer) | ||
- decompressed size of the data (32 bits integer) | ||
- [LZ4](https://github.com/lz4/lz4) compressed data (compressed size of the data bytes) | ||
|
||
The decompressed data is number of entries times this data structure: | ||
|
||
- hashed value (64 bits unsigned integer) | ||
- unhashed value (0 bit terminated string) | ||
|
||
|
||
Depending on the origin of the hash, a 62 or 63 bits mask might have been applied. For an optimal usage, it is suggested to apply a 62 bits mask to each hash while loading or querying a dataset. i.e. `(hash & 0xFFFFFFFFFFFFFFF)`. | ||
|
||
## Credits | ||
|
||
This index is based on different repositories | ||
|
||
- Scobalula : WNI format, the [GreyhoundPackageIndex](https://github.com/Scobalula/GreyhoundPackageIndex) | ||
- Scobalula, serious, xensik : scr hashes inside their decompilers ([Cerberus](https://github.com/Scobalula/Cerberus-Repo), [T89-Dec](https://github.com/shiversoftdev/T89-Dec), [gsc-tool](https://github.com/xensik/gsc-tool/)) | ||
- jek47, Luisete2105 : scr hashes | ||
- Richkiller, xCortlandx: xassets hashes |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.