Jump to content

Hiding/Replacing Parts from stock categories


Hosch

Recommended Posts

I want to ask if there is a way to hide parts from the stock categories (while using e.g. filter extentions). I think especially about TAC's life support which floods the utility folder.

Ii seperated them into another subcategory, but they're still load in utility.

when setting the category from "utility" to "none", the parts wont even be loaded into the game .... so does anyone know how to handle this?

I havn't seen a similar post and I hope this is the right place for this question

Link to comment
Share on other sites

while using e.g. filter extentions ... I think especially about TAC's life support which floods the utility folder.

You need to change the Utility subcategory definition to block those parts. Utility is defined here, but you should do it via Module Manager so my updates don't break anything ;) (example code below requires MM)

The fastest way to do it is to copy all your conditions into an inverted Check type (if they show up in the other category, it will block them)

@SUBCATEGORY[Utility]
{
@FILTER,*
{
CHECK
{
type = check
invert = true
/////////////
// copy all your subcategory's conditions here
/////////////
// eg.
CHECK
{
type = path
value = ThunderAerospace/LS // put the actual conditions you used here
}
}
}
}

For parts to be visible when using FE, they need to be visible if FE wasn't installed (stock categories or mod categories). This is to prevent asteroids, kerbals, and other parts that aren't intended to be visible (including mod parts) from showing up. If you want to block something, you change the subcategory rather than the part.

Edited by Crzyrndm
Link to comment
Share on other sites

You need to change the Utility subcategory definition to block those parts. Utility is defined here, but you should do it via Module Manager so my updates don't break anything ;) (example code below requires MM)

The fastest way to do it is to copy all your conditions into an inverted Check type (if they show up in the other category, it will block them)

@SUBCATEGORY[Utility]
{
@FILTER,*
{
CHECK
{
type = check
invert = true
/////////////
// copy all your subcategory's conditions here
/////////////
// eg.
CHECK
{
type = path
value = ThunderAerospace/LS // put the actual conditions you used here
}
}
}
}

For parts to be visible when using FE, they need to be visible if FE wasn't installed (stock categories or mod categories). This is to prevent asteroids, kerbals, and other parts that aren't intended to be visible (including mod parts) from showing up. If you want to block something, you change the subcategory rather than the part.

Thank you very much! It does work exactly as i imagined. :) i did not expect the FE author to nitice this :blush:

anyway, this is my final edit:


CATEGORY
{
name = Filter by Function
type = stock
value = replace

SUBCATEGORIES
{
list = 19,Life Support
}
}
SUBCATEGORY
{
name = Life Support
icon = Lifesupport

FILTER
{
CHECK
{
type = folder
value = ThunderAerospace
}
}
}
@SUBCATEGORY[Utility]
{
@FILTER,*
{
CHECK
{
type = check
invert = true
CHECK
{
type = path
value = ThunderAerospace
}
}
}
}

TAC's parts are now no longer in the utility folder, but in a seperat one similar to your additions (e.g. Airintake, Langing Gear, ect.)

again, thank you very much :)

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