https://github.com/HDR-Development/smashline Guide how to add fighter newcomer to Super Smash Bros. Ultimate using Arcropolis and Smashline 2 unique Fighter Kind IDs, smashline::clone_fighter(/* dolly /,/ waluigi /)
Assistant
To add a new fighter newcomer to Super Smash Bros. Ultimate using Arcropolis and Smashline, here's a step-by-step guide focusing on creating and using two unique Fighter Kind IDs and smashline::clone_fighter() to clone existing fighters like Dolly or Waluigi.
Prerequisites
You have Super Smash Bros. Ultimate modding experience.
You have Arcropolis and Smashline tool chain setup and working.
You have access to game file structure and know how to inject mods.
You have basic knowledge of programming/C++ concepts and how Smashline works.
Goals
Create two unique Fighter Kind IDs for your newcomer(s).
Use smashline::clone_fighter() to create clones of existing fighters (e.g. Dolly or Waluigi).
Modify and add your fighter into the game.
Step 1: Understanding Fighter Kind IDs
Each fighter in Ultimate has a Fighter Kind ID which uniquely identifies it in the game.
Vanilla fighters IDs go from 0x00 (Mario) up to the last character.
Mods add new fighters by assigning unused Fighter Kind IDs.
You must define new IDs outside of vanilla range to avoid conflicts.
Step 2: Define two Unique Fighter Kind IDs
Locate or create your fighter header file (fighter_kind_ids.hpp or similar).
Add the two unique Fighter kinds for your fighters (e.g., FIGHTER_KIND_DOLLY and FIGHTER_KIND_WALUIGI_CLONE):
cpp
#pragma once
namespace custom_fighters {
// Pick IDs outside vanilla range, e.g. 0x7E, 0x7F, etc.
constexpr int FIGHTER_KIND_DOLLY = 0x7E;
constexpr int FIGHTER_KIND_WALUIGI_CLONE = 0x7F;
} // namespace custom_fighters
Make sure these IDs don't conflict with other mods.
Step 3: Use smashline::clone_fighter() in your entry source (.cpp)
clone_fighter clones an existing fighter to a new Fighter Kind ID, helping to shortcut adding a complex new fighter from scratch.
Here’s how to clone Dolly and Waluigi fighters.
cpp
#include <smashline.h>
#include "fighter_kind_ids.hpp"
using namespace smashline;
using namespace custom_fighters;
// Here's an example of an `init` function called on mod load
void init() {
// Clone Dolly (say Dolly is FighterKind ID 0x60 in vanilla)
clone_fighter(0x60, FIGHTER_KIND_DOLLY);
// Clone Waluigi (e.g. Fighter Kind ID 0x5F - example, check correct ID)
clone_fighter(0x5F, FIGHTER_KIND_WALUIGI_CLONE);
// Additional fighter setup like scripts/mods per fighter here
}
Important:
Replace 0x60 and 0x5F with the correct vanilla IDs of Dolly and Waluigi.
You can find these IDs in Smashline or Smash Ultimate data.
If you’re unsure of IDs, you can print fighter kind values or look at /arcropolis/data/fighter folder.
Step 4: Adding Your Fighter to the Game's Fighter List
Modify or create your fighter info file or code to register the new fighters with these IDs.
Include fighter costumes, model files, animation files, script codes with your custom IDs.
Bind menu selections with your Fighter Kind IDs so you can select them in training/online.
Example registering your fighters in entry:
cpp
// Register fighter info
void register_fighters() {
smashline::fighter_info add_info;
// Dolly clone info
add_info.kind = FIGHTER_KIND_DOLLY;
add_info.entry_name = "fighter_dolly";
add_info.color_count = 8; // Your fighter color costumes count
smashline::add_fighter_info(add_info);
// Waluigi clone info
add_info.kind = FIGHTER_KIND_WALUIGI_CLONE;
add_info.entry_name = "fighter_waluigi_clone";
add_info.color_count = 8;
smashline::add_fighter_info(add_info);
}
Call this function during init.
Step 5: Add Custom Moves and Script (Optional)
After cloning, to differentiate your Fighter, override moveset, behavior by scripts or ASM patches.
Smashline supports YAML or scripts per fighter kind that you can inject using Fighter Kind IDs.
You can create new files such as fighter_dolly_scripts.s or use Lua/AnimYAML to override.
Step 6: Building and Injecting Your Mod
Build your mod DLL or package with Arcropolis using Smashline.
Test in game if your cloned fighters appear and are selectable.
Add custom textures if desired using Arcropolis tools.