Skip to content

Instantly share code, notes, and snippets.

View ketsuban's full-sized avatar

Thomas Winwood ketsuban

View GitHub Profile
@ketsuban
ketsuban / checksum.rs
Created June 21, 2025 19:44
Rust code for decrypting the banlist passwords in Yu-Gi-Oh! Ultimate Masters - World Championship Tournament 2006
use std::collections::HashMap;
use std::sync::LazyLock;
// const CHARSET: &str = "ABCDEFGHJKLMNPQRTUVWXYZacdefghijkmnprstuvwxyz23478&#!?+-÷=%@★●▲■";
// static MAPPING: LazyLock<HashMap<char, u8>> = LazyLock::new(|| {
// let mut map = HashMap::new();
// // Each character is converted into a 6-bit value from 0 to 63.
// for (i, ch) in CHARSET.chars().enumerate() {
// map.insert(ch, i);
// }
@ketsuban
ketsuban / file listing.txt
Created June 21, 2025 19:45
Some filenames and their offsets in Yu-Gi-Oh! Ultimate Masters - World Championship Tournament 2006
deck/LV1_kuriboh.ydc 00000000
deck/LV1_kuriboh.ydc 00000060
deck/LV1_pikeru.ydc 000000C0
deck/LV1_pikeru.ydc 00000120
deck/LV1_sukego.ydc 00000180
deck/LV1_sukego.ydc 000001E0
deck/LV1_waito.ydc 00000240
deck/LV1_waito.ydc 000002A0
deck/LV1_watapon.ydc 00000300
deck/LV1_watapon.ydc 00000360
gMapGroup_TownsAndRoutes pokedex_area_screen.c MAP_GROUP_TOWNS_AND_ROUTES
PetalburgCity region_map.c sMapHealLocations
SlateportCity region_map.c sMapHealLocations
tv.c ShouldApplyPokeNewsEffect
MauvilleCity overworld.c GetWarpDestinationMusic
region_map.c sMapHealLocations
RustboroCity region_map.c sMapHealLocations
FortreeCity region_map.c sMapHealLocations
LilycoveCity region_map.c sMapHealLocations
MossdeepCity region_map.c sMapHealLocations