Jump to content

Cargo Bug Hotfix [KSP version <1.11]


Clamp-o-Tron

Recommended Posts

I discovered today that parts with ModuleCargoPart are really buggy in less than 1.11. Stock parts won't have this module, but modded parts updated to 1.11 will.

For instance, they don't show the PAW in the VAB when right-clicked, and attachment is unpredictable.

This mod modlet MM patch 80 byte file fixes that quickly and easily.

@PART[*]:HAS[@MODULE[ModuleCargoPart]]:FINAL
{
	!MODULE[ModuleCargoPart] {}
}

 

This isn't something anyone couldn't write themselves, I'm just putting this out there for visibility and utility.

 

To install, simply copy/paste the above code into a .cfg file somewhere in GameData.

 

License: The Unlicense

Edited by Clamp-o-Tron
Link to comment
Share on other sites

I can also suggest something like this to modders wanting to support both:

// Deletes cargo partmodule in KSP < 1.11
@PART[*]:HAS[#author[Chris?Adderley??Nertea?],@MODULE[ModuleCargoPart]]:NEEDS[!Squad/Parts/Engine/Size2LFB_v2]:FOR[NearFutureSolar]
{
  !MODULE[ModuleCargoPart] {}
}

This filters all parts for your author name, and deletes the ModuleCargo part only if Size2LFB_v2 is detected, which is a part added in 1.11. 

edit - stop competing people, mine is by far the most bytes. 

Edited by Nertea
Link to comment
Share on other sites

Just now, Nertea said:

I can also suggest something like this to modders wanting to support both:


// Deletes cargo partmodule in KSP < 1.11
@PART[*]:HAS[#author[Chris?Adderley??Nertea?],@MODULE[ModuleCargoPart]]:NEEDS[!Squad/Parts/Engine/Size2LFB_v2]:FOR[NearFutureSolar]
{
  !MODULE[ModuleCargoPart] {}
}

This filters all parts for your author name, and deletes the ModuleCargo part only if Size2LFB_v2 is detected, which is a part added in 1.11. 

Nice solution. I wish MM had the ability to check for KSP versions, like :NEEDS[!KSPv1.11].

@sarbianhow difficult would that be to do?

Link to comment
Share on other sites

// Deletes part inventories in KSP < 1.11
@PART[*]:HAS[ModuleInventoryPart]:NEEDS[!Squad/Parts/Engine/Size2LFB_v2]:FOR[Knes]
{
  !MODULE[ModuleInventoryPart] {}
}

// Deletes cargo partmodule in KSP < 1.11
@PART[*]:HAS[ModuleCargoPart]:NEEDS[!Squad/Parts/Engine/Size2LFB_v2]:FOR[Knes]
{
  !MODULE[ModuleCargoPart] {}
}

Tested this but don't work for me

Edited by Well
Link to comment
Share on other sites

This one work fine for me :

// Deletes part inventories in KSP < 1.11
@PART[*]:HAS[@MODULE[ModuleInventoryPart],#manufacturer[Knes]]:NEEDS[!Squad/Parts/Engine/Size2LFB_v2]
{
  !MODULE[ModuleInventoryPart] {}
}

// Deletes cargo partmodule in KSP < 1.11
@PART[*]:HAS[@MODULE[ModuleCargoPart],#manufacturer[Knes]]:NEEDS[!Squad/Parts/Engine/Size2LFB_v2]
{
  !MODULE[ModuleCargoPart] {}
}

 

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