Petari README

The project's README from github.com/SMGCommunity/Petari. As one markdown file: README.md.

Petari Build Status Discord Badge

RMGJ01_CodeRMGJ01_Link RMGE01_CodeRMGE01_Link RMGP01_CodeRMGP01_Link RMGK01_CodeRMGK01_Link SHIELD_CodeSHIELD_Link

A visual

A work-in-progress decompilation of Super Mario Galaxy.

This repository does not contain any game assets or assembly whatsoever. An existing copy of the game is required.

This project is not meant to be an effort to create a PC port. Join the Discord server to learn more and ask about our work-in-progress PC port "AstroCore".

[!NOTE] This is a community-focused project that would like to remain as human as possible. AI-generated or otherwise automated contributions will be rejected. Contributors should be able to explain and justify any work they submit.

Dependencies

Windows

On Windows, it is highly recommended to use native tooling. WSL or msys2 are not required.
When running under WSL, objdiff is unable to get filesystem notifications for automatic rebuilds.

macOS

wibo, a minimal 32-bit Windows binary wrapper, will be automatically downloaded and used.

Linux

wibo, a minimal 32-bit Windows binary wrapper, will be automatically downloaded and used.

Building

Diffing

Once the initial build succeeds, an objdiff.json should exist in the project root.

Download the latest release from encounter/objdiff. Under project settings, set Project directory. The configuration should be loaded automatically.

Select an object from the left sidebar to begin diffing. Changes to the project will rebuild automatically: changes to source files, headers, configure.py, splits.txt or symbols.txt.

Credits

Big thanks to the doldecomp team for their efforts on bte, tp for JSystem, and ogws, where this repository has sourced code and headers from.

Petari (SMGCommunity/Petari)

Searching Database…

What is this?This is an open-source, work-in-progress decompilation of Super Mario Galaxy 1, rebuilding the game's original C++ source code by matching it against the compiled binary.
Is this a playable PC port of the game?No, it is purely a decompilation effort that reconstructs source code; the team explicitly says it is not trying to create a PC port, though a separate related WIP port called 'AstroCore' is discussed on their Discord.
How do I build this?Clone the repository, dump your own copy of the game with Dolphin Emulator into orig/RMGK01 (only sys/main.dol is strictly required), then run the configure script and build with ninja.
What tools do I need installed before building?On Windows you need Python and ninja added to PATH; on macOS and Linux you only need to install ninja, and the wibo 32-bit Windows binary wrapper is downloaded automatically for the toolchain.
Do I need to own the game to use this?Yes, the repo contains no game assets or assembly code of its own, so you must supply a legally-dumped copy of the game; currently only the Korean RMGK01 Rev 0 release is officially supported.
Did the team use AI to speed up the decompilation?No. AI was only permitted for non-decompilation tasks like variable naming, code cleanup, and documentation; pull requests with AI-generated decompilation output are rejected.
How do I check my progress against the original binary?Download objdiff, point it at the objdiff.json generated in your project root, and select an object in the sidebar to diff your rebuilt code against the original, with auto-rebuilds on source changes.
Where did some of the shared code come from?The project sourced code and headers from other decompilation efforts, including doldecomp's bte and tp projects for JSystem, and ogws.
Size
95.7 MB
Stars
1.4K
Updated
CommitNov 15
Age
7y
Commits · 90 Days