Creating Skyline Plugins
Este conteúdo não está disponível em sua língua ainda.
Skyline is an environment for linking, runtime hooking and code patching originally designed for Super Smash Bros Ultimate but can be used with other Nintendo Switch games.
This is a great tool for modders who want to create mods that require code changes, as it allows you to write your mods in Rust or C++.
Installing Skyline
Section titled “Installing Skyline”For Tomodachi Life: Living the Dream, you’ll need to use a custom version of Skyline, which can be downloaded from the releases page of the GitHub repository.
- Go to the latest GitHub release.
- Download
skyline.zip. - Extract the downloaded file, and copy the
exefsdirectory to this directory on your Switch SD card:atmosphere/contents/010051f0207b2000/
Compiling Skyline yourself
Section titled “Compiling Skyline yourself”Alternatively, you can compile Skyline yourself by following these instructions. This is recommended if you want to use the latest features or if you want to contribute to the project.
- Clone the GitHub repository with
git clone https://github.com/tlmodding/skyline-ltd.git. - Enter the
skylinefolder withcd skyline-ltd. - Compile it by running
make all. - Rename
living_the_dream.npdmtomain.npdm, andskyline.nsotosubsdk9. - Move the files to the
exefsdirectory (if it does not exist, create it yourself) to this directory on your Switch SD card:atmosphere/contents/010051f0207b2000/
Logging
Section titled “Logging”- Setup your Switch or PC ip address with
cargo skyline set-ip <IP_ADDRESS>. - Run
cargo skyline listento start listening for logs.
-
Run the following command in your terminal while the game is running:
Terminal window nc <SWITCH_IP_ADDRESS> 6969 -
Look for the logs in the console output.
- Open PuTTY.
- Enter your Switch/PC IP address and set the Port to
6969. - Select
Rawas the Connection Type and click Open.
Writing mods with Rust
Section titled “Writing mods with Rust”- Install
cargo-skylinewithcargo install cargo-skyline. - Create a new project with
cargo skyline new <project_name>. - To build a project simply run
cargo skyline build. - Once built, your compiled plugin will be located in the
target/aarch64-skyline-switchdirectory. This is to be copied over toatmosphere/contents/010051f0207b2000/romfs/skyline/plugins/