Crzyrndm Posted July 5, 2015 Author Share Posted July 5, 2015 Well, that one will get dumped (twice) because it has nothing in it. The first time because it doesn't have any subcategories listed, the second time because it doesn't have any subcategories listed with parts in them CATEGORY{ name = Literally Nothing icon = SPD colour = #FFF0F0F0 all = true SUBCATEGORIES { list = Pods }} Link to comment Share on other sites More sharing options...
Tahvohck Posted July 5, 2015 Share Posted July 5, 2015 (edited) Hum. Okay. More advanced one it is, then. Also, it would be great if it turned out I don't actually need all the initial filters. I wanted this one to modify the KAS & KIS node via modulemanager but that wasn't working either, so that's why I'm completely recreating it.EDIT: Whoops. Nevermind, now I understand what you were saying about needing subcategories.{ name = KAS and KIS Compatible icon = KAS colour = #FFF0F0F0 all = true FILTER { CHECK { type = folder value = KIS, KAS, KISFunParts } } FILTER { name = evaToolsBomb CHECK { type = moduleName value = ModuleKISItemBomb } } FILTER { name = evaToolsAttachers CHECK { type = moduleName value = ModuleKISItemAttachTool } } FILTER { name = evaToolsPropellant CHECK { type = moduleName value = ModuleKISItemEvaPropellant } } FILTER { name = KISInventories CHECK { type = moduleName value = ModuleKISInventory } } SUBCATEGORY { name = Fun Parts icon = R&D_node_icon_start FILTER { name = funFilter CHECK { type = folder value = KISFunParts } } } SUBCATEGORY { name = EVA tools icon = R&D_node_icon_precisionengineering FILTER { name = evaToolsBomb CHECK { type = moduleName value = ModuleKISItemBomb } } FILTER { name = evaToolsAttachers CHECK { type = moduleName value = ModuleKISItemAttachTool } } FILTER { name = evaToolsPropellant CHECK { type = moduleName value = ModuleKISItemEvaPropellant } } } SUBCATEGORY { name = Containers icon = R&D_node_icon_composites FILTER { name = KISInventories CHECK { type = moduleName value = ModuleKISInventory } } }}CATEGORY Edited July 5, 2015 by Tahvohck Noticed a thing Link to comment Share on other sites More sharing options...
SSMI Posted July 6, 2015 Share Posted July 6, 2015 So I am having a little trouble sorting fuel tanks that have interstellar fuel switch on them. Is there a way to sort these by available fuel type?I was doing a Category=FuelTank and Resource=XXXX for a couple different subcategories. My plan is break tanks into Lf/O, Lf, any H2 and others (such as Argon and Xenon).Thanks for the help. Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 6, 2015 Author Share Posted July 6, 2015 At this stage, no, you can't interrogate non-stock modules for internal values. Link to comment Share on other sites More sharing options...
SSMI Posted July 6, 2015 Share Posted July 6, 2015 Thats a shame. I wanted to separate tanks by resource. One more question mod related. Both infernal robotics and kis add subcategories to filter by function. Is there a way to remove those?I am already usingname = Filter by Function type = stockvalue = replacewith a set of sub categories. Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 6, 2015 Author Share Posted July 6, 2015 Just add the names of them to a node like this one: https://github.com/Crzyrndm/FilterExtension/blob/master/GameData/000_FilterExtensions%20Configs/Default/NamesAndIcons.cfg#L27 Link to comment Share on other sites More sharing options...
SSMI Posted July 7, 2015 Share Posted July 7, 2015 Hmmm. That didn't really work for me. The two subcategories I am trying to hide are "Robotic Parts" from Infernal Robotics and its Rework and then EVA Items from KIS. I am also having a hard time getting all the parts in these categories to show up elsewhere.I should just be able to add remove = Robotic Parts and then the same for EVA Items right? Link to comment Share on other sites More sharing options...
DaniDE Posted July 9, 2015 Share Posted July 9, 2015 (edited) Hi there, has anyone done ready-to-use filter configs for Necrobones awesome mods, namely SpaceY Heavy Lifters and Fuel Tanks Plus ? And maybe (I know, I know, I´m hoping too much probably here) a config to add a cargo/service bay category so you dont have to browse the full aero categories? (Or maybe call it "shielding" or "protection" and put fairings, heat shields and the aforementioned cargo/service bays in there?)If so, please share or just pm me if you want it to be super secret and exclusive Many thanks Edited July 9, 2015 by DaniDE Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 9, 2015 Author Share Posted July 9, 2015 Cargobay subcategory is already defined and used in the aero category. You can add it to Filter by Function with@CATEGORY[Filter?by?Function]{@SUBCATEGORIES{list = Cargo Bay}}Configs for Necrobones work in what way? A category of their own?CATEGORY{ name = <A Name To use> icon = <insert Icon Name> colour = #FFF0F0F0 all = true FILTER { CHECK { type = folder value = SpaceY, FuelTanksPlus,... } } SUBCATEGORIES { list = 0,Pods list = 1,Fuel Tanks list = 2,Engines list = 3,Command and Control list = 4,Structural list = 5,Aerodynamics list = 6,Utility list = 7,Science }} Link to comment Share on other sites More sharing options...
DaniDE Posted July 9, 2015 Share Posted July 9, 2015 (edited) Well that was quick. Yeah, especially SpaceY has gotten so enormous that it needs its own category IMHO. Thanks, I´ll put those in my configs Edit: Actually, including SpaceY category was really enough. Thank you Necrobones for providing icons earlier in the thread Edited July 9, 2015 by DaniDE Link to comment Share on other sites More sharing options...
Felbourn Posted July 11, 2015 Share Posted July 11, 2015 I tried to create a Tantares filter.{ name = Tantares icon = Cygnus colour = #FFF0F0F0 all = true FILTER { CHECK { type = folder value = Tantares } } SUBCATEGORIES { list = 0,Pods list = 1,Fuel Tanks list = 2,Engines list = 3,Command and Control list = 4,Structural list = 5,Aerodynamics list = 6,Utility list = 7,Science list = 8,ATV list = 9,Cygnus list = 10,Fobos list = 11,Fuji list = 12,Gemini list = 13,LK list = 14,Misc list = 15,Progress list = 16,Salyut list = 17,Shared list = 18,Soyuz list = 19,TKS list = 20,Venera list = 21,Vostok }}SUBCATEGORY{ name = ATV icon = Tant_ATV FILTER { CHECK { type = folder value = Tantares/Parts/ATV } }}SUBCATEGORY{ name = Cygnus icon = Cygnus FILTER { CHECK { type = folder value = Tantares/Parts/Cygnus } }}SUBCATEGORY{ name = Fobos icon = Tant_Fobos FILTER { CHECK { type = folder value = Tantares/Parts/Fobos } }}SUBCATEGORY{ name = Fuji icon = Tant_Fuji FILTER { CHECK { type = folder value = Tantares/Parts/Fuji } }}SUBCATEGORY{ name = Gemini icon = Tant_Gemini FILTER { CHECK { type = folder value = Tantares/Parts/Gemini } }}SUBCATEGORY{ name = LK icon = Tant_LK FILTER { CHECK { type = folder value = Tantares/Parts/LK } }}SUBCATEGORY{ name = Misc icon = Tant_Misc FILTER { CHECK { type = folder value = Tantares/Parts/Misc } }}SUBCATEGORY{ name = Progress icon = Tant_Progress FILTER { CHECK { type = folder value = Tantares/Parts/Progress } }}SUBCATEGORY{ name = Salyut icon = Tant_Salyut FILTER { CHECK { type = folder value = Tantares/Parts/Salyut } }}SUBCATEGORY{ name = Shared icon = Tant_Shared FILTER { CHECK { type = folder value = Tantares/Parts/Shared } }}SUBCATEGORY{ name = Soyuz icon = Tant_Soyuz FILTER { CHECK { type = folder value = Tantares/Parts/Soyuz } }}SUBCATEGORY{ name = TKS icon = Tant_TKS FILTER { CHECK { type = folder value = Tantares/Parts/TKS } }}SUBCATEGORY{ name = Venera icon = Tant_Venera FILTER { CHECK { type = folder value = Tantares/Parts/Venera } }}SUBCATEGORY{ name = Vostok icon = Tant_Vostok FILTER { CHECK { type = folder value = Tantares/Parts/Vostok } }}CATEGORY:NEEDS[Tantares]The main category shows up, but the only subcategory that appears (other than #0 to #7 which of course show up) is #14 "Misc" and that one contains parts that are not in the Misc folder. Is it supposed to be possible to create folder filters that are deeper than the root directory? Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 11, 2015 Author Share Posted July 11, 2015 (edited) you want "path", not "folder" type checks (and add an '/' to each value to signify a complete folder name IIRC). Folder is root directory only, path is full depth. Misc will have extra parts if you have the stock rework folder because it has the same name as one I've defined and the collision mechanic is to make both sets of parts visible Edited July 11, 2015 by Crzyrndm Link to comment Share on other sites More sharing options...
Felbourn Posted July 12, 2015 Share Posted July 12, 2015 you want "path", not "folder" type checks (and add an '/' to each value to signify a complete folder name IIRC). Folder is root directory only, path is full depth. Misc will have extra parts if you have the stock rework folder because it has the same name as one I've defined and the collision mechanic is to make both sets of parts visibleDerp! Fantastic! Thanks. Fixing now... Link to comment Share on other sites More sharing options...
Tarheel1999 Posted July 12, 2015 Share Posted July 12, 2015 you want "path", not "folder" type checks (and add an '/' to each value to signify a complete folder name IIRC). Folder is root directory only, path is full depth. Misc will have extra parts if you have the stock rework folder because it has the same name as one I've defined and the collision mechanic is to make both sets of parts visibleAll of the KIS/KAS parts are not showing up for me when I click the "KAS" button. The items that are missing can only be found under "EVA items" (screwdriver, wrench, etc.). Would changing the "type=folder" to "type=path" in Mod_KAS-KIS.cfg fix this? Or is there something else going on here? Link to comment Share on other sites More sharing options...
Pronoes Posted July 12, 2015 Share Posted July 12, 2015 Is it possible to filter a category then invert a subcategory contrary to what the category filter is?ExampleCategory - Filter by functionfilter check title=non ro invert = trueSubcategory - non rofilter check title=non ro Link to comment Share on other sites More sharing options...
SSMI Posted July 12, 2015 Share Posted July 12, 2015 Is it possible to filter a category then invert a subcategory contrary to what the category filter is?ExampleCategory - Filter by functionfilter check title=non ro invert = trueSubcategory - non rofilter check title=non rofilter{ check { type = category value } check { type = subcategory value invert = true }}Something similar to the above should work for you. Parts have to match all checks within the same filter. They only have to match any one filter if there are multiple filters. Programming wise it works with multiple filters have ORs between them. Multiple checks have ANDs between them. Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 12, 2015 Author Share Posted July 12, 2015 (edited) Or is there something else going on here?That sounds very fishy, and shouldn't have anything to do with the check type used. IIRC, the parts you say are missing are the ones set as "category = none" which shouldn't be an issue but I'll have to give it a sharp poke...Update: This will be fixed for 2.3.1Is it possible to filter a category then invert a subcategory contrary to what the category filter is?If you have a template added to the category, there is currently no way to exclude a subcategory from receiving that template. I'll make a note to add that option- - - Updated - - -Version 2.3.1Fixed: Parts with "category = none" receiving incomplete filtering data Edited July 12, 2015 by Crzyrndm Link to comment Share on other sites More sharing options...
Pronoes Posted July 12, 2015 Share Posted July 12, 2015 If you have a template added to the category, there is currently no way to exclude a subcategory from receiving that template. I'll make a note to add that optionBrilliant. I excluded all non RO parts from the Filter by Function category, then realised I couldn't access them at all, even with a sub category dedicated to non RO parts, because the category filter filtered them first. I thought it would be easier to do it like that, rather than add a non RO exclusion filter to every sub category (especially since I don't know where some of the sub category configs are from some mods - not experienced enough tbh).I worked around it by adding a new category for non RO stuff. The option to exclude a sub category probably won't get used that much, but for the people who would use it, I feel it would be very useful so Kudos to you! Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 12, 2015 Author Share Posted July 12, 2015 especially since I don't know where some of the sub category configs are from some mods - not experienced enough tbhIf you're referring to ones like the subcategories added by realchutes, IR, KAS/KIS, Hangar, etc., You can't find them because they are hard coded additions by those mod makers. FE can't actually do anything to them Link to comment Share on other sites More sharing options...
Gaalidas Posted July 13, 2015 Share Posted July 13, 2015 Hey, quick question. Can a mod category reference a pair of icons that are located in a different location than the ones shipped with the mod? If not, would it be possible to add a field where I could tell it what base path to use when searching for the icon name in my mod category config? Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 13, 2015 Author Share Posted July 13, 2015 Any location that KSP loads automatically is valid. The only restriction is the sizing (between 25 and 40 px) Link to comment Share on other sites More sharing options...
NotTim Posted July 14, 2015 Share Posted July 14, 2015 Please forgive the possibly stupid question, but with the default config setup I there doesn't seem to be a main category for fuel tanks. This seems to be a pretty important gap.Looking at the config files I see 01_Kerbonauts.cfg, 02_Engines.cfg and then 04_Structural.cfg. Is there a missing 03_Fuel.cfg? Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 14, 2015 Author Share Posted July 14, 2015 The stock resources category covers the different fuel tanks (with some modifications to the subcategories) Link to comment Share on other sites More sharing options...
Gaalidas Posted July 14, 2015 Share Posted July 14, 2015 Any location that KSP loads automatically is valid. The only restriction is the sizing (between 25 and 40 px)So, can I simply reference the icon by name, or do I need to provide a gamedata-relative path to the icon to use? Normally I would simply ship with the folder structure for this mod in the archive containing just the added icons and the config, but this isn't my mod, at least not fully. I contribute heavily to Kerbal Foundries and I'd like to provide a category config with our next release, but convincing lo-fi to reorganize how his archive is structured is easier said than done, so I'm looking to simply stick a config for this mod into the same folder where we have our part configs, and reference the icon (and it's associated "selected" icon) in our Assets folder. Link to comment Share on other sites More sharing options...
Crzyrndm Posted July 14, 2015 Author Share Posted July 14, 2015 Just the icon name. So long as it's a unique name and not inside a special folder like PluginData, it should be found without issue (just don't use DDS format and don't use a generic file name like "icon") Link to comment Share on other sites More sharing options...
Recommended Posts