You will need to download and install Visual C++ 2013-2019 x86, Git-SCM, and Node.js 32-bit.
Open a command prompt or Power Shell window and navigate to the directory you wish to install the SDK, then type the following commands:git clone https://github.com/hylian-modding/ModLoader64.git
cd ModLoader64
npm install -g yarn typescript gulp-cli
yarn
yarn link
yarn global bin
Add the path printed by the last command to your PATH.
To check that ModLoader64 has installed properly:cd ..
modloader64 -h
You will need to download and install npm and git.
Open a terminal and navigate to the directory you wish to install the SDK, then type the following commands:git clone https://github.com/hylian-modding/ModLoader64.git
cd ModLoader64
npm install -g yarn typescript gulp-cli
yarn
yarn link
To check that ModLoader64 has installed properly:cd ..
modloader64 -h
To start a new plugin navigate to the working directory in a command prompt and run the following commands (DO NOT CREATE MODS IN THE MODLOADER64 FOLDER):modloader64 --init
modloader64 --install https://github.com/hylian-modding/oot_plugin_template.git
modloader64 --template oot_plugin_template
This will setup the initial framework and link the SDK to your working directory.
Navigate to ./src/mod name here/ and rename oot_plugin_template.ts to Main.ts.
Open ./src/plugin/package.json and change the value of "main" from index.js to Main.js.
Open Main.ts and change class and module.exports to Main.
Start coding and have fun!
Once you have finished writing you mod and wish to build and test it, navigate a command prompt to your working directory and run the following:modloader64 -br (Builds and runs the code in a test environment)
modloader64 -br2 (builds and runs a second instance of your mod for multiplayer testing)
modloader64 -bd (Builds and makes a .pak file for distribution)
The following is a list of options available to ModLoader64 SDK:-n, --init init new project
-b, --build build mod
-r, --run run mod
-d, --dist pack mod
-2, --runp2 run p2
-u, --update update
-q, --bumpversion bump version number
-i, --install <url> install dependency
-s, --setroms <path> set rom directory
-c, --clean cleans build dirs
-a, --modulealias <alias> alias a module path
-p, --modulealiaspath <path> alias a module path
-z, --rebuildsdk rebuild sdk
-t, --template <template> make project from template
-w, --window gui window
-h, --help output usage information