Jump to content

Biomes help


MortemLuna

Recommended Posts

Hi! I've been trying to make a mod which adds biomes to other bodies, but starting with the mun. now, I already know the mun has biomes, but you can only perform science on the surface for it to be biome-specific. I'm trying to make science experiments biome-specific from low orbit around those bodies. I just don't know how...

Link to comment
Share on other sites

I'm trying to make science experiments biome-specific from low orbit around those bodies. I just don't know how...

You'll want a situaution/biome mask for that:

SituationMask & biomeMask are bitmasks defining where the part can do science.

SituationMask determines in which of the following conditions science can be gathered:

SrfLanded = 1 SrfSplashed = 2, FlyingLow = 4, FlyingHigh = 8, InSpaceLow = 16, InSpaceHigh = 32

[TABLE]

[TR]

[TH][/TH]

[TH]InSpaceHigh = 32[/TH]

[TH]InSpaceLow = 16[/TH]

[TH] FlyingHigh = 8[/TH]

[TH]FlyingLow = 4[/TH]

[TH]SrfSplashed = 2[/TH]

[TH]SrfLanded = 1[/TH]

[TH]Binary[/TH]

[TH]Decimal[/TH]

[/TR]

[TR]

[TD]Option with everything selected:[/TD]

[TD]1[/TD]

[TD]1[/TD]

[TD]1[/TD]

[TD]1[/TD]

[TD]1[/TD]

[TD]1[/TD]

[TD]111111[/TD]

[TD]63[/TD]

[/TR]

[TR]

[TD]Option with only FlyingLow selected:[/TD]

[TD]0[/TD]

[TD]0[/TD]

[TD]0[/TD]

[TD]1[/TD]

[TD]0[/TD]

[TD]0[/TD]

[TD]000100[/TD]

[TD]4[/TD]

[/TR]

[/TABLE]

The number you need to input is a decimal conversion of binary yes/no selection.

So you grab the number you've gotten by filling out the options above and run it through a binary converter like this one: http://www.binaryhexconverter.com/binary-to-decimal-converter

BiomeMask works in a similar way but determines when biomes play a part in your science gathering.

Think of it as you are filling the list out again, 111111 or 63 is always. 000100 or 4 is only when flying low.

This allows your ground poking instrument to care about if you are in the desert or not while letting a deepspace radiowavesomethingorother not bother checking what it happens to be above.]

Don't forget to add ScienceDefs for these new places as well or they won't be runnable. Though if you're planning on making a certain experiment only work over a certain biome (say, the Poles), I don't think it's possible. It's either all biomes or none, though I'd be happy to be corrected.

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