Jump to content

Surface Samples and Ore


Recommended Posts

I just had an idea. What if when Kerbals took a surface sample, they got a tiny bit of ore. Not enough to refuel, so like 0.1 units. It would fit in with taking samples, and you could have contracts, like return sample from biome X on planet X. But, to not confuse it with the ore we will use to refuel, we could also make a new resource called "Sample" or something like that, and instead of being recovered for funds, it could be recovered for science!

Link to comment
Share on other sites

Personally I feel that, instead of merely turning surface samples into generic Science points, the (repeated) collection of (large numbers) of samples could be used to gradually uncover more useful information pertaining to a planet's composition:

As may have been hinted by Squad in certain places, a resource system featuring sample collection / analysis / return as well as mining / processing / storage has been suggested for an as-yet undetermined future release of KSP. This would be an additional justification / goal for players to send spacecraft to other planets/moons (in addition to flying Jeb and his flag there, of course :D) - the ability to do real science.

While the actual implementation is still quite far off in the horizon, I figured I'd start a thread anyway detailing some of my ideas and musings, which could be potentially applicable to both the stock game and mods such as Kethane, Extraplanetary Space Centers and tek Industries Science.

What Squad has WIP'ed so far...

(Note that these may not necessarily represent the what Squad will ultimately implement - I've simply relinked them from the last known reddit thread for your viewing convenience)

My own musings...

Initial Surveying / Sampling

  • At the very beginning of a new savegame, players would immediately be able to view Kerbin's resource map for its surface, oceans and atmosphere, without needing to do any additional prospecting / science (I presume Kerbals would already know their home planet's composition well enough). Conversely, the resource map for other planets would initially be blank.
  • The scanner array(s) would be used to provide very rough surveys of other planets and moons from orbit - they would probably detect the presence of certain resources and locations where they are generally found, but little about their actual quantity / proportion / purity.
  • Ground-based robotic or crewed missions would be required to obtain better data through sample collection / statistical analysis missions
    • Units of rock, liquid and gas samples would be collected by Kerbals on EVA or dedicated robotic arms
      • Rock samples provide data for surface makeup
      • Liquid samples provide data for ocean makeup (or additionally, underground crude oil-like substances such as the namesake of the Kethane mod)
      • Gas samples provide data for atmospheric makeup

      [*]Each sample obtained would contain differing proportions of selected substances found on that planet/moon

      • The rationale for this is that one does not simply have samples purely made up of whatever
      • Sample #005 may contain 45% Metaxium / 10% Blutonium / 30% Alium / 14% Kerbon / 1% UNKNOWN SUBSTANCE 06
      • Sample #021 may contain 67% Metaxium / 30% Zanotite / 3% UNKNOWN SUBSTANCE 02

      [*]The more samples one gathers, the more accurate the final resource map for that planet would be

      [*]"Known" resources are those that are already also found on Kerbin - it is enough to simply identify them and the proportion present in each sample

      [*]"Unknown" or "Rare" resources are those that are not found on Kerbin - a sample return mission is required so that Kerbal scientists back home can properly study it

      • Once sample(s) containing unknown substance(s) is/are successfully returned, new resource names are automatically added to the resource map list
      • e.g. UNKNOWN SUBSTANCE 06 will automatically be renamed to Jebedynium, for instance

Prospecting / Mining / Processing / Storing Resources

  • A combination of orbital scanning and ground sampling would be used to determine which sites give the best purity for whatever resource the player is interested in mining
  • Resources would be mined via various parts
    • Certain part types would limit where resources could be obtained
      • Drills acquire solid resources from the surface
      • Drills with pump attachments acquire liquids from below the surface (again, think Kethane)
      • Pumps acquire resources from oceans
      • Intakes acquire resources from the atmosphere

      [*]Parts of the same type would be able to mine all types resources found in their specific region, and differ only in extraction rate and efficiency

      • i.e. Pumps PX-100 and PX-200 are able to acquire the same resources, but the PX-200 works twice as fast

    [*]Refiners would be able to purify solids into any mineral-based resource desired

    [*]Chemical processors would be able to purify any liquids or gases desired

    [*]Bulk and fluid storage tanks are able to store any proportion / type of refined solids and liquids respectively (e.g. any combo of minerals can go into one bulk storage tank)

Using Resources

  • Liquids and gases can be used to fuel rockets or supply life support systems (similar to Kethane)
  • Minerals or metals can be used to fabricate basic spacecraft components such as fuselages and fuel tanks (like the "ore" used in Extraplanetary Space Centers)
  • Rare resources would most likely be semi-conductor like minerals used for making more hi-tech components such as SAS, command pod instruments
    • May also reduce the cost / weight & increase the performance of basic components

    [*]Refined resources can be flown back to Kerbin - if resources are involved in career mode, this could be a source of financial revenue / means of replenishing part stocks

...And how to potentially implement them (from a code perspective)

Initial Surveying / Sampling

  • The resources map proportions for each planet and moon are actually predetermined and hard-coded into KSP itself.
  • A proposed resources.cfg for each savegame would contain:
    • An initial seed for the random deposits location/quantity generation (sharing seeds results in identical deposit locations)
    • Resource names and proportions available on each planet / moon (initially blank - populated through gameplay)
    • Deposit locations / purity (initially blank - populated through gameplay)

    [*]When players start with simple orbital scans of various planets and moons, the persistence file is updated to store the names of the resources found on said planet/moon, along with a quantity of 0%

    • This would be displayed in-game as "present" i.e. Kerbon - present

    [*]When players collect physical rock/liquid/gas samples:

    • The presence and proportions of resources are NOT stored on a per-sample basis (massive data overhead!)
    • Rather, Kerbals on EVA and robot samplers would simply have a incremented "SampleCount" up to their "MaxSampleCapacity"

    [*]When these samples are offloaded into analysis parts:

    • The code simply loops through the the number of samples deposited
    • For each sample/loop iteration, dummy variables are used to temporary hold resource names and quantities
    • The composition of each sample is randomly generated, but strongly determined by the hard-coded proportions for each planet
      • e.g. Assume Duna is hard coded to have 75% Metaxium on its surface
      • Therefore any given rock sample is more likely to mostly contain Metaxium
      • The actual quantity of Metaxium returned as outpost from any particular sample may actually be anywhere between, say 25% to 50%

      [*]The results for each sample are averaged out and written back to resources.cfg map, as the "actual" resources map proportion for each planet/moon

      • i.e. only the final running average for the whole planet/moon is stored

      [*]The more samples one collects, the closer the savegame's data tends towards the hard-coded ideal values

    [*]Example:

    • At the start of the savegame, nothing is known about the Mun's composition
    • Internally in KSP, the Mun may have hardcoded resource proportions of 10% A, 20% B, 30% C and 40% D
    • When a player scans the Mun, resources A, B, C and D will be detected but their quantities will be unknown
      • i.e. A - present, B - present, C - present, D - present

      [*]When a player analyses their first rock sample, the random number generator may assign said sample as having 70% A, 20% B and 10% D

      • Mun Resources map is now updated to A - 70%, B - 20%, C - present, D - 10%
      • Obviously this is grossly inaccurate compared to the overall hardcoded figure, but remember that we've only taken one sample

      [*]By rock sample #025, the figures might get averaged out to:

      • A - 12%, B - 18%, C - 33%, D - 37%
      • Basically, the more samples we take, the closer we tend towards the "ideal" hardcoded proportions

Prospecting / Mining / Processing / Storing Resources

  • Improved orbital scans would result in deposit locations/quantities/purities being written to the resources.cfg savefile (much like kethane's own kethane.cfg)
  • Deposit quantities would limit how much resources can be extracted before the deposit runs out
  • Deposit purities would determine the extraction rate for any extractor part
  • Processing efficiencies would further influence the amount of purified resource actually obtained
  • Storage is already implemented in-game

Link to comment
Share on other sites

So much this, win 10/10, but one could get many, many samples from one place, getting incredible science/funds. Even if samples would have to be stored in tiny tanks, a player could spam tanks on a lander and store lots of samples, again getting incredible science/funds. Would be cool to detect where the ore is though.

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...