Required introduction
Procedure title
-
First step
// Use your own install path var kd = new KerbalData(@"C:\KSP"); // Load a save file using the same short name provided in the game UI var sf = kd.Saves["testing"]; // One of many helper methods, this one re-fills all ships sf.Game.FlightState.FillResources(); // Setting the title of the save game, this will change in-game name display // (still need to wire in dir name change) sf.Game.Title = "I AM IRON MAN"; // Another helper method, this clears all vessels marked as debris or unknown vessel types. sf.Game.FlightState.ClearDebris(); // Grabbing a vessel from the game var sat = sf.Game.FlightState.Vessels.Where(v => v.Name.Contains("Beta Geo-Sat")).FirstOrDefault(); // Changing the orbit (currently defaults to 100km above target) sat.Orbit.Change(Body.Bop); // Save file, includes data backup of original file sf.Save(); -
Second step
Optional section title
Procedure #2
-
First step
-
Second step