Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | Static Public Attributes | List of all members
FinePrint.Utilities.CompatibilityUtilities Class Reference

Static Public Member Functions

static void CleanUpUnsanitaryEVAKerbals (ConfigNode flightState)
 
static SurveyDefinition FindSurveyDefinition (string experiment)
 Finds a survey definition containing the given science experiment manually instead of through ContractDefs. More...
 
static bool OldCareerSave (Game.Modes mode, int saveMajor, int saveMinor, int saveRevision)
 Determines whether a loading save is an old career save. More...
 
static bool OldCareerSave (Game.Modes mode, string versionString)
 Determines whether a loading save is an old career save. More...
 
static bool SavePriorTo (int major, int minor, int revision)
 Checks if the save was made prior to an arbitrary version. More...
 
static void UpdateCareerSave (ConfigNode node)
 Checks a loading save for contracts that are missing things that were added recently, and attempts to add them. More...
 
static string UpgradeVesselSituation (string situation)
 Upgrades a saved vessel situation through various versions. More...
 

Static Public Attributes

static int majorVersion = int.MaxValue
 
static int minorVersion = int.MaxValue
 
static int revisionVersion = int.MaxValue
 

Member Function Documentation

static void FinePrint.Utilities.CompatibilityUtilities.CleanUpUnsanitaryEVAKerbals ( ConfigNode  flightState)
inlinestatic
static SurveyDefinition FinePrint.Utilities.CompatibilityUtilities.FindSurveyDefinition ( string  experiment)
inlinestatic

Finds a survey definition containing the given science experiment manually instead of through ContractDefs.

Parameters
experimentThe experiment.
Returns
The SurveyDefinition containing the experiment.
static bool FinePrint.Utilities.CompatibilityUtilities.OldCareerSave ( Game.Modes  mode,
int  saveMajor,
int  saveMinor,
int  saveRevision 
)
inlinestatic

Determines whether a loading save is an old career save.

Parameters
modeThe game mode of the save.
saveMajorThe major version of the save.
saveMinorThe minor version of the save.
saveRevisionThe revision version of the save.
Returns
Whether or not the save is an outdated career save.
static bool FinePrint.Utilities.CompatibilityUtilities.OldCareerSave ( Game.Modes  mode,
string  versionString 
)
inlinestatic

Determines whether a loading save is an old career save.

Parameters
modeThe game mode of the save.
versionStringThe delimited version in string form.
Returns
Whether or not the save is an outdated career save.
static bool FinePrint.Utilities.CompatibilityUtilities.SavePriorTo ( int  major,
int  minor,
int  revision 
)
inlinestatic

Checks if the save was made prior to an arbitrary version.

Parameters
majorThe major arbitrary version.
minorThe minor arbitrary version.
revisionThe revision arbitrary version.
Returns
static void FinePrint.Utilities.CompatibilityUtilities.UpdateCareerSave ( ConfigNode  node)
inlinestatic

Checks a loading save for contracts that are missing things that were added recently, and attempts to add them.

Parameters
nodeThe main save node.

< Part Tests now have haul variants.

< Tourism had its tourists condensed to a node list, and extra values added.

< Base Contracts can now be contextual.

< ISRU contracts now have bitwise situations, for now patch up the ones that no longer exist.

< Station Contracts can now be contextual.

< Satellite Contracts now have multiple placement modes. Old saves were only new.

< Surveys are now contextual, and have different grammar applied based on their survey definition.

< VesselSystemsParameter uses IContractObjectiveModule as of 1.2, upgrade 1.1.3 and below. Most names did not change, but power did.

< ProbeSystemsParameter and FacilitySystemsParameter were combined into VesselSystemsParameter, and have new members.

< LocationAndSituation parameters now have bitwise situations, for now patch up the ones that no longer exist.

< ResourceExtractionParameter now keeps track of resources harvested by specific modules, default to ModuleResourceHarvester.

< SpecificOrbitParameter is now a WaypointParameter, and uses TargetBody.

< New SurveyWaypointParameters can bounce, but not old ones.

< StationaryPointParameters keep track of multiple deviations now. Original deviation was 12.5% (45 degrees).

< Part Test parameters received some new save data.

< PartRequestParameter now uses SaveNodeList, which uses the pipe delimiter, which is safer than a comma.

static string FinePrint.Utilities.CompatibilityUtilities.UpgradeVesselSituation ( string  situation)
inlinestatic

Upgrades a saved vessel situation through various versions.

Parameters
situationThe situation as loaded from ConfigNode.
Returns
The situation as it should be.

< Saves made prior to 105 were not bitwise. Saves made on 105 were in bitwise, and saves made after were strings.

Member Data Documentation

int FinePrint.Utilities.CompatibilityUtilities.majorVersion = int.MaxValue
static
int FinePrint.Utilities.CompatibilityUtilities.minorVersion = int.MaxValue
static
int FinePrint.Utilities.CompatibilityUtilities.revisionVersion = int.MaxValue
static

The documentation for this class was generated from the following file: