Jump to content

HigherPhysicsWarp


mbrx

Recommended Posts

Higher Physics Warp

Apologies if this plugin's functionalities exists else where, but I couldn't find it.

This plugin is a ridiculusly small plugin that allows you to use higher physics warp than the default. Ie. you can warp up to 120x while the engine is on, assuming that the engine produces very tiny forces - like an ION engine.

All it does is to change the default values of the physics inside KSP. So it should realy only be used for well balanced (weak) ION engine based crafts.

Any rotations or exessive forces can and will make your craft explode. You have been warned. F5 is your friend!

Download: https://dl.dropboxusercontent.com/u/26577569/HigherPhysicsWarp.dll

Source code:

This is the source code. It's so small you can just copy and paste it, make a new Xamarin project and tune the values yourself.


using UnityEngine;

namespace HPW
{
[KSPAddon(KSPAddon.Startup.Flight,false)]
public class HPW : MonoBehaviour
{
private float[] higherPhysicsWarpRates= new float[] { 1, 2, 3, 4, 8, 15, 30, 60, 120 };

private void Start() {
print ("HPW is starting, overwriting the physicsWarpRates");
TimeWarp.fetch.physicsWarpRates = higherPhysicsWarpRates;
}
}
}

How to use: Put the DLL file in your gamedata folder (or make some folders inside that if you'd like to).

  1. Get into space with an ION based craft
  2. Press alt-. (alt dot) until you have the desired warp factor 1,2,3,4,8,15,30,60 or 120 (ignore the non-existant graphics for the higher ones).
  3. Throttle up
  4. Profit

Tested on: This mod has been successfully tested on: 0.24.2 with stock ion engines.

Edited by mbrx
Link to comment
Share on other sites

Look at bettertimewarp plug-in, you can define your own TW, as crazy as you want (1e+somethingbig).

Thanks, that was a good suggestion (sorry I didn't find it earlier). That one seems to have much better features than what i threw together (so there's no point in this plugin).

Link to comment
Share on other sites

Thanks! I've asked them to close the thread since there's no point in it. Hopefully people (like me) who miss the higher warp rates can find the bettertimewarp plugin next time.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...