This mod is not known to work with the latest version of Kerbal Space Program. Proceed with caution.
KRASH - Kerbal Ramification Artificial Simulation Hub (simulation mod for KSP)
This mod includes version checking using MiniAVC (http://forum.kerbalspaceprogram.com/threads/79745) If you opt-in, it will use the internet to check whether there is a new version available. Data is only read from the internet and no personal information is sent. For a more comprehensive version checking experience, please download the full KSP-AVC plugin (http://forum.kerbalspaceprogram.com/threads/79745">KSP-AVC Plugin)
KRASH lets you launch flights from the VAB\SPH, and when the flight is over, it restores the game to the exact state that it was in before the simulation started. It handles restoring the state of any mod which stores its data in the vanilla persistence file (basically any of them worth their salt), and even handles it if you exit the game during a simulation.
Instructions
In the VAB/SPH, load the ship you want to simulate
Click the SIM button, you will see the following screen:
The buttons at the top select the starting location, and are as follows:
Kerbin - The homeworld of the game. If you are running a mod which changes the homeworld, it will be shown here Landed - Start sim landed on any planetary body Orbit Selection - Start sim in an orbit around any planetary body
In career mode, if you haven't reached a planetary body, you won't be able to start the sim there
Starting sim at Kerbin
You will be able to start the sim either at the Runway or the Launchpad. Selected which one you want,see this screen:
Starting sim Landed
There is a row of buttons which will allow you to filter the displayed planetary bodies by either planets, moons, or all.
Select the planetary body you want to start the sim at from the displayed list. Also,
enter an altitude where the vessel should be started at. You can also enter the Latitude
and Longitude for the starting location. It will start there, and very
slowly descend until it touches the ground. See the following screen for details:
Starting sim in Orbit
There is a row of buttons which will allow you to filter the displayed planetary bodies by either planets, moons, or all.
Select the planetary body you want to start the sim at from the displayed list. Also,
enter an altitude where the vessel should be started at. Note that when you select a body, the
altitude will be automatically adjusted to be just outside the atmosphere if it has one, or
at an altitude of 10000m. You can override it with whatever values you want.
Click the big green button to start the simulation
IMPORTANT NOTE: If you are running RemoteTech, be sure that ALL your antennas are set to start retracted, otherwise they will be ripped off during the teleportation process.
During the simulation, everything works normally, except you can't go to the Space Center. Hitting the Escape key
will bring up the Simulation menu, see the following screenshot:
At this menu, you can either restart the simulation, or terminate the simulation and return to the editor.
In the event of either a game crash during the simulation, or exiting the program, restarting the game will restore the game to the point just before you started the simulation.
When the simulation is terminated, you will see the usual flight history dialog before the final revert.
Credits
KRASH is derived from HoloDeck by enneract. Renamed at enneract's request Portions taken from Hyperedit by khyperia
Released on 2021-08-29
Thanks to github user @tivec for this:
Change teleport to use FlightGlobals.SetShipOrbit. This should fix the issues with Vessel jumping in orbit when time warping, and Orbit parameters are changed when going to time-warp if sim is started not from Kerbin
Released on 2021-08-08
Added AssemblyFileVersion
Updated version file for 1.12
Released on 2020-12-26
Thanks to github user JonnyOThan for this:
Check TerminateAtAtmoWithoutData option when in atmosphere
Thanks to github user MatanShahar for this:
Add special handling to pseudo bodies
Released on 2020-08-31
Fixed timewarp charges to have charges accumulate during physics warp, but not during non-physics warp
Released on 2020-07-28
Fixed window which didn't use the ClickThroughblocker
Released on 2020-06-12
Adds an option to allow launching any size, weight, or part count craft for simulation.
Released on 2020-01-28
Added setting to not charge costs during timewarp. Default is to not charge
Released on 2019-12-24
Fixed bug which occurred when leaving the editor while the selector window was open Added cost adjustment ability, accessable in stock settings page
Released on 2019-12-21
Made the game pause window draggable
Added additional functionality to API to support next release of the FlightEditSaver
Released on 2019-12-16
Found another instance field initializer which was calling gameObject when not in Awake or Start
Released on 2019-11-03
Updated for KSP 1.8
Released on 2019-09-02
Fixed numerous nullrefs when returning to the main menu, specific to 1.7
Released on 2019-07-27
Thanks to @siimav for this:
Check the unlock status of all parts before allowing to start a sim
Previously the code only checked whether the tech for the part was researched but was missing the entry cost check. This had a nasty side effect of marking the current save as being a sim whereas the sim itself couldn't actually be started because stock VAB checks failed.
Thanks to @RCrockford for this:
Added integration for disabling Testlite as well as TestFlight.
Released on 2019-07-27
Added InstallChecker.cs
Updated AssemblyVersion.tt
Released on 2019-03-02
Fixed wireframe not being removed from the camera
Released on 2019-01-12
Removed KRASHCustom.cfg from release directory
Released on 2019-01-09
No changelog provided
Released on 2018-12-12
Version bump to keep ckan happy
Released on 2018-12-12
Fixed missing cfg screen
Released on 2018-12-12
Fixed cfg window not showing up
Released on 2018-12-12
Rebuild to get correct version in Spacedock as latest
Removed max_version from .version file
Released on 2018-12-11
Rebuild of latest version for 1.3.1
Released on 2018-10-28
Version bump for 1.5 rebuild
Released on 2018-06-16
Added dependency checking
Released on 2018-04-24
Thanks to github user @a21621107 Rp-0 tooling integration Disable TestFlight during simulations Ignore RP-0 tooling costs in sim cost calculation Only update ship cost on editor modifications
Removed Blizzy option from settings page Updated to latest ToolbarController, now registers with the toolbar
Released on 2018-03-20
Thanks to forum user @jebs_sy for this fix Fixed teleport position due to a change made in KSP in 1.3.1
Released on 2018-03-18
Updated for 1.4.1
Added support for ClickThroughBlocker
Added support for ToolbarController
Released on 2017-11-08
Added check for null body when selecting a test scenario location
Updated file locations
Added jenkins
Released on 2017-10-11
Updated for KSP 1.3.1
Released on 2017-09-06
Added default starting altitude setting, one for planets with atmosphere, one for planets without atmosphere
Released on 2017-05-29
Update to fix missing folders in build
Released on 2017-05-29
Updated for 1.3
Released on 2016-11-02
No changelog provided
Released on 2016-08-05
Fixed harmless nullref when starting sim
Released on 2016-08-05
0.5.19 Fixed issue where exiting KSP after never having used KRASH gets an exception and KSP never exits
0.5.20 Fixed nullref when KRASHCustom.cfg is missing
Released on 2016-07-04
Previous release was not built correctly
Released on 2016-07-01
Added option to show all bodies in career mode
Released on 2016-06-23
Added check for enough funds in Editor Now uses the MaxAllowableSimCost to set the initial default value Renamed MaxAllowableSimCost to DefaultMaxAllowableSimCost Moved cfg files into PluginData folder Recompile for 1.1.3
Released on 2016-06-03
Really fixed the issue where it stayed in sim mode
Released on 2016-06-03
Fixed exploding ships after teleport to landed state Fixed issue where if flight can't be entered due to some reason, simulation mode will be exited. This can happen in the following two (known) scenarios: 1. Try to launch, no kerbals available, cancel launch 2. In career mode, if you try to simulate a vessel for which you haven't researched the parts, the simulation does not start but the game remains in simulation mode. Obviously can happen only if you import a ship design from another save.
Released on 2016-06-01
Fixed bug where having a location of 0 in any of the 3 values would trigger a Unity bug
Released on 2016-05-25
Fixed bug where ships length & width were being added together when checking for a ship too wide Added display of reasons for inability to start sim, along with the limit being exceeded
Released on 2016-05-22
Fixed checks for size, mass & part count for orbital & landed sims to properly check against facility being used
Released on 2016-05-22
Fixed issue where you couldn't start a sim in orbit or landed
Released on 2016-05-22
Fixed bug where a ship too big or heavy for the launchpad/runway would be allowed to launch, but the game
would then stop it, leaving the sim enabled until a real launch was done
Fixed inability to hide sim costs during sim
Fixed NullReferenceException when first opening a career game from the main menu
Released on 2016-05-17
Fixed slowdown in sim mode
Released on 2016-05-15
Fixed constant exceptions when in flight from KSP.UI.Screens.AltimeterSliderButtons.LateUpdate
Released on 2016-05-13
Fixed issue where a ship could be recovered when landed, or return to space center when landed, and then recover ship from space center. Recovery tab disabled
Released on 2016-05-11
Added some code to check for a null value from the ProgressTracking when launching a sim
Released on 2016-05-11
Added code to hide costs if UI is hidden Fixed issue when in career mode, if sim terminated in crash, unable to restart sim Fixed issue where Flight results dialog would show up multiple times
Released on 2016-05-11
Added code to ensure that no latitude or longitude of 0.0 will be passed to Unity, this to work around a Unity bug.
Released on 2016-05-02
Recompiled for 0.5.3
Released on 2016-04-20
Fixed Nullref when in non-career mode
Released on 2016-04-20
Updated for 1.1
Released on 2016-03-17
Released on 2016-03-11
Bug fixes:
Released on 2016-03-06
Released on 2016-03-06
New Features:
Config file enhanced with with nodes for each career type. Top of the config file are the basic values, the values in the nodes override the basic values (if present).
API added for modders:
Released on 2016-02-28
Initial public release
Raw stats are from the beginning of time until now. Each follower and download entry represents one hour of data. Uneventful hours are omitted.