This is an example mod for Majora's Mask: Recompiled that can be used as a template for creating mods. It has a basic build system, headers, sample code, and a mod config toml.
Example code for using the recompui API to build ingame UI can be found in the ui-example branch.
See this document for an explanation of the modding framework, including how to write function patches and perform interop between different mods.
You'll need to install clang and make to build this template.
llvm and make respectively.
--version 18.1.8 or by downloading the 18.1.8 release directly.lld linker. On Debian/Ubuntu based distros this will be the lld package.On Linux and MacOS, you'll need to also ensure that you have the zip utility installed.
You'll also need to grab a build of the RecompModTool utility from the releases of N64Recomp. You can also build it yourself from that repo if desired.
make (with an optional job count) to build the mod code itself.RecompModTool utility with mod.toml as the first argument and the build dir (build in the case of this template) as the second argument.
.nrm file in the build folder.clang and ld.lld binaries using the CC and LD environment variables, respectively.Mods can also be made with newer versions of the Majora's Mask decompilation instead of the commit targeted by this repo's submodule. To update the commit of the decompilation that you're targeting, follow these steps:
KEEP_MDEBUG=1 to make when building the decomp in order to keep debug information. This must be done from a clean build if you have built the decomp already without KEEP_MDEBUG=1.mm-decomp submodule in your clone of this repo to point to the commit you built in the previous step.N64Recomp generate_symbols.toml --dump-contextdump.toml and data_dump.toml to mm.us.rev1.syms.toml and mm.us.rev1.datasyms.toml respectively.
Zelda64RecompSyms folder.include/dummy_headers folder, with the same path.
assets/objects/object_cow/object_cow.h is missing, create an empty include/dummy_headers/objects/object_cow.h file.C
96.9%
Makefile
2.7%
This is an example mod for Majora's Mask: Recompiled that can be used as a template for creating mods. It has a basic build system, headers, sample code, and a mod config toml.
Example code for using the recompui API to build ingame UI can be found in the ui-example branch.
See this document for an explanation of the modding framework, including how to write function patches and perform interop between different mods.
You'll need to install clang and make to build this template.
llvm and make respectively.
--version 18.1.8 or by downloading the 18.1.8 release directly.lld linker. On Debian/Ubuntu based distros this will be the lld package.On Linux and MacOS, you'll need to also ensure that you have the zip utility installed.
You'll also need to grab a build of the RecompModTool utility from the releases of N64Recomp. You can also build it yourself from that repo if desired.
make (with an optional job count) to build the mod code itself.RecompModTool utility with mod.toml as the first argument and the build dir (build in the case of this template) as the second argument.
.nrm file in the build folder.clang and ld.lld binaries using the CC and LD environment variables, respectively.Mods can also be made with newer versions of the Majora's Mask decompilation instead of the commit targeted by this repo's submodule. To update the commit of the decompilation that you're targeting, follow these steps:
KEEP_MDEBUG=1 to make when building the decomp in order to keep debug information. This must be done from a clean build if you have built the decomp already without KEEP_MDEBUG=1.mm-decomp submodule in your clone of this repo to point to the commit you built in the previous step.N64Recomp generate_symbols.toml --dump-contextdump.toml and data_dump.toml to mm.us.rev1.syms.toml and mm.us.rev1.datasyms.toml respectively.
Zelda64RecompSyms folder.include/dummy_headers folder, with the same path.
assets/objects/object_cow/object_cow.h is missing, create an empty include/dummy_headers/objects/object_cow.h file.C
96.9%
Makefile
2.7%