Skip to content

Commit

Permalink
Bluedog geiger counter (#114)
Browse files Browse the repository at this point in the history
* Fixing the Bluedog DB geiger counter to be a sensor

To fit all descriptions also the kerbalism-geigercounter.cfg had to be altered.

* MM doesn't like _ in HAS, use ? instead

* checking for geigerCounter AFTER[Kerbalism]

* checking for geigerCounter AFTER[Kerbalism]

* The full module name

* just remove the HAS from the @part line

* omg MM syntax come on

* What is FeatureRadiation again?
  • Loading branch information
Gordon-Dry authored and steamport committed Jul 7, 2018
1 parent b389727 commit f3b5150
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ PART
name = ModuleScienceExperiment
experimentID = geigerCounter
experimentActionName = Log Radiation Data
resetActionName = Discard Data
reviewActionName = Review Data
resetActionName = Discard Radiation Data
reviewActionName = Review Radiation Data

useStaging = False
useActionGroups = True
Expand Down
5 changes: 3 additions & 2 deletions GameData/Kerbalism/Support/Bluedog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
// by ModZero
// ============================================================================

@PART[*]:HAS[@MODULE[*ModuleScience*]:HAS[#experimentID[bd_GeigerCounter]]]:NEEDS[Bluedog_DB,FeatureRadiation]:FOR[Kerbalism]
@PART[*]:HAS[@MODULE[ModuleScienceExperiment]]:NEEDS[Bluedog_DB]:AFTER[zzzKerbalism]
{
@MODULE[*ModuleScience*]:HAS[#experimentID[bd_GeigerCounter]]
@MODULE[ModuleScienceExperiment]:HAS[#experimentID[bd?GeigerCounter]]
{
@experimentID = geigerCounter
@experimentActionName = Log Radiation Data
Expand All @@ -112,5 +112,6 @@
{
name = Sensor
type = radiation
pin = pinanim
}
}
2 changes: 1 addition & 1 deletion GameData/Kerbalism/Support/NewHorizons.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ RadiationBody:NEEDS[New_Horizons]
// GeigerCounter science experiment definitions
// ============================================================================

@EXPERIMENT_DEFINITION[*]:HAS[#id[geigerCounter]]:NEEDS[New_Horizons]
@EXPERIMENT_DEFINITION[*]:HAS[#id[geigerCounter]]:NEEDS[New_Horizons]:AFTER[Kerbalism]
{
@RESULTS
{
Expand Down
2 changes: 1 addition & 1 deletion GameData/Kerbalism/Support/OPM.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ RadiationBody:NEEDS[OPM]
// GeigerCounter science experiment definitions
// ============================================================================

@EXPERIMENT_DEFINITION[*]:HAS[#id[geigerCounter]]:NEEDS[OPM]
@EXPERIMENT_DEFINITION[*]:HAS[#id[geigerCounter]]:NEEDS[OPM]:AFTER[Kerbalism]
{
@RESULTS
{
Expand Down

0 comments on commit f3b5150

Please sign in to comment.