Migrating from SpaceWarp 1.x

From Kerbal Space Program 2 Modding Wiki
Revision as of 18:47, 16 November 2025 by Dandoesstuff (talk | contribs) (link)
Jump to navigation Jump to search

Redux features a brand new version of SpaceWarp. While it's all shiny and cool, it breaks support with older versions. Now you're probably wondering: How do I migrate to SpaceWarp 2.x? This guide is for you.


What's different?

Since Redux has SpaceWarp built-in, there's no need to have BepInEx anymore. This means all mods get stored in a dedicated Mods folder in the main KSP2 directory called "mods"... and that you can't use BepInEx's stuff anymore.

The SpaceWarp namespace has been renamed to SpaceWarp2.

API

SpaceWarp2 now has following classes:

GeneralMod

MonoBehaviourMod

KerbalMod. (technically a Redux thing) It has access to useful game classes like Game, Assets, Messages, etc. Equivalent to BaseSpaceWarpPlugin.


SpaceWarp2 also has a bunch of different members

Example plugin before & after migration:

Before:

TBA

For more examples you can look at some of the "Reduxed" mods we've made for Redux here: https://github.com/orgs/KSP2Community/repositories?type=all