# Super Mario Galaxy 2: selected gravity behavior and format reconstruction

> Super Mario Galaxy 2: selected gravity behavior and format reconstruction implements host-side C++ versions of selected CubeGravity, PlanetGravity and PointGravity operations. It provides bounds-checked readers for Yaz0, RARC, U8, BCSV/JMap, Wii FST and selected J3D metadata, with synthetic-input tests.

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

## Requirements & limits

- **Prerequisites:** CMake 3.20 or later and a C++20-capable compiler are required.
- **Prerequisites:** The optional game-data test and asset scanner require a user-supplied extracted DATA directory.
- **Limits:** The shared source lacks the complete runtime; J3D support is partial, and the separate macOS preview has a fresh-launch error.
- **License:** No licence file in the repository for the original native modules, tests and scripts; runtime patches carry their upstream notices.

## Primary sources

1. <https://github.com/alexkypraiou/smg2-reverse-engineering/blob/f5ad03acf8f87a1a0a6f08015724f16bdfb03daf/README.md>
2. <https://github.com/alexkypraiou/smg2-reverse-engineering/blob/f5ad03acf8f87a1a0a6f08015724f16bdfb03daf/DATA_PROVENANCE.md>

## More in Games

- [Super Punch-Out!!: a USA SNES disassembly](https://awesomerea.org/resources/super-punch-out-disassembly-case/index.md) · Case study
- [Super Tennis Disassembly: matching Sega Master System assembly](https://awesomerea.org/resources/super-tennis-sms-case/index.md) · Case study
- [swemu: reconstructing a SoulWorker server from client packet readers](https://awesomerea.org/resources/swemu-case/index.md) · Case study
- [SWGEmu Core3: reconstructing the classic Star Wars Galaxies server](https://awesomerea.org/resources/swgemu-core3-case/index.md) · Case study
- [Tales of Eternia: structural analysis of the Japanese PlayStation disc](https://awesomerea.org/resources/ps1-talesofeternia-doc-case/index.md) · Case study
- [TamagoC: a Tamagotchi implementation from observation](https://awesomerea.org/resources/tamagoc-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.
