Automatic staging for Kitten Space Agency.
Activates the next sequence whenever active engines run out of propellant, and drops burnt-out boosters while the rest of the stage keeps firing. Works during auto-burns (continues the burn instead of aborting) and manual burns.

A launch stage that mixes solid boosters with a liquid core does not run out of propellant all at once. In most configs, the boosters burn out first and get dropped while the core stages continues burning. Until now AutoStage waited for every active engine to go dry, so burnt-out boosters rode along as dead mass until the core quit too. It now drops them as soon as they are spent, while the rest of the stage keeps firing.
AutoStage therefore also stages when the next sequence would jettison nothing but burnt-out hardware. Before staging it works out which parts each decoupler in that sequence would separate, and only fires when the sequence activates no engine, every active engine in the jettisoned parts is spent, at least one engine that stays is still firing, and nothing jettisoned is an engine that has never run or still feeds an engine that stays.
Vehicles that do not mix engine types never see a jettison with both spent and firing engines, so their staging is unchanged. Turn it off with "Drop spent stages early" in the settings window if you want staging to wait for a full burnout.
Two delays are configurable per part variant, both measured from the staging trigger:
Set the decoupler delay shorter than the engine delay if you want the lower stage to drop away before the upper stage lights up.
Configs live in Documents\My Games\Kitten Space Agency\mods\AutoStage\. Removing the mod does not affect game saves.
Documents\My Games\Kitten Space Agency\mods\AutoStage\.| Package | Purpose | Tested version |
|---|---|---|
| StarMap | Mod loader | 0.4.5 |
| KittenExtensions | Required for XML patching | 0.4.0 |
MIT. Source code, issue tracker, full changelog: https://github.com/Maximilian-Nesslauer/KSA-AutoStage
Forum thread: https://forums.ahwoo.com/threads/autostage.891/
Raw stats are from the beginning of time until now. Each follower and download entry represents one hour of data. Uneventful hours are omitted.