Substratum is a non-destructive mod loader, unified Lua modding SDK, in-game GUI manager (modview), and Android LÖVE port builder for Apotheosis Engine.
Zero Copyrighted Game Assets: This repository contains only original loader/SDK code and minimal unified diff patches. You must own a legitimate copy of Apotheosis Engine on Steam to build and run Substratum.
Standalone Builders: You do not need to download the entire repository, you only need
builder.sh(Linux / macOS) orbuilder.ps1/builder.bat(Windows) placed next toapotheosisEngine.exe.
- Download or clone this repository (or grab the latest release zip).
- Copy the Substratum folder (
builder.bat,builder.ps1,mods/,patches/,androidlua/) into your Apotheosis Engine game folder next toapotheosisEngine.exe(or pass-GameDir "C:\Path\To\Apotheosis Engine"tobuilder.ps1). - Double-click
builder.batand select your target:[1]Windows Desktop: Downloads and caches the official LÖVE 11.5 runtime in%LOCALAPPDATA%\Substratumand outputs a standaloneout\Substratum\Substratum.exe.[2]Android LÖVE: Appliesandroid.patch, injectsandroid.lua+ aluasteamstub, and outputsout\game.love.
- Run
out\Substratum\Substratum.exedirectly (your saves remain in%APPDATA%\LOVE\apot01).
- Build
out/game.loveusing option[2]inbuild.bator./build.sh android. - Either drop
game.loveinto yourlove-androidGradle project atapp/src/main/assets/game.loveto compile an APK, or opengame.lovedirectly with the LÖVE for Android (11.5) app. - Grant Storage Permissions: On Android 11+, you must manually grant All Files Access (Settings → Apps → LÖVE / Substratum → Permissions → Files and media → Allow management of all files). Without this permission, the loader cannot read or create external folders on
/sdcard. - Place custom Android mods and overrides on your device at:
/sdcard/apotheosis/mods/<mod_folder>/mod.lua/sdcard/apotheosis/overrides/<module/path>.lua
- Linux (
builder.sh): Tested on custom Linux (./builder.sh desktop/./builder.sh android). Uses systemloveif installed or caches the official LÖVE 11.5 AppImage in~/.cache/substratum.
Note:
builder.shmirrors the Windows builder logic for POSIX environments. has been tested on: custom Linux
- Build (
builder.sh): CopyapotheosisEngine.exe(from your Windows/Steam install) into the same folder asbuilder.sh. Open Terminal in that folder and run:
chmod +x builder.sh
./builder.sh desktopThis downloads LÖVE 11.5 and bundles out/Substratum/Substratum.app with Substratum.love inside Contents/Resources/.
Copy out/Substratum/Substratum.app into /Applications (or run it directly from out/Substratum/):
cp -R out/Substratum/Substratum.app /Applications/Double-click Substratum.app or launch from Terminal:
open /Applications/Substratum.appNote: If macOS blocks the unnotarized app on first launch, right-click Substratum.app → Open, or run xattr -cr /Applications/Substratum.app.
- Mods directory:
~/Library/Application Support/apot01/mods
Tested on: Hackintosh VM (macOS 12 Monterey)
Mods live in %APPDATA%\apot01\mods\ (%APPDATA%\LOVE\apot01\mods\ if unfused) on Windows, ~/.local/share/love/apot01/mods/ on Linux, and /sdcard/apotheosis/mods/ on Android. Each mod is a folder containing a mod.lua file that returns a table, for example:
local M = {
id = "example_mod",
name = "Example Mod",
version = "1.0.0",
author = "YourName",
desc = "Adds a custom terminal command",
}
function M:init(game)
-- Register a custom command in APOTHEOSIS SHELL
game.mods:addTerminalCommand({
name = "hello",
desc = "Prints a greeting to the shell and logbook",
fn = function(args, term)
game.mods:pushLog("Hello from Substratum! ^_^", 0)
return "pong (" .. table.concat(args, " ") .. ")"
end
})
-- Run logic once the game scene and subsystems are initialized
game.mods:onReady(function(g)
g.mods:pushLog("Example Mod initialized!", 0)
end)
end
return MSee
API_REFERENCE.mdfor the fullgame.modsSDK reference (apps, processes, themes, materials, powers, window management, mascots, pause/title buttons, crash hooks, and more).
- Unsandboxed Lua Execution: Mods loaded through Substratum run with full LÖVE/Lua privileges (
io,os,ffi). Only install mods and overrides from sources you trust. - Steam Protection:
main.lua.patchintentionally disables Steamworks (game.noSteam = true) so custom mods, cheat packs, or stage-jumpers cannot pollute official Steam leaderboards or corrupt cloud saves.
Substratum is licensed under the GNU General Public License v3.0 (GPL-3.0). See LICENSE for details.