Jump to content

ModuleTestSubject parameters


Recommended Posts

So far this is the only thing I've found that actually tries to explain what the settings in ModuleTestSubject do.

https://wiki.kerbalspaceprogram.com/wiki/Module#ModuleTestSubject

It definitely explains what situationMask, useStaging, and useEvent do, but beyond that it's kinda vague.  What's the difference between ALTITUDE and ALTITUDEENV? What are GT, LT, EQ and NEQ?  It says they're options but not what they actually mean.  Looking in part configs I see numbers in 'value' all over the place but I don't know how it actually affects it.  How would I make specific contracts, like testing at a certain height and speed?  Is it possible?  Prestige I kinda get but further explanation would be good too.

Does anyone have any other documentation on this that explains what these parameters actually do?

Edited by Geonovast
Moved to more appropriate subforum
Link to comment
Share on other sites

I haven't played with ModuleTestSubject at all, so I can't help with ALTITUDE vs ALTITUDEENV, but whenever I see GT, LT, EQ, NEQ in any kind of programming context, they usually mean:

  • GT: Greater than
  • LT: Less than
  • EQ: Equal
  • NEQ: Not equal

Looking at something like this (random example pulled from your wiki link):

CONSTRAINT
		{
			type = ALTITUDE
			test = LT
			value = 300000
			situationMask = 16
			body = _NotSun
		}

That looks to me like the constraint would be satisfied if your altitude is below 300000m (type, test, and value), you are in space low over the required body (situationMask), and body = _NotSun probably means the body chosen for the test will be anything other than the sun.

Link to comment
Share on other sites

Ah yes, that makes a lot of sense.  Thanks @Zelda.

It seems then that just from a constraint point of view that having the game generate specific contracts, like altitude and speed in a single constraint isn't possible.  Oh well.  Guess I'll look into doing it with ContractConfigurator.

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