Jump to content

Adding experiment situations


Recommended Posts

I'm new to modmaking and I'm making a mod that adds four new experiment situations: SrfSpashedJustBelowS, SrfSplashedHighBelowS, SrfSplashedLowBelowS, and SrfSplashedLandedSeabed. I have a few questions.

  1. How do you add said situations?
  2. How do you add biomes?
  3. How do you control in which biome (and at which height) they appear?
  4. Can you set negative heights?

Thanks for your time!

Edited by Crocket
Link to comment
Share on other sites

3 minutes ago, Aelfhe1m said:

The situations used by the default science experiment module are hard coded and can't be modified. For what you appear to be planning you'd need to write your own science module and add custom biome detection code to it. For example look at DMagic Orbital Science's code for the bathymetry experiment.

I was planning to add results for every experiment, but I might just have to add a part for said results. Then comes the problem of not being able to model or texture...

Link to comment
Share on other sites

1 minute ago, Crocket said:

I was planning to add results for every experiment, but I might just have to add a part for said results. Then comes the problem of not being able to model or texture...

You can use ModuleManager to clone an existing part to create a new named part and add the new science module to that.

Or write a new science module that defaults back to the stock behaviour when not in your custom biomes and use MM to replace the existing science module in parts with your module.

Link to comment
Share on other sites

2 minutes ago, Aelfhe1m said:

You can use ModuleManager to clone an existing part to create a new named part and add the new science module to that.

Or write a new science module that defaults back to the stock behaviour when not in your custom biomes and use MM to replace the existing science module in parts with your module.

Hm. I might try that!

Link to comment
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
×
×
  • Create New...