Build System
Estimated reading time: less than 1 minuteThis page gives an overview of ModLoader’s build flow. For Mod creation only, see Packaging. The content here targets ModLoader contributors and users building custom game bundles.
Quick Navigation
- Insert Tools — insert2html, packModZip, sc2ReplaceTool, sc2PatchTool usage, options, and examples
- CI/CD Pipeline — GitHub Actions flow and per-repo build artifacts
- Custom SC2 Engine — Engine changes and how to replace it without full recompile
Building ModLoader
Outputs:
dist-BeforeSC2/BeforeSC2.js— ModLoader coredist-insertTools/insert2html.js— HTML injection tooldist-insertTools/packModZip.js— Mod packaging tooldist-insertTools/sc2ReplaceTool.js— SC2 engine replacement tool
See Insert Tools.
Full Packing Overview
- Build modified SC2 engine — Run
node build.js -d -u -b 2in sugarcube-2_Vrelnir to produceformat.js - Replace game engine — Override
devTools/tweego/storyFormats/sugarcube-2/format.jsin the game project withformat.js, or use sc2ReplaceTool on compiled HTML - Inject ModLoader — Use insert2html to inject ModLoader into the game HTML and embed Mods from
modList.json
