Jump to content

Science and Experience questions


strudo76

Recommended Posts

Hey there

I'd like to modify some experiments to allow the science to be collected (only by scientists), and disable the ability to reset the experiment. Is that possible to do with MM? I see the dataIsCollectable and collectActionName in the part definition, but nothing that refers to which trait can perform the collection.

There is also the resetActionName key. I assume if I remove that key, the option to reset will disappear effectively implementing the second part of my request, but is that the best way to go about this?

Also is there any way to affect the amount of experience a Kerbal gets for performing the tasks? Or a way to change the amount of experience required to reach each star? I'd like to be able to have my Kerbals become 4 star without needing to leave the Kerbin SOI.

Thanks

Link to comment
Share on other sites

10 hours ago, strudo76 said:

I'd like to modify some experiments to allow the science to be collected (only by scientists), ...

I don't know a way to restrict the science collection but you can restrict who can run the experiment with usageReqMaskInternal and usageReqMaskExternal (more details).

11 hours ago, strudo76 said:

and disable the ability to reset the experiment.

If you want to do that for ALL experiments, you can make the science lab unable to restore experiments and set the rerunnable key on the experiments to false:

@PART[*]:HAS[@MODULE[ModuleScienceExperiment]]
{
	@MODULE[ModuleScienceExperiment]
	{
		%rerunnable = false
	}
}
@PART[Large_Crewed_Lab]
{
	@MODULE[ModuleScienceLab]
	{
		@canResetConnectedModules = False
		@canResetNearbyModules = False
	}
}

If you want to do that for individual experiments, the science lab will always be able to restore the experiment, even with:

@PART[*]:HAS[@MODULE[ModuleScienceExperiment]]
{
	@MODULE[ModuleScienceExperiment]
	{
		%resettable = false
		%rerunnable = false
		%resettableOnEVA = false
	}
}

Only if you run an experiment and hit the reset button, the lab can't restore the experiment. But you also get no results and can't run the experiment again. This only occures with resettable = false.

Here you can find all/most of the keys in ModuleScienceExperiment: LINK

Other than that you can take a look at the modules in here:

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...