linuxgurugamer

[1.5.*] Extended information about scientific experiments in VAB & SPH

Recommended Posts

Written by @DennyTX, but not updated since it's release, and DennyTX doesn't respond.  Original thread here:  https://forum.kerbalspaceprogram.com/index.php?/topic/121633-131-extended-information-about-scientific-experiments-in-vab-30-jan-2018/&

Goal: a bit helping to select proper experiment for mission.

 This simple plugin adds additional info about science experiment to its information panel (RightMouseClick). Now You  can find info about situation when experiment will work and its relations from biomes while constructing your vessel in VAB. Also it adds usage requirements and can trace multiple experiments definitions in one part. Works in VAB-SPH only.

Observed partmodules can be configured using CFG. So, it can trace parts containing stock science module "ModuleScienceExperiment", additional infos will be collected  from its EXPERIMENT_DEFINITION node. Example cfg with nodes for stock science parts, OLDD, StationScience and DMagic's science parts are enclosed. Seems like it can trace any handmaded sciencemodules with its own names from different mods, but only if it were inherited from stock ModuleScienceExperiment.

Availability

dis2NtP.png

tX2YFFP.png

 

 

Edited by linuxgurugamer
  • Like 12

Share this post


Link to post
Share on other sites

Liked, shared, and subscribed!

 

This is a tiny, awesome QOL mod. Thanks for grabbing it.

Share this post


Link to post
Share on other sites

CKAN still shows old one for version 1.3.1.  Any chance of getting this one added?

Share this post


Link to post
Share on other sites
On 1/11/2019 at 5:10 PM, Eugene Moreau said:

CKAN still shows old one for version 1.3.1.  Any chance of getting this one added?

If you discovers things like this, it is always a good idea to open an issue on the NetKAN repository.

I reported this issue ~1 hour ago and it is fixed now :) 

Share this post


Link to post
Share on other sites

@linuxgurugamer

Apologies if you have a preferred platform for bug reports, but the github issue tracker is disabled for this mod so I will report here.

In the SituationHelper class, a list of possible values is defined for usageReqMaskInternal & usageReqMaskExternal. However, this list does not contain every possible value and can cause an NRE on a value not explicitly defined (as discovered by @4x4cheesecake in the Probes Before Crew thread)

 

Edited by d4harp
  • Like 1

Share this post


Link to post
Share on other sites

Thanks @d4harp to bring up the issue here already :)

@linuxgurugamer It's actually a "KeyNotFoundException" but it is pretty rare so I've talked about an NRE by habit before...

KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.Int32,System.String].get_Item (Int32 key) [0x00000] in <filename unknown>:0 
  at ScienceSituationInfo.SituationModule.Start () [0x00000] in <filename unknown>:0 

In order to replicate the issue, it requires (additional to this mod) a science experiment with an valid "usageReqMaskInternal" value != -1, 0, 1, 2, 4, 5, 8 in the "ModuleScienceExperiment" node. To me, it happens in the combination of "Probes before Crew" + "Stockalike Station Parts Expansion Redux" + this mod, because this combination changes the usageReqMaskInternal of the sspx greenhouses to 12.

As soon as I enter the editor, the excetion appears.

Full log: https://www.dropbox.com/s/0hcn27460jq8d9a/output_log(experiment_mask).txt?dl=0

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, 4x4cheesecake said:

Thanks @d4harp to bring up the issue here already :)

@linuxgurugamer It's actually a "KeyNotFoundException" but it is pretty rare so I've talked about an NRE by habit before...


KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.Int32,System.String].get_Item (Int32 key) [0x00000] in <filename unknown>:0 
  at ScienceSituationInfo.SituationModule.Start () [0x00000] in <filename unknown>:0 

In order to replicate the issue, it requires (additional to this mod) a science experiment with an valid "usageReqMaskInternal" value != -1, 0, 1, 2, 4, 5, 8 in the "ModuleScienceExperiment" node. To me, it happens in the combination of "Probes before Crew" + "Stockalike Station Parts Expansion Redux" + this mod, because this combination changes the usageReqMaskInternal of the sspx greenhouses to 12.

As soon as I enter the editor, the excetion appears.

Full log: https://www.dropbox.com/s/0hcn27460jq8d9a/output_log(experiment_mask).txt?dl=0

Found the problem.

New release, 1.3.3.2

  • Added missing situation mask 9 & 12,rare, but can happen
     
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now