Giter Site home page Giter Site logo

spacewarp's Introduction

Cool Banner

Space Warp

Curseforge Downloads
SpaceDock Downloads

Documentation

Space Warp is a mod loader for Kerbal Space Program 2.

Note: Use at your own risk, as this is an early version that is expected to undergo many changes.

Installation

Ensure you have BepInEx correctly installed, it is required for SpaceWarp!

Download the latest release from this page under the Releases section above.

Drag the contents of the .zip folder into your KSP2 directory underneath BepInEx as a plugin, commonly located at C:\Steam\steamapps\common\Kerbal Space Program 2\BepInEx\plugins or use the Installer

To install the downloaded mods, simply drag them into the same location: C:\Steam\steamapps\common\Kerbal Space Program 2\BepInEx\plugins. Note that with the latest SpaceWarp update, mods are not loaded within the SpaceWarp folder itself.

Compiling

To compile this project, you will need to follow these steps:

  1. Install NuGet
  2. Run nuget restore inside the top directory to install the packages.
  3. Copy everything in the Kerbal Space Program 2\KSP2_x64_Data\Managed folder into the external_dlls/ folder.
  4. Run one of the build scripts (see below for more info) and copy the contents from the correct build output directory into the KSP2 root director

Mods are currently implemented as monobehaviours with two fields: a Logger for logging and a Manager that points to Spacewarp. A mod template generator exists as a Python script.

Mod Structure

The mod structure is still a work in progress. However, the current structure is as follows:

KSP2_Root_Folder/
├── BepInEx/
│   ├── Plugins/
│   │   ├── mod_id_folder_name/
│   │   │   ├── swinfo.json
│   │   │   ├── README.md
│   │   │   ├── assets/
│   │   │   │   ├── bundles/
│   │   │   │   │   ├── *.bundle
│   │   │   │   ├── images/
│   │   │   │   │   ├── *
│   │   │   ├── localization/
│   │   │   │   ├── *.csv
│   │   │   ├── addressables/
│   │   │   │   ├── catalog.json
│   │   │   │   ├── *
│   │   │   ├── *.dll 

Build Scripts

Each build scripts is essentially just a wrapper around python3 builder.py $@. The actual builder code is in builder.py. Before running, open a terminal and cd into the repo, then run pip install -r requirements.txt to install the required dependencies (its just argparse).

The build scripts are: build.bat for Windows, build.ps1 for Windows (Powershell), and build.sh for Linux

The available arguments are:

  • -r or --release to build in release mode

When building, the build output will be in build/SpaceWarp, and the compressed version will be build/SpaceWarp-[Debug|Release]-[commit].zip.

spacewarp's People

Contributors

cheese3660 avatar ewyboy avatar rexicon226 avatar x606 avatar joaoburatto avatar eivindnorling avatar redstonewizard08 avatar chilla55 avatar nipperyslipples avatar halbann avatar windows10ce avatar cskartikey avatar shanepaton avatar celisium avatar jan-bures avatar adamsong avatar girhubmoment avatar penumbra779 avatar sea-ex avatar astroclef avatar h4ckerxx44 avatar baanish avatar jaxoncarelos avatar admiralradish avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.