Creating Skyline Plugins
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”ACNH needs its own Skyline build: skyline-acnh, a Skyline fork made for Animal Crossing: New Horizons.
- Go to the latest skyline-acnh release.
- Download
skyline.zip. - Extract it and copy the
exefsdirectory toatmosphere/contents/01006F8002326000/on your Switch SD card.
Logging
Section titled “Logging”- Set your Switch’s IP address with
cargo skyline set-ip <SWITCH_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/01006F8002326000/romfs/skyline/plugins/