Skip to content

Showcase

Two published mods show what the API can do at full scale: Chiaroscuro 2, a visual overhaul made almost entirely from effect blocks, and Definitive Edition 128 (DE128), a content mod of more than eighty script files. Neither is a tutorial, but both are good places to see how the pieces fit together once you have made your first mod.

Source, version 1.0.0. It lives in the repository’s Mods/ folder, so it is already available to try.

Chiaroscuro 2 changes how every fight looks. Behind 47 switches under Options > Mod settings, it adds weather, fog and stage moods chosen by location; ink-brush trails with a lit cutting edge, on thrown weapons and magic too; light shafts and god rays; heat haze; lightning storms; sun, moon and hit lights that shade the fighters; hit sparks and shockwaves, with a shower of sparks when blades clash; enchantments that show as they take hold; smoke off a fighter whose shadow energy is full; focus pulls between rounds; a slow-motion knockout kill cam; a cinematic camera that opens each round on a different camera move, moves with heavy blows and arcs past the winner as the stage swells; a smooth camera that glides with the fight and shakes with each blow’s weight; a fight that reacts to what is happening on screen; and a black-lacquer fight HUD. Eclipse draws everything. The mod only describes the effects and when they should appear. It never touches the save.

What it shows

  • A mod that is nearly all description: one script file builds effects out of the sf2.fx blocks and the built-in looks, with no custom game logic.
  • One toggle per effect, grouped on the settings page, so players can turn anything off. Each toggle is a handle passed straight to the effect it controls.
  • Effects chosen by arena, so a rainy stage gets lightning and a snowy one gets cold breath. The 25 Special Edition stages each get their own grade, glows, swaying scenery and reflections, from a second script file (se_stages.lua) that the main one loads with require.
  • A per-frame callback that lets the picture respond to health, finishing blows and round progress.

Read next: Visual effects, Menus and settings, and the sf2.fx reference.

Try it. Copy the mod folder (the one that holds mod.toml) into your Mods folder if it is not there already, turn it on in Mods, choose Apply & Restart and enter a fight. Its dependency on core is satisfied automatically. See Install and enable mods.

DE128 (Definitive Edition 128) is a large mod that restores a whole edition of the game on top of Eclipse. It is released separately from the Eclipse repository and written entirely in Lua, with no game-data files. Every system it touches goes through the same public API you use.

What it shows

  • Many battles from data. The Underworld, with dozens of boss and survival fights, and a six-act story, each described as tables of battles, opponents, rules and rewards. See Story battles, Battle rules and Underworld and modes.
  • Boss abilities in Lua. Bosses use the raid-charge button to cast scripted attacks built from fighter methods, actors, projectiles and new moves. See Combat scripting and Moves.
  • Restored equipment. Dozens of weapons, armor, helms and magic items with localised names, shop levels and default enchantments, and new move families such as Chinese swords. See Weapons.
  • Perks and the forge. A rebuilt perk branch with upgrade ranks, and forge recipes split across several tiers. See Perks and enchantments and Forge and economy.
  • Rules around the game. Instant forge orders, longer raid rounds, switched-off paid offers and difficulty choices that scale prices. See Forge and economy and Saving and options.
  • A full reskin. Replaced loading screens, upscaled map buttons and swapped sounds. See Reskin the game.
  • Menus and map tools. A dojo chooser with art-backed medallions and map buttons added from Lua. See Menus and settings.

Begin with Make your first mod, then pick the guide that matches the job. When you have something to share, read Sharing and combining mods.