Migrating from SpaceWarp 1.x: Difference between revisions

From Kerbal Space Program 2 Modding Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 11: Line 11:
'''<big>API</big>'''
'''<big>API</big>'''


SpaceWarp2 now has following decorators:
SpaceWarp2 now has following classes:


GeneralMod
GeneralMod
Line 20: Line 20:




SpaceWarp2 also has a bunch of different members and classes
 
SpaceWarp2 also has a bunch of different members
 
'''<big>Example plugin before & after migration:</big>'''
 
Before:
 
TBA
 
For more examples you can look at some of the "Reduxed" mods we've made for Redux.

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.