Modding support and the Steam Workshop are here!
States of Power now supports mods, and the Steam Workshop is open. Mods can add new units, buildings, resources, technologies, player actions, AI behaviour and UI, or change the game's own rules and balance.
For players
Subscribe on the Workshop - open it with the new Steam Workshop button in the main menu. Subscribed mods appear in the game's launcher automatically. Restart the game to launch with newly installed mods.
New launcher - when the game starts, a launcher lists your mods. Turn each one on or off, then press Play. If a mod needs another mod, the launcher tells you which one is missing.
Modded multiplayer - host and join custom games with mods. Everyone needs the same mods and versions, and the game tells you if yours don't match. Official servers still run the game without mods.
Saves remember your mods - modded saves are marked, and you get a warning if you load one with different mods turned on.
Mods run code inside the game, so only install mods you trust.
For modders
- Mods are written in JavaScript and can build on the game's own code: add to its classes, change its UI components and hook into its events.
- The game comes with an example mod that adds oil, drilling platforms, an oil market, a jet fighter and unit veterancy, along with AI that builds and trades oil. To start your own mod from it:
- Start the game once after this update, then close it. This creates the example mod and the mods folder.
- Open %APPDATA%/statesofpower by pasting it into the File Explorer address bar. Inside are the exampleMod and mods folders.
- Copy exampleMod into mods and rename the copy. Always edit the copy, because the game replaces the original exampleMod folder every time it starts.
- Open mod.json in your copy and change id and name. The id has to be unique to your mod, for example yourname.my-mod.
- Start the game again. The launcher now opens first and lists your mod, already enabled. Press Play.
- Publish straight from the launcher - press Publish next to your mod, choose tags, write a change note, and it goes up to the Workshop. Press Update to upload new versions.