Jump to content

KIS Item


Tranquil

Recommended Posts

Hi there, in my KIS inventory there is, from some other mod, a handheld camera which won't work correctly, cause it says it has a volume of 345 litres, so the Kerbal's aren't able to have it in their own inventory nore be able to pick it up. Does someone know where / how the volume is defined? I'm not sure if this is the right place for my Question.

Edited by Tranquil
Link to comment
Share on other sites

1 hour ago, Tranquil said:

Thank you :-) how do i find out? Is this in the config file of the part or somewhere else? Can I change the volume in the config file? 

For most parts it's auto-calculated.  However, it can be added as an override in the .cfg file.  Example:

	MODULE
	{
		name = ModuleKISItem
		volumeOverride = 45
	}

So you could look for that in the config file, or write an MM patch to add that.

Link to comment
Share on other sites

33 minutes ago, DStaal said:

write an MM patch to add that.

I wouldn't change the part directly - rather (like @DStaal said) use a personal module manager patch - something like:

 

// need part NAME from actual part.cfg between the brackets []
@PART[]:NEEDS[KIS]:FINAL
{
	%MODULE[ModuleKISItem]
	{
		// replace with volume of item
	      volumeOverride = 45
	}
}

 

Edited by zer0Kerbal
Link to comment
Share on other sites

MM patches are a better solution than changing the config file - it allows you to update the source of the parts and keep your changes intact in a separate file.

Mass is just another line in the config file.  I believe it's either 'Mass' or 'mass'.  (Case matters.)

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