# Pokémon Sword and Shield: matching Pawn script decompilation

> Pokémon Sword and Shield's Pawn AMX scripts are reconstructed from game files. The disassembler emits code representations and data sections; a compile tool builds the repository's scripts with gf-pawncc, compares the generated representations and checks binary hashes against the game files.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/lincoln-lm/swsh-pawn-decomp>
- Primary source: <https://github.com/lincoln-lm/swsh-pawn-decomp/blob/d35b78e854ce97ce6a93e357bc717c890129d4e7/README.md>
- Catalog page: <https://awesomerea.org/resources/swsh-pawn-scripts-case/>
- Record JSON: <https://awesomerea.org/resources/swsh-pawn-scripts-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/swsh-pawn-scripts-case/index.md)

## Requirements & limits

- **Prerequisites:** The game's romfs://bin/script/amx/ files must be copied into the amx directory.
- **Prerequisites:** Compilation expects a gf-pawncc executable at gf-pawncc/build/compiler/gf-pawncc.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/lincoln-lm/swsh-pawn-decomp/blob/d35b78e854ce97ce6a93e357bc717c890129d4e7/README.md>

## More in Games

- [Pokémon XD: Gale of Darkness: a matching GameCube decompilation](https://awesomerea.org/resources/pokemon-xd-gale-of-darkness-decomp-case/index.md) · Case study
- [Pokémon XD: matching GameCube decompilation](https://awesomerea.org/resources/xd-decomp/index.md) · Case study
- [Psychonauts: matching Lua scripts and PC engine functions](https://awesomerea.org/resources/psychonauts-decomp-case/index.md) · Case study
- [pw: a matching decompilation of the Pokéwalker firmware](https://awesomerea.org/resources/pokewalker-matching-decomp-case/index.md) · Case study
- [ra2-decomp: a matching decompilation of Yuri's Revenge](https://awesomerea.org/resources/ra2-decomp-yuris-revenge-case/index.md) · Case study
- [Rage of Mages / Allods: matching reconstruction of the 1998 engine](https://awesomerea.org/resources/rom1-decomp-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
