Bug #19524
Parts with `category = none` are filtered out of search too aggressively
Status:
New
Severity:
Low
Assignee:
-
Category:
Plugins/Add-Ons
Target version:
-
Start date:
08/14/2018
% Done:
0%
Language:
English (US)
Mod Related:
No
Votes:
Description
Several popular mods add new categories and set `category = none` in part configs to take advantage of these new categories. The `none` category is also used to hide parts, however (asteroids, parts that have been renamed/updated, etc.).
In every instance I could find that a stock/dlc part had `category = none`, the part also had `TechHidden = True` or `TechRequired = Unresearcheable`, so replacing the opening the condition of BasePartCategorizer.PartMatchesSearch with `part.category PartCategories.none && (part.TechHidden || part.TechRequired "Unresearcheable")` would solve the issue quickly and easily.
Another option would be to add a value to the ``PartCategories` enum ("Other", "ModAdded", "Uncategorized", etc.).
History
#1 Updated by marr75 over 5 years ago
- Description updated (diff)