Kethane icon indicating copy to clipboard operation
Kethane copied to clipboard

Allow Scanning to generate Science

Open DavidSouther opened this issue 10 years ago • 7 comments

I'd love it if scanning would generate Science for my fledgling space program! Perhaps 1 science per hex? per 6 hex? I dunno - but would love to play with that! Can anyone point me to where I might add that?

DavidSouther avatar Jan 21 '14 22:01 DavidSouther

Hey, I love the idea! So much, I even signed up here to offer my contribution. If someone could give a hint where to start, I would be happy to help out!

rubenwe avatar Feb 03 '14 19:02 rubenwe

ResearchAndDevelopment is a KSP object which grants access to this sort of thing. I had some plans to add this and never got around to it. A few things I had in mind were diminishing returns and science awarded only for newly uncovered cells, not just the mere act of scanning. The issue I ran into (and never resolved) was how to make the science gain visible. In other words, how should users be made aware that they've gained science, and how much?

Majiir avatar Feb 07 '14 22:02 Majiir

I'd vote some kind of exponential cutoff. Say, per body, Body * ((20 / (x - (20/9)) + 1) for uncovering an empty cell and that * 10 for uncovering a Kethaned cell. Body is a multiplier (Kerbin = 1, Mun = 1.1, Joole = 5?); this gives a nice boost immediately for a few points (10 , then tapers off to about 1 point per square at about the 20th square).

As for display... we know the number of cells per body, and cells uncovered. This could be one or two % bars, I think, that fill up as you scan.


David Souther http://davidsouther.com

On Fri, Feb 7, 2014 at 5:52 PM, Majiir Paktu [email protected]:

ResearchAndDevelopment is a KSP object which grants access to this sort of thing. I had some plans to add this and never got around to it. A few things I had in mind were diminishing returns and science awarded only for newly uncovered cells, not just the mere act of scanning. The issue I ran into (and never resolved) was how to make the science gain visible. In other words, how should users be made aware that they've gained science, and how much?

— Reply to this email directly or view it on GitHubhttps://github.com/Majiir/Kethane/issues/228#issuecomment-34516330 .

DavidSouther avatar Feb 08 '14 02:02 DavidSouther

So it looks like KSP wants data very specifically in a certain format for the Archives. I'm looking through ModuleScienceExperiment, that seems like a good place to extend from.

DavidSouther avatar Feb 08 '14 04:02 DavidSouther

I suppose an idea here would be finding a way to programatically trigger an experiment without it being an option on the part. So ... say, it would fire an experiment every time a new cell is scanned, then store that experiment in the part, from where it can be transmitted or recovered. (Just a random thought that came to mind when I looked over this.)

vad-systems avatar Mar 09 '14 15:03 vad-systems

The problem with that is then you have an experiment per cell in the science archives. The way KSP does science is... odd, to me. I want to see how they incorporate it into the contracts mode to get a better view of how Kethane might be sensible in that.

DavidSouther avatar Mar 09 '14 15:03 DavidSouther

Not necessarily. You could make two Experiments per planet: Empty Cell, Kethaned Cell. Then, when a cell is scanned, you programatically "perform" the respective experiment, rather than as a direct module on the part. I'm not sure how viable that is right now, but that's the direction I'd look into.

So with a similar experiment as #233, the archives should still only display that one (or, well, two) experiment, but the science value is slowly filled up by consecutive cells.

vad-systems avatar Mar 09 '14 16:03 vad-systems