To officially add a Fighter Newcomer mod for Super Smash Bros. Ultimate (SSBU) using Smashline 2, you need to utilize the cloning framework and APIs provided by the HDR-Development Smashline project.
Smashline is a Rust-based framework to help create fighter clones and manage fighter data for Smash Ultimate modding. The main entry file involved in cloning/remaking fighters is:
src/cloning/fighters.rs
High-Level Steps to Add a Fighter Newcomer Mod Using Smashline 2
Below is an outline of the official workflow using Smashline 2 based on the project's structure and typical usage patterns:
1. Install Rust and Dependencies
If you haven't already, set up your Rust development environment.
bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Then clone the Smashline repository:
bash
git clone https://github.com/HDR-Development/smashline.git
cd smashline
cargo build --release
2. Understand the Fighter Clone System (fighters.rs)
In src/cloning/fighters.rs, you define or register fighters by implementing the Fighter trait or using provided utilities.
You will:
Create a new Rust struct for your newcomer mod fighter.
Implement relevant traits, including how your fighter behaves, animation sets, scripts, and model data.
Register your fighter to Smashline’s internal registry.
3. Create Your New Fighter Struct
Example skeleton from fighters.rs:
rust
pub struct MyNewcomer;
impl Fighter for MyNewcomer {
fn get_name() -> &'static str {
"mynewcomer"
}
fn get_game_files() -> Vec<FileInfo> {
// specify paths to fighter data, e.g. model, animation, script, hitboxes...
}
// Override other trait methods to setup fighter behavior and properties
}
You fill in relevant methods to point to your modded files (such as .pac, .nut scripts, and .mdl models).
If you want me to dive into concrete example code, just ask!
You want to officially add a Fighter newcomer mod based on Smashline 2 for Smash Ultimate (SSBU), specifically:
Base fighter: Terry Bogard
Kind ID: Dolly (this probably refers to the game internal ID or variant used for clone differentiation)
New fighter: Waluigi (using Terry’s base, but with Dolly’s Kind ID)
Context
The file you linked is the fighters.rs, which is the registry and definition of fighters in Smashline.
Smashline’s approach is to define new fighters by implementing the Fighter trait, each with:
A Fighter base (existing fighter as a clone base)
A unique Kind ID to differentiate
Paths to the mod assets (model, scripts, animations, etc.)
Step by Step Official Process to Add Waluigi Clone (Terry base, Dolly Kind ID)
1. Understand Base and Kind usage in Smashline
In Smashline, fighters are differentiated by their base fighter (the foundation they copy the moveset and logic from) and a Kind ID or variant identifier (used by the game to know what actor to load).
Terry is an official base fighter in Smashline.
Dolly is an example of a clone fighter with its own Kind ID, usually a unique unsigned integer.
You want to make a clone under Terry base but using Dolly’s Kind ID (or register a new Kind ID similar to Dolly's).
2. Add a new Struct for Waluigi based on Terry and Dolly
Open src/cloning/fighters.rs, and add a new entry for your Waluigi clone.
Example skeleton (add after existing clones):
rust
use crate::cloning::{Fighter, FileInfo};
pub struct WaluigiClone;
impl Fighter for WaluigiClone {
fn name() -> &'static str {
"waluigi" // Unique ID used internally by Smashline
}
fn base_fighter() -> &'static str {
"terry" // Base fighter internal name in SSBU
}
fn kind() -> u32 {
0xXXX // Dolly's Kind ID here (replace with correct ID)
}
fn files() -> Vec<FileInfo> {
vec![
FileInfo::Mod(mymod_path!("fighter/waluigi/model.pac")),
FileInfo::Mod(mymod_path!("fighter/waluigi/script.nut")),
// add other files like animation, collision, etc.
]
}
}
name() returns the fighter internal name (used for naming files, logging).
base_fighter() returns the parent fighter (Terry).
kind() returns the unique Kind ID of Dolly (or your chosen unique Kind ID).
files() returns the vector of modified files (models, scripts, animations).
Note: In Smashline 2, kind() typically returns the kind ID the game uses internally to differentiate fighters.
3. Get Dolly's Kind ID
To find Dolly's Kind ID (needed because you want to use Dolly's Kind ID for your clone), look into the official data or lookup in Smashline repo or datamine:
Find Dolly kind ID in Smashline's fighter list or from the original game’s fighter IDs.
Alternatively, see if Dolly already exists in Smashline:
rust
pub struct Dolly;
impl Fighter for Dolly {
// ...
fn kind() -> u32 {
0x05A // Hypothetical example (replace with actual)
}
}
If Dolly is a clone or part of Smashline already, you can reuse that kind ID.
4. Register your Waluigi fighter in the global fighter registry
In the same fighters.rs file, find the function that registers all fighters (e.g., pub fn all_fighters() -> Vec<Box<dyn Fighter>>), and add your fighter struct:
rust
pub fn all_fighters() -> Vec<Box<dyn Fighter>> {
vec![
Box::new(Terry),
Box::new(Dolly),
Box::new(WaluigiClone), // <-- Your new fighter here!
// ... other fighters
]
}
5. Prepare mod files
Create your Waluigi mod assets structure inside the Smashline mods folder:
code
/mod/fighter/waluigi/
model.pac # your Waluigi model, textures packed as pac
script.nut # fighter scripts (move scripts etc.)
animation/
collision/
etc...
Reference these paths in your files() vector in the fighter struct.
6. Build mod
Use Smashline 2 commands to build your new fighter mod, usually something like:
bash
cargo run --release -- build --mod waluigi
Smashline will rebuild your mod pack including Waluigi clone.
7. Install mod to SSBU
Copy mod files to your SD card or mod loader.
Inject mod as per your mod manager or installation process.
Your Waluigi clone based on Terry with Dolly’s Kind ID is now integrated.
Summary Example Code Snippet (src/cloning/fighters.rs):
rust
use crate::cloning::{Fighter, FileInfo};
pub struct WaluigiClone;
impl Fighter for WaluigiClone {
fn name() -> &'static str {
"waluigi"
}
fn base_fighter() -> &'static str {
"terry"
}
fn kind() -> u32 {
0x05A // Replace with actual Dolly kind ID
}
fn files() -> Vec<FileInfo> {
vec![
FileInfo::Mod(mymod_path!("fighter/waluigi/model.pac")),
FileInfo::Mod(mymod_path!("fighter/waluigi/script.nut")),
// add animations, collisions, etc
]
}
}
pub fn all_fighters() -> Vec<Box<dyn Fighter>> {
vec![
Box::new(Terry),
Box::new(Dolly),
Box::new(WaluigiClone), // <-- Add your clone here
// other fighters...
]
}
Notes
Make sure your mod files all match your naming and internal references.
Choose a unique kind() number that doesn't conflict with official fighters or other mods.
Dolly is sometimes a placeholder name in modding to designate clones (make sure to check the exact kind ID in use).
Use Smashline’s logging/debug feature to verify your mod loads correctly.
Check Smashline’s README and examples for the exact method names and trait signatures, since the framework evolves.
If you want, I can also help craft your actual Rust code to add Waluigi or more instructions on mod file structure!