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

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...