Bluedog-Design-Bureau icon indicating copy to clipboard operation
Bluedog-Design-Bureau copied to clipboard

Some way to show available science for non-DMSAG module science parts

Open Rodg88 opened this issue 2 years ago • 3 comments

While the DMagic module will show the totalScienceLevel value in the VAB part info, the stock module for non-animated parts doesn't show the scienceValueRatio at all. And since a lot of the parts in BDB use this field to balance science parts through the tech tree, it might be worth either changing all science parts to use the DMagic module (if that works even when they aren't animated), or making a new version of ModuleScienceExperiment that also shows the scienceValueRatio.

Rodg88 avatar Apr 01 '22 05:04 Rodg88

DMSAG needs an animation and making our own science experiment module is not really within our expertise. Well unless JSO feels like it.

zorg2044 avatar Apr 01 '22 15:04 zorg2044

After some testing, turns out there's already a stock field to show % available, it's just transmission % that DMagic enables. Some examples: This will show both values by enabling the stock field then converting to an animationless DM module: @PART[Bluedog_IonSensor]:FINAL { @MODULE[ModuleScienceExperiment],* { @name = DMModuleScienceAnimateGeneric %showScienceValueRatio = true showStartEvent = false showEndEvent = false experimentAnimation = false showEditorEvents = false } }

image

This just shows the science value without changing the module:

@PART[bluedog_OSO_Photometer]:FINAL { @MODULE[ModuleScienceExperiment],* { %showScienceValueRatio = true } } image

And this just shows transmission by converting to DMagic: @PART[bluedog_OSO_Experiment]:FINAL { @MODULE[ModuleScienceExperiment],* { @name = DMModuleScienceAnimateGeneric showStartEvent = false showEndEvent = false experimentAnimation = false showEditorEvents = false } }

image

And it looks like some experiments that already use DMagic don't have showScienceValueRatio set to true, so they only show transmission and not the total value.

Rodg88 avatar Apr 02 '22 08:04 Rodg88

Also, there's no clutter in the PAW for an animationless DMagic part, there's fields to disable them: image

Converting stock to DMagic would also require adding the totalScienceLevel field with the value of that module's scienceValueRatio. totalScienceLevel does the same thing as the stock module's scienceValueRatio, but because they have different names it doesn't automatically work when the module is converted. It works the same in game tho, this has totalScienceLevel = 0.5: image

Rodg88 avatar Apr 02 '22 09:04 Rodg88