Situation: New Science game. First Command Pod sitting on launch pad with a custom ModuleScienceContainer.
This Event is active:
[KSPEvent(active = true, guiActive = true, guiName = "Review Custom ScienceData")]
public void ShowCustomDataEvent()
{
print("[SensibleScience] ModuleSensibleScienceContainer :: ShowCustomDataEvent");
var data = new ScienceData(30f, 1f, 0f, "surfaceSample@KerbinSrfLandedLaunchPad", "Random Data");
var page = new ExperimentResultDialogPage(part, data, data.baseTransmitValue, data.transmitBonus, false, "", true,
new ScienceLabSearch(vessel, data),
new Callback<ScienceData>(onDiscardData),
new Callback<ScienceData>(onKeepData),
new Callback<ScienceData>(onTransmitData),
new Callback<ScienceData>(onSendToLab));
ExperimentsResultDialog.DisplayResult(page);
}
If I click on the event with no other interaction, I get an ExperimentsResultDialog with the specified 30 Mits but no science value.
However, if I EVA my kerbal, grab a surface sample and dump/reset it, then re-board my pod and click on the event the ExperimentsResultDialog now shows the expected science (and FULL xmit value, as defined).
Does KSP track activated experiments/situations? If so, what calls do I need to make to activate specific experiment or subject IDs?