Migrating from SpaceWarp 1.x: Difference between revisions

From Kerbal Space Program 2 Modding Wiki
Jump to navigation Jump to search
mNo edit summary
m link
Line 29: Line 29:
TBA
TBA


For more examples you can look at some of the "Reduxed" mods we've made for Redux.
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

Revision as of 18:47, 16 November 2025

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