No description
  • C 81.5%
  • Assembly 14.3%
  • Meson 2.2%
  • C++ 1.4%
  • Python 0.5%
Find a file
A-iko a0ebb795e5
Some checks are pending
build / build (push) Waiting to run
Add randomizer channels for statics, eggs, roamers, specials, held items, berries
New slot2 mode bytes 0x305-0x30B, one per channel, same bridge-pushed
tri-state (off/uniform/BST) as the original four; held-items and berry
channels are on/off flags.

- static battles: ScrCmd_StartWildBattle / ScrCmd_StartLegendaryBattle
- eggs: ScrCmd_GiveEgg
- roamers: RoamingPokemon_ActivateSlot (per-slot seed, persists via save)
- wild specials: swarm / Trophy Garden / Great Marsh injectors + honey tree
- feebas: own channel so the secret-tile hunt can stay vanilla
- held items: Pokemon_GiveHeldItem (wild) + trainer party load
- berries: new-game BerryPatches_Init table copy (TID passed directly;
  slot2 savedata pointer not staged yet at save init)

Trainer randomizer fixes (no toggle): a randomized species drops the stock
explicit moveset (keeps its own level-up moves from Pokemon_InitWith) and
zeroes the stock form index, which described the stock species.

Species channels share one seeded helper with per-channel salts so e.g. a
static Rotom and a gifted Rotom map to different species. Item core
parameterized on heap (held items randomize outside field-heap lifetime).

Fossil revivals needed no hook: the museum script routes through
GivePokemon, already covered by the gift channel.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 22:05:07 +02:00
.github docs: add copilot-instructions for build, architecture, and run workflow 2026-05-01 19:40:18 +02:00
.vscode unreference my local filesystem for gdb path 2024-10-22 19:09:34 -05:00
asm/macros refactor(pack): rename sauercrowd -> mobrule across ROM (#43) 2026-06-11 17:15:51 +02:00
docs Add Steel Plate item with Factorio icon 2026-05-01 21:01:22 +02:00
generated refactor(pack): rename sauercrowd -> mobrule across ROM (#43) 2026-06-11 17:15:51 +02:00
include Add randomizer channels for statics, eggs, roamers, specials, held items, berries 2026-06-11 22:05:07 +02:00
lib Name unnamed struct files with named structs (#1100) 2026-04-23 08:13:57 -07:00
meson Integrate metroskrew as the default compiler (#482) 2025-05-09 22:00:48 -07:00
platinum.us refactor(pack): rename sauercrowd -> mobrule across ROM (#43) 2026-06-11 17:15:51 +02:00
res refactor(pack): rename sauercrowd -> mobrule across ROM (#43) 2026-06-11 17:15:51 +02:00
src Add randomizer channels for statics, eggs, roamers, specials, held items, berries 2026-06-11 22:05:07 +02:00
subprojects tools: Migrate datagen_trainer.cpp to trainerproc.c (#1095) 2026-04-22 19:53:35 -04:00
tools build: Clean-up some unnecessary cruft (#1106) 2026-04-27 13:15:44 -07:00
.clang-format more trainer card documentation (#647) 2025-07-29 21:07:51 -07:00
.clang-format-ignore Store nitrogfx in the source tree (#734) 2025-09-04 21:24:55 -07:00
.clang-format-include decompile gds (#927) 2026-02-04 10:28:19 -08:00
.editorconfig Overhaul CONTRIBUTING.md + integrate editorconfig and pre-commit 2025-03-08 21:43:47 -08:00
.gitattributes Unopack pokefoot.narc and Document pokedex_footprint (#513) 2025-05-21 23:50:52 -07:00
.gitignore tools: Generic data-format processing library 2026-03-20 22:26:04 -07:00
.pre-commit-config.yaml decompile gds (#927) 2026-02-04 10:28:19 -08:00
CONTRIBUTING.md Add a warning for the clang-format version to CONTRIBUTING.md (#540) 2025-06-04 14:15:58 -07:00
INSTALL.md docs: Update table-of-contents and capitalization in INSTALL.md (#1115) 2026-04-26 08:57:14 -07:00
Makefile build: Clean-up some unnecessary cruft (#1106) 2026-04-27 13:15:44 -07:00
meson.build build: Clean-up some unnecessary cruft (#1106) 2026-04-27 13:15:44 -07:00
meson.options Build Rev 1 ROM as default instead of Rev 0 (#604) 2025-07-12 11:36:34 -07:00
README.md Remove VoidMatrix server link from README (#1116) 2026-04-26 08:51:53 -07:00
replace.sh replace.sh: replace all occurences 2024-01-28 01:19:39 +01:00

Pokémon Platinum

This is a WIP decompilation of Pokémon Platinum. For instructions on how to set up the repository, please read INSTALL.md.

If you are interested in contributing, please read CONTRIBUTING.md.

This repository builds the following ROMs:

For contacts and other pret projects, see pret.github.io.