Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] that's so baffling lol, i guess that means there's a bug in this lookup3 implementation?

[DiscordArchive] that's so baffling lol, i guess that means there's a bug in this lookup3 implementation?

[DiscordArchive] that's so baffling lol, i guess that means there's a bug in this lookup3 implementation?

rektbyfaith
Administrator
0
04-04-2024, 07:54 PM
#1
Archived author: badopsec • Posted: 2024-04-04T19:54:07.350000+00:00
Original source

that's so baffling lol, i guess that means there's a bug in this lookup3 implementation?
rektbyfaith
04-04-2024, 07:54 PM #1

Archived author: badopsec • Posted: 2024-04-04T19:54:07.350000+00:00
Original source

that's so baffling lol, i guess that means there's a bug in this lookup3 implementation?

rektbyfaith
Administrator
0
04-04-2024, 07:57 PM
#2
Archived author: badopsec • Posted: 2024-04-04T19:57:27.423000+00:00
Original source

sure enough, this works
```rust
let normalized = name.to_ascii_uppercase().replace('/', "\\");
let mut hash = hashers::jenkins::lookup3(&normalized.as_bytes());
let high = hash & 0xffffffff00000000;
let low = hash & 0x00000000ffffffff;
hash = high >> 32 | low << 32;
```
rektbyfaith
04-04-2024, 07:57 PM #2

Archived author: badopsec • Posted: 2024-04-04T19:57:27.423000+00:00
Original source

sure enough, this works
```rust
let normalized = name.to_ascii_uppercase().replace('/', "\\");
let mut hash = hashers::jenkins::lookup3(&normalized.as_bytes());
let high = hash & 0xffffffff00000000;
let low = hash & 0x00000000ffffffff;
hash = high >> 32 | low << 32;
```

rektbyfaith
Administrator
0
04-04-2024, 08:10 PM
#3
Archived author: badopsec • Posted: 2024-04-04T20:10:41.018000+00:00
Original source

it's not fully baked yet, but this is for a server i'm writing that'll package/serve all the files for a given wow version w/ a simple `GET /:fileid` or `GET /filename` interface https://github.com/wgreenberg/polymorph/
rektbyfaith
04-04-2024, 08:10 PM #3

Archived author: badopsec • Posted: 2024-04-04T20:10:41.018000+00:00
Original source

it's not fully baked yet, but this is for a server i'm writing that'll package/serve all the files for a given wow version w/ a simple `GET /:fileid` or `GET /filename` interface https://github.com/wgreenberg/polymorph/

rektbyfaith
Administrator
0
04-04-2024, 08:13 PM
#4
Archived author: badopsec • Posted: 2024-04-04T20:13:01.752000+00:00
Original source

it's kinda reinventing CASC but much much simpler, and fills the needs of the noclip renderer better. also i'm calling the file format `sheepfile` with `.baa` archives :3
rektbyfaith
04-04-2024, 08:13 PM #4

Archived author: badopsec • Posted: 2024-04-04T20:13:01.752000+00:00
Original source

it's kinda reinventing CASC but much much simpler, and fills the needs of the noclip renderer better. also i'm calling the file format `sheepfile` with `.baa` archives :3

rektbyfaith
Administrator
0
04-04-2024, 08:42 PM
#5
Archived author: Titi • Posted: 2024-04-04T20:42:00.492000+00:00
Original source

rektbyfaith
04-04-2024, 08:42 PM #5

Archived author: Titi • Posted: 2024-04-04T20:42:00.492000+00:00
Original source

rektbyfaith
Administrator
0
04-06-2024, 06:58 PM
#6
Archived author: Supora • Posted: 2024-04-06T18:58:23.496000+00:00
Original source

the last byte (8 bit) is for flags
rektbyfaith
04-06-2024, 06:58 PM #6

Archived author: Supora • Posted: 2024-04-06T18:58:23.496000+00:00
Original source

the last byte (8 bit) is for flags

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)