TrekDrive by ShadowWorks CKAN

A standalone warp drive mod inspired by Star Trek and RoverDude's Standalone Alcubierre Warp Drive. The drive requires at least two parts to operate. The current WIP release contains two modified stock parts as test articles, a test craft, the Phoenix warpship, the Enterprise-era Shuttlepod, and the NX-class starship and it's Refit version, the plugin itself, and the source code.

License: GPLv3

Game Version: 1.12.3

Downloads: 7,025

Author: TheShadow1138

Mod Website: Forum Thread

Followers: 24

Information Changelog Stats

Introducing... TrekDrive, by ShadowWorks (NO LONGER WIP)

Inspired by RoverDude's Standalone Alcubierre Warp Drive, this warp drive aspires to operate in a Star Trek-like manner requiring at least two types of parts to operate: warp coils/nacelles and the heart of the drive, the warp core and warp field generator. I have seen in other threads here where people were trying to figure out how to require the use of warp nacelles to get that Star Trek feel to their KSP warp drives, and that's what I set out to do with this, my first plugin mod. Maybe a bit ambitious, but I think it turned out well. Now, on to the details.

Technical Aspects: The plugin includes three Part Modules: SW_ModuleWarpCoil, SW_ModuleWarpCore, and SW_ModuleWarpGenerator.

SW_ModuleWarpCoil: This module would typically be attached to a warp nacelle part, but could be added to any part for a design that perhaps doesn't use a nacelle, or similar structure. Requires: Warp plasma, which is generated by a warp core part using SW_ModuleWarpCore. Restrictions: Cannot be added to the same part as the SW_ModuleWarpGenerator. This is the restriction that requires at least two types of parts.

SW_ModuleWarpCore: A simple generator module that takes in deuterium (matter) and anti-deuterium (antimatter) to generate warp plasma and electric charge. (Could be replaced with a stock ModuleGenerator I suppose, but it's included all the same). Requires: Deuterium and Anti-Deuterium. Restrictions: None hardcoded.

SW_ModuleWarpGenerator: The heart of the warp drive that actually moves the ship at warp speeds. Just like RoverDude's Standalone Alcubierre Warp Drive, the drive uses translation, not acceleration, to move the ship through space. Also, like RoverDude's drive, I used a slightly modified version of his gravity braking code so that ships will slow down when they near gravitational bodies. Requires: At least one part implementing SW_ModuleWarpCoil that cannot be the same part implementing SW_ModuleWarpGenerator. This is what forces the requirement of multiple parts. Restrictions: All warp coils must be charged before the drive can be activated, and enough electric charge to run the drive is also necessary. If either of these is not true the drive cannot activate, or will automatically disengage.  

NOTE: Some part on the vessel should have a container for warp plasma. In the included test parts the nacelles have their own warp plasma containers, but it can be on any part of the vessel.

How to Use: I have kept the operation of the drive entirely within the Part Action Windows (PAW) of each part. Follow these steps to activate the drive. Step 1: Activate the Warp Core by clicking the "Warp Core Status" toggle Step 2: Charge the Warp Coil(s) by clicking "Charge Warp Coils" in the coil PAW Step 3: Once the coils are charged click "Check Ready Status" on the Warp Generator (combined with the Warp Core Test Article here). The drive will not enter the "Ready" status until all the coils are charged, and will not do so if there are any other active Warp Generators. Step 4: Once the "Ready Status" reads "Ready", click "Engage Warp Drive" on the Warp Generator. This will change from "Drive Inactive" to "Drive Engaged"

Once the drive is engaged, any throttle input will move the ship at warp speeds. To return to non-warp operation, simply click the "Engage Warp Drive" toggle in the PAW to disengage the drive. Current warp factor is determined as a percentage of the drive's maximum warp rating, based on the amount of throttle: 50% throttle is half of the maximum warp, 100% throttle is maximum warp. E.g. for a drive with a maximum warp of 2, 50% throttle will be Warp 1, and 100% throttle will be Warp 2. The current warp factor is displayed in the Warp Generator's PAW

Step 5: Once you have reached your target destination simply throttle to 0%, or use "x" to cut the throttle. There is an "Orbit Mode" option in the Warp Generator PAW that defaults to "Easy", this places the vessel in as close to a circular orbit as possible when the throttle hits 0 after having been non-zero. That is, it doesn't continually change the orbit while the drive is active, only if it had been moving the ship and then stopped. If the Orbit Mode is toggled to "Realistic", it will simply use the vessel's velocity vector to determine the current orbit, in the same manner as RoverDude's Alcubierre drive.

Limitations: I tried to implement some limitations to make the drive less "cheaty". I took cues from Star Trek, particularly Star Trek: Enterprise, which dealt repeatedly with the limitations of the ship's warp drive. In the show, most problems occurred with the plasma injectors, but I though trying to code some kind of simulation of the injectors would be cumbersome and place unnecessary computational overhead. Other limitations that come to mind are the stability of the warp field, and the warp coil temperature. I opted for warp coil temperature to place a limitation on time at maximum warp.

Warp Coil Temperature: While the drive is active, and moving at warp speeds, to emulate the warp plasma cycling through the coils I have implemented an exponential function that increases the temperature of the warp coil part. The smallest amount of heating occurs at low warp, while the maximum heating occurs at maximum warp. There is a built-in warp coil efficiency that can be used to aid in cooling. The value in the config file is between 0 and 1, and the upper limit is enforced in the code to prevent config editing to make the coils cool themselves at high warp. If a value greater than 1 is used in the config, the plugin randomly chooses an efficiency in the correct range. So, you may get a decently efficient coil, or a really inefficient one. This is also done per coil, so you could have one coil that is really efficient and one that is terrible, which could hamper your warp travel to keep one coil from overheating and exploding (the stock behavior). The maxWarp parameter of the warp coil also plays a role in temperature calculation. A ratio is taken of the active drive's maxWarp to the warp coil's maxWarp to further scale the exponential function. If the warp coil's maxWarp is equal to the drive's, there is not scaling, if it is less, there is more heating, if it is greater it is less. The reasoning is that if you have a warp coil rated for Warp 1, and try to push it to Warp 2, it would burn out much faster, but if it's the other way around, it would be able to handle the temperature better.

Warp Coil Discharged: If the source of warp plasma runs out, or is shut off, the coils may completely discharge, if the user doesn't notice that warp plasma production has stopped. If the coils completely discharge (or their charge goes below the threshold set in their config) the drive will automatically disengage and either be automatically placed in a nearly circular orbit (Easy orbit mode), or be in a realistic orbit based on the vessel velocity vector.

Running out of Electricity: If there is not enough electric charge to run the Warp Field Generator, the drive will automatically disengage and enter an orbit based on the selected orbit mode.

Multiple Warp Generators?: If there are multiple parts on the vessel that implement SW_ModuleWarpGenerator, only one may be active at a time. If you try to activate a second warp generator when one is already active, it will not activate. If you disengage the active drive, you may then activate another.

Current State: The Phoenix warp ship is now playable. The launcher is included.

The balance may not be the greatest, but it's playable.

Community Resource Pack, Waterfall, and B9PartSwitch are now hard dependencies.

Warp Coil charge animation is now implemented.

The Enterprise-era Shuttlepod is implemented (no IVA yet), along with the NX-class starship and it's Refit version (no bridge IVA yet).

The Phoenix is pretty much in its final state while the NX-class is still undergoing development, but is fully usable.

Version 1.0.3b for Kerbal Space Program 1.12.3

Released on 2022-03-27

v1.0.3b - Log Spam Hotfix * Updated TrekDrive.dll to remove spamming the debug log with the number of warp coils that are charged.

Download (181.57 MiB)

Version 1.0.3a for Kerbal Space Program 1.12.3

Released on 2022-01-06

v1.0.3a - Warp Drive Hotfix

  • Updated TrekDrive.dll
    • Updated the CheckStatus function to check if the minimum number of nacelles have been charged instead of all nacelles on the ship. Fixes an issue where embarked warp-capable shuttles prevents the mothership from going to warp.
    • Updated the warp coil code so that coils that are not charged will not try to drain themselves and prevent the ship from going to warp if the minimum number of nacelles are in fact charged.

Download (181.57 MiB)

Version 1.0.3 for Kerbal Space Program 1.12.3

Released on 2022-01-01

v1.0.3 - The Galileo Seven

  • Added Type F Shuttlecraft (all parts have two texture variants)
    • Main Hull (crew capacity of 7)
    • Impulse Engine
    • Warp Core
    • Type F Warp Nacelles (Port & Starboard)
  • Added warpEffectParent.mu (an empty transform model) This model is in "TrekDrive/Generic" along with usage instructions
  • Added a WaterfallFX template for the TrekDrive warp stars effect to make it easier for others to add the effect to non-TrekDrive parts.
  • Added Mirror Universe texture variants and registry/name variants for the Type F Shuttlecraft.
  • Updated all parts with the SW_ModuleWarpGenertor module to have a warpEffectParent transform to standardize the transform to which the warp stars effect is parented. (Doesn't affect anything, all effects are intact and the same as before.)
  • Updated all parts with RCS thrusters to use LqdDeuterium, removing MonoPropellant entirely from the parts. To maintain propellant consumption rates all RCS thrusters' ISP were increased by a factor of 25.
  • Updated surface attach node on NX-class warp nacelles allowing for sane surface attachment.
  • Updated TrekDrive.dll to apply forward and reverse impulse thrust per-part instead of to the vessel as a whole (thrust vectoring still works).

Download (181.57 MiB)

Version 1.0.2 for Kerbal Space Program 1.12.2

Released on 2021-10-16

v.1.0.2 - The Original Reborn

  • Added Constitution-class Starship (all parts have two texture variants)
    • Bridge Module (crew capacity of 6)
    • Saucer (crew capacity of 30)
    • Impulse Engines (includes a docking port)
    • Engineering Hull (crew capacity of 20)
    • Navigational Deflector
    • Nacelle Pylons (two variants: flared and straight)
    • Warp Nacelles (Port and Starboard)
  • Starship Registry Variants (present on Saucer, Engineering Hull, and Nacelles [port & starboard]
    • USS Bonhomme Richard (NCC-1731)
    • USS Cassie (NCC-1711)
    • USS Constellation (NCC-1017)
    • USS Constitution (NCC-1021)
    • USS Defiant (NCC-1764)
    • USS Eagle (NCC-956)
    • USS Emden (NCC-1856)
    • USS Endeavour (NCC-1895)
    • USS Enterprise (NCC-1701) - The Default
    • USS Essex (NCC-1709)
    • USS Excalibur (NCC-1664)
    • USS Exeter (NCC-1672)
    • USS Hood (NCC-1703)
    • USS Hornet (NCC-1708)
    • USS Intrepid (NCC-1631)
    • USS Kearsarge (NCC-1733)
    • USS Lexington (NCC-1709)
    • USS Porthos (NCC-1712)
    • USS Potemkin (NCC-1657)
    • USS Ticonderoga (NCC-1714)
    • USS Yamato (NCC-1716)
    • USS Yorktown (NCC-1717)
  • Added two (2) new registries for the NX-class and NX-class
    • Cassie (NX-11)
      • S.S. Cassie (NX-11)
    • Porthos (NX-12)
      • S.S. Porthos (NX-12)
  • Added Mirror Universe Kerbban Empire Content in "Extras" (content is encapsulated and may be easily removed by deleting either the "Extras" folder, or the "MirrorUniverse" folder inside "Extras")
    • Kerbban Empire Texture Variants to the following parts
      • NX-class Saucer
      • NX-class Engineering Section Refit
      • NX-class Warp Nacelle Refit (Warp 7 Nacelles) Port and Starboard
      • Enterprise-era Shuttlepod fuselage
      • Constitution-class Saucer
      • Constitution-class Engineering Section
      • Constitution-class Warp Nacelles Port and Starboard
    • Kerbban Empire Registry variants for all currently available registry variants on the NX-class and Constitution-class ships
    • Flag of the Kerbban Empire
  • Added Textures Unlimited patch - authored by Puggonaut with "excludeMesh" statements provided by TheShadow1138 so that registries appear correctly with this config.

Download (168.26 MiB)

Version 1.0.1 for Kerbal Space Program 1.12.2

Released on 2021-09-28

v1.0.1 - Thrust Vectoring

  • Updated plugin to add thrust vectoring to impulse engines. Thrust vectoring is toggleable in the PAW and by Action Group
  • Added a new parameter to impulse engine CFGs, "maxVectorAngle" a value in degrees to control the amount of vectoring. Default value is 15º.

Download (98.27 MiB)

Version 1.0 for Kerbal Space Program 1.12.2

Released on 2021-09-09

v1.0 - Initial Full Release

  • Includes:
    • Phoenix Warpship
    • Phoenix Warpship launcher
    • Enterprise-era Shuttlepod
    • NX-class starship
  • Added A User's Manual
  • Added NX-class Bridge IVA and Props
  • Updated warp stars configs so that they are visible in the Bridge IVA
  • Updated the plugin to add an ambient rumble sound for the warp core. The sound is customizable by simply editing the CFGs with SW_ModuleWarpCore to give the path to your desired sound.
  • Added ENT-era Shuttlepod IVA (Stock and MAS versions)
  • Updated Shuttlepod Impulse engines to have a hover altitude of 1000m
  • Added ModuleLiftingBody to the Shuttlepod fuselage improving flight characteristics
  • Balanced the RCS and COM of the Shuttlepod removing most if not all unwanted movement during docking or other maneuvers.
  • Updated SW_ModuleImpulseEngine to apply Takeoff/Landing forces to every part to provide even acceleration to the entire vessel almost entirely removing the need for RCS or SAS to keep the vessel level during takeoff/landing in atmosphere.

Download (98.26 MiB)

Version 0.99.1w for Kerbal Space Program 1.12.2

Released on 2021-08-10

v0.99.1w - Spacedock

  • Added a ModuleManager patch for StinkyAce's Spacedock, available at this link: https://spacedock.info/mod/1815/USS%20Nimitz%20and%20Drydock The patch scales the dock down to 0.6, a near perfect fit for the NX-class, and instead of modifying the drydock that comes with StinkyAce's mod, it creates a new part with the aforementioned scale, an impulse engine (no part, just the module), and produces the resources used by TrekDrive ships. This will be a good refueling station for the NX.

  • Updated the plugin

    • Fixed an NRE spam in the impulse engine code while in the editor
    • Added the ability to select a "forward" or "reverse" mode for the impulse engines. Toggleable in the PAW, and can be set as an action group.
  • Cleaned up the Waterfall patch by splitting the warp effects into their own patch.

  • Tweaked the texture tiling on the NX warp effects (both the Warp 5 and Warp 7 versions).

Download (90.34 MiB)

Version 0.99w for Kerbal Space Program 1.12.2

Released on 2021-08-05

v0.99w - NX-class Release

  • B9PartSwitch is now a hard dependency. (Included in download)
  • Updated the TrekDrive.dll
    • Warp speed formula changed to allow faster interstellar travel
    • OnLoad function updated to not automatically set the warp drive to "Not Ready" if it was in a "Ready" state at the last save. This allows the player to immediately engage the drive after the vessel loads, if the drive is in a Ready state upon loading.
  • Added NX-class Starship Parts
    • Bridge module (Crew capacity of 6)
    • Saucer section (Crew capacity of 20)
    • Engineering section
    • Nacelle Pylons (B9PartSwitch variants)
      • Upper variant (2 upper pylons)
      • Lower variant (2 lower pylons)
      • Four variant (2 upper & 2 lower pylons)
    • Warp Nacelles (Port & Stbd)
    • Main Impulse Engines (Port & Stbd)
    • Secondary Impulse Engines (Port & Stbd)
    • Navigational Deflector (2 variants) - Serves as a transmitter
      • NX-01 Oval "Mark I" Deflector
      • NX-02 Rectangular "Mark II" Deflector
  • Added NX-class Refit Starship Parts
    • Engineering Section Refit (Includes warp 7 warp core and warp drive, Crew capacity of 10)
    • Refit Warp Nacelles (Port & Stbd)
  • Added Custom Waterfall FX model and texture for streaking stars at warp effect.
  • Updated the warp stars effect on the Phoenix
  • Added six (6) craft files for the NX-class and NX-class Refit
    • NXClass_A: Standard NX-class starship (as seen in Star Trek: Enterprise)
    • NXClass_B: NX-class starship with two (2) ventrally (lower) mounted nacelles
    • NXClass_C: NX-class with four (4) nacelles
    • NXClass_Refit_A: Standard NX-class starship Refit
    • NXClass_Refit_B: NX-class Refit with two (2) ventrally (lower) mounted nacelles
    • NXClass_Refit_C: NX-class Refit with four (4) nacelles

Download (86.59 MiB)

Version 0.9w for Kerbal Space Program 1.12.1

Released on 2021-07-16

v0.9w - Shuttlepod & Impulse Engine Release

  • Updated the TrekDrive.dll
    • All TrekDrive buttons/toggles can now be set as Action Groups
    • SW_ModuleImpulseEngine Added - automatic takeoff and landing modes when sub-orbital, it will not automatically land from orbit.
    • SW_ModuleBussardCollector Added - When the collector is activated it will collect at a random rate for a random period of time before choosing another random rate and period of time. Collects LqdDeuterium and Antimatter with LqdDeuterium collecting at a higher rate. Collection will only occur at sub-light velocities.
  • Updated Waterfall version.
  • Updated Waterfall effect on the Phoenix Launcher Main Engine to correct a position issue.
  • Added a Waterfall effect to the Phoenix - visible when traveling at warp; the effect is based on the streaking stars warp effect from TNG - VOY and ENT.
  • Added Enterprise-era Shuttlepod
    • Shuttlepod main body - holds 5 kerbals with airlocks on both sides (No IVA)
    • Shuttlepod Impulse Engine

Download (29.95 MiB)

Version 0.7.5w for Kerbal Space Program 1.11.2

Released on 2021-05-17

v0.7.5w - OnLoad Hotfix:

  • Corrected an issue that prevented engaging the warp drive after switching to another vessel, after reloading the game, or any other loading action. Upon switching back to the warp ship, or loading the save, the warp drive will be automatically disengaged and set to "Not Ready" status. Simply clicking "Check Ready Status" and then engaging the warp drive will get you ready to go. Thanks to Tanner Rawlings on the forums for finding this issue.

Download (23.35 MiB)

Version 0.7w for Kerbal Space Program 1.11.2

Released on 2021-03-14

v0.7w - Phoenix IVA release:

  • Added Phoenix IVA (Stock and MOARdV's Avionics System)
  • The MAS version replaces some of the central props with MAS props, and replaces the Main Display with a functional MFD
  • MAS version of the IVA will only be available with MAS is installed.

Download (23.35 MiB)

Version 0.6w for Kerbal Space Program 1.11.1

Released on 2021-02-16

v0.6w - Phoenix Initial release:

  • Updated Code:
    • Added nacelle glow animation capability, giving a visual indicator of coil charge.
    • Fixed coil charge logic to allow charging a partially discharged coil
    • Fixed a logic issue with the Warp Field Generator code. Now the "not enough charge" warning will only occur if the warp drive is active.
  • Moved to LqdDeuterium and Antimatter from Community Resource Pack
  • Added Phoenix Parts:
    • Phoenix Crew Cabin (no IVA currently, built-in RCS, no effects yet)
    • Phoenix SAS (contains Monopropellant and Electric Charge)
    • Phoenix Fuselage (contains LqdDeuterium and Antimatter)
    • Phoenix Nacelle (deployable warp nacelle)
    • Phoenix Warp Core/Warp Field Generator
    • Phoenix Main Thruster (matter-antimatter rocket engine)
    • Phoenix Vernier Thruster (matter-antimatter rocket engine)
    • Phoenix Fairing (to conceal the warp nacelles during launch)
    • Phoenix Interstage Decoupler
    • Phoenix Launcher First Stage
    • Phoenix Launcher Main Engine (Liquid Fuel Oxidizer engine)
  • Added Phoenix Warp Ship Test craft.
  • Added Community Resource Pack and Waterfall as hard dependencies (bundled)

Download (22.27 MiB)

Version 0.5w for Kerbal Space Program 1.11.0

Released on 2021-01-21

No changelog provided

Download (42.91 KiB)

Stats for TrekDrive by ShadowWorks

Downloads over time

Downloads per version

New followers per day

Top Referrers

  1. spacedock.info
  2. forum.kerbalspaceprogram.com
  3. www.google.com
  4. www.reddit.com
  5. www.bing.com
  6. duckduckgo.com
  7. www.youtube.com
  8. sd1b.52k.de
  9. sd-prod-live.52k.de
  10. kerbalx.com

Export Raw Stats

Export Downloads

Export Followers

Export Referrals

Raw stats are from the beginning of time until now. Each follower and download entry represents one hour of data. Uneventful hours are omitted.