From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Nintendo MSBT message file" |
|---|
| claim | "LMS labels (LBL1, CLB1, ALB1, SLB1) are bucketed with hash = hash*0x492 + char over the label characters, bucket = (hash & 0xFFFFFFFF) mod bucket count; official MSBT files use 101 or a smaller prime number of buckets, MSBP files 29." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "LMS message files" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "looking up or building a label table" |
|---|
| effect | "bucket index = (sum-fold hash with multiplier 0x492, 32-bit) % num_buckets" |
|---|
| condition | "bucket counts are an observation of official files, not a rule" |
|---|
| test_vectors | |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "Hash Tables section with calc_hash pseudocode and the bucket count remark" |
|---|
| repo | "https://github.com/kinnay/Nintendo-File-Formats" |
|---|
| commit | "b9ed426b16d04e24294f76de10f2e9b6922a9c8b" |
|---|
| path | "src/libs/lms/overview.md" |
|---|
| lines | "31-44" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "LMS label hash" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:15:50.775Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:36:46.268Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read overview.md at b9ed426 lines 31-60: calc_hash = hash*0x492+ord(char), (hash & 0xFFFFFFFF) % buckets; MSBP 29 buckets, MSBT 101 or a smaller prime ('seem'). Documentation only." |
|---|
|
|
|---|