Set up your editor
You can write a mod in any text editor. Eclipse Modding, an extension for Visual Studio Code, makes it much easier. As you type it suggests API functions, table fields, your mod’s files and the game’s own content, and it flags mistakes (a misspelled ID, a missing file) before you start the game.
Install it
Section titled “Install it”The extension is installed from a .vsix file rather than the Marketplace. Get
one from a successful Modding editor workflow run, or build it with the
instructions in the
extension’s README.
- Install Lua by sumneko in VS Code. Version 3.19.1 is the one the extension is tested with. Choose it from the gear menu with Install Another Version if needed.
- Press Ctrl+Shift+P, run Extensions: Install from VSIX… and select
eclipse-modding-0.1.0.vsix. Reload when asked. - Open the folder that contains your
mod.toml. - Run Eclipse Modding: Enable in This Folder.
- Start your Lua script with:
local sf2 = require("sf2")Type sf2. and press Ctrl+Space to see the parts of the API, then type a
dot after one (such as items) to see its functions. Hover over a function for
a short description and a link to its reference page. Inside a call,
Ctrl+Shift+Space shows the fields it accepts.
Create a mod in one step
Section titled “Create a mod in one step”Run Eclipse Modding: Create Mod. Enter a unique lowercase mod ID, a display name and your name, and choose a parent folder. The command creates a new subfolder and opens it in another window. It never overwrites an existing folder.
The new mod is a complete Training Blade weapon: manifest, script, translation, texture and sprite file. Make your first mod explains each file.
Your mod’s files and text
Section titled “Your mod’s files and text”Inside a lookup string, press Ctrl+Space to pick a matching file from your mod, and F12 on the string to open it:
local icon = sf2.assets.sprite("sprites/weapon")local name = sf2.text.get("weapon.training_blade")Hovering over a translation key shows its text in every language.
Core content
Section titled “Core content”The extension knows every ID in the core catalog: the game’s items, perks, fights, fighters, arenas, sounds, models and icons.
- Inside a lookup such as
sf2.items.get(", typecore:to see the IDs that lookup accepts, each with its English name. - Hover over a core ID to see what it is.
- An ID that does not exist is underlined, with the closest real IDs in the
message. A core ID written without its
core:prefix is flagged too. Press Ctrl+. to add the prefix. - Fields that take a plain name (such as
subtype) suggest the game’s names.
Understand warnings
Section titled “Understand warnings”Open View > Problems. The Lua language server checks names, argument types and required fields. Eclipse Modding adds checks for:
- calls to
sf2functions that do not exist, with a “did you mean” hint for near-typos such assf2.items.registr; - missing files, wrong kinds of asset, and dependencies you use but did not declare;
- core IDs that do not exist;
- an operation used in a callback that cannot run it;
- bad manifest fields, duplicate IDs, a missing entry script, unsupported audio (use Ogg Vorbis or 16-bit WAV) and malformed translation files.
Eclipse Modding: Validate Open Mod rechecks everything and opens Problems. A Lua syntax error pauses the other checks until the file parses again.
Checks for moves, weapons and conflicts
Section titled “Checks for moves, weapons and conflicts”- Moves. Patches to the game’s own moves (
sf2.moves.patch) are checked against the base game’s move data. Move names complete, and a guard that does not match the original is warned about before the game would refuse it. Show Move Changes lists each move your mod touches with its original and patched values. See Moves. - JSON files.
movesets/*.jsonandweapons/*.jsonget completion and hover text for every field, plus the same checks as Lua. - Conflicts. Some changes can only have one owner, such as patching the same
move or replacing the same asset. The extension compares these across every
mod in your workspace and warns when two claim the same thing. Set
Eclipse Modding: Mods Root to your game’s
Modsfolder to include mods you have installed. See Sharing and combining mods.
Snippets
Section titled “Snippets”Type eclipse- and press Ctrl+Space for ready-made starting points such as a
weapon, a perk or a behaviour. Replace the placeholders and add any files they
name.
What the editor cannot check
Section titled “What the editor cannot check”The extension reads your source; it does not run it. It cannot follow IDs built
while the game runs (for example "WaspFly_" .. suffix), look inside images or
sounds, or tell how a fight plays out. A clean Problems panel means the mod is
well formed, not that it works. Always try it in the game.
If suggestions disappear after an update, run Enable in This Folder again. Output > Eclipse Modding and Output > Lua show indexing and language server errors.