Skip to content

Instantly share code, notes, and snippets.

View zaksabeast's full-sized avatar

Zak zaksabeast

View GitHub Profile
@zaksabeast
zaksabeast / pokemonHomeEvents.ts
Created December 7, 2024 03:08
Gets event info from the website Pokemon Home uses
import { fetch } from "bun";
import { z } from "zod";
const EventSchema = z.object({
category: z.number(),
e: z.number(),
end: z.number(),
link: z.string(),
s: z.number(),
start: z.number(),
@zaksabeast
zaksabeast / International Dream Radar Gen 4 Cart Unlock
Last active March 16, 2025 22:01
These cheats make Dream Radar think a Gen 4 cart is inserted to unlock the Gen 4 legendaries. I originally posted them to https://gbatemp.net/threads/pokemon-dream-radar-cheats-spoof-gen-4-carts.549994/, but they'll live here going forward.
// Save the below code snippet to luma/titles/00040000000AE100/cheats.txt for use with International Dream Radar
[Spoof Diamond Cart Inserted]
00177A6C E3A00001
001555FC 45414441
001555D8 E5810000
001555DC E12FFF1E
[Spoof Pearl Cart Inserted]
00177A6C E3A00001
@zaksabeast
zaksabeast / gen6-friend-safari-calculator.js
Created April 12, 2023 03:36
Gen 6 friend safari calculator. Make sure to use the local friend code and not the principal id.
const MT = require("./mt.js");
const FRIEND_SAFARIS = [
[
["Lillipup", "Dunsparce", "Teddiursa", "Aipom"],
["Kecleon", "Minccino", "Loudred", "Audino"],
["Eevee", "Ditto", "Smeargle", "Chansey"],
],
[
["Meditite", "Mankey", "Machoke", "Mienfoo"],
@zaksabeast
zaksabeast / 046D130F0873314A.txt
Last active December 23, 2021 02:08
Pokemon Brilliant Diamond and Shining Pearl cheats
[Player speed x1.5 (Hold B)]
04000000 021cd74c bd401000
04000000 021cd76c 1e2e1000
80000002
04000000 021cd74c 1e2f1000
04000000 021cd76c 1e2f1000
20000000
[Player speed x2 (Hold B)]
04000000 021cd74c bd401000
@zaksabeast
zaksabeast / wishmaker-seed-calculator.js
Created January 19, 2021 00:50
A heavily commented script to find Wishmaker Jirachi seeds
// This code is meant to act as documentation for calculating Wishmaker Jirachi seeds.
// As a result, it's not the most efficient code, but can hopefully serve as a guide for anyone interested in the mechanics.
//
// Admittedly, I wrote this fairly quickly, so it's not quite as clean as I'd like it either, and I haven't tested it too much.
// If you have any questions or updates, please leave them in the comments below.
//
// This code assumes some knowledge of Wishmaker, as well as a disabled RTC.
// ----------------------------------------
// Jirachi seed logic
@zaksabeast
zaksabeast / decrypt-api-body.js
Last active August 25, 2024 21:25
Pokemon Home Mobile App API Documentation
const crypto = require('crypto');
const zlib = require('zlib');
const util = require('util');
const gunzip = util.promisify(zlib.gunzip);
const decrypt = (data, key, iv) => {
const decipher = crypto.createDecipheriv('aes-256-cbc', key, iv);
const decrypted = decipher.update(data);
return Buffer.concat([decrypted, decipher.final()]);
@zaksabeast
zaksabeast / apollo-web-worker-comlink-example.js
Created April 27, 2020 23:50
Short gist to demonstrate orchestrating web workers with Apollo client and comlink
@zaksabeast
zaksabeast / pokemon-mystery-dungeon-dx-friend-password-documentation.md
Last active September 17, 2024 12:35
Pokemon Mystery Dungeon DX Friend Password Documentation

Pokemon Mystery Dungeon DX Friend Password Documentation

Almost all of this was done by reading the disassembly and no debugging tools, so some of this may change over time as more info is found.

This document primarily covers reading the password since creating a password is the exact same process, but in reverse.

Note: There are screenshots in the first comment of this gist which may be good to look at if you don't know much about the game.

Notable locations in the binary

@zaksabeast
zaksabeast / swsh-cheats.txt
Created January 28, 2020 14:14
Sword and Shield Cheats
# Both Sword and Shield v1.1
[Shiny Square Raids (Hold R at den)]
04000000 0076fda4 540006c0
80000080
04000000 0076fda4 14000036
20000000
[Shiny Star Raids (Hold R at Den)]
04000000 0076ff04 54fff4a1
@zaksabeast
zaksabeast / swsh-watt-trader-inventory-order.txt
Created January 28, 2020 14:00
Sword and Shield Watt Trader Inventory Order
Watt trader inventory order:
- Timer Ball
- Sludge bomb
- Iron defense
- Focus blast
- Hurricane
- Leech life
- Luxury Ball