Jump to content

Human Friendly Landing Zone Title


Recommended Posts

I'm using the following chunk of code to try and get the "landing zone" for the active vessel:


var vessel = FlightGlobals.ActiveVessel;
var value = vessel.landedAt;

if (string.IsNullOrEmpty(value))
{
value = ScienceUtil.GetExperimentBiome(vessel.mainBody, vessel.latitude, vessel.longitude);
}

value = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(value.ToLower());

This gives me the current results ... most of the time. In some cases, however, especially the areas around KSC, it gives odd values. For example, on the runway, it gives me "Ksc_runway_09".

There must be a way to get the proper names of all these places, because the experiments use them. For example, you can have "Temperature scan while landed on the Runway" or "Surface sample from the Launchpad".

Does anyone know how to get the proper title of these landing sites?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...