tl;dr: Bug fixes for Stopper's ClothingPluginManager, the clothing.namedefault.clothingplugins files will now reliably load on clothing activation.
Use this exactly like you would ClothingPluginManager, but hopefully with 100% fewer bugs.
Let me know if you encounter any issues.
An update to Stopper's ClothingPluginManager to address two bugs:
This update fixes an issue where saved default plugin settings (.clothingplugins files) were not loading automatically when a clothing item was activated, forcing users to manually load the preset file every time. The cause was that the code responsible for finding and applying the default file only ran during a narrow edge case (and during scene loads), never during normal activation. Fixing that revealed a second, hidden issue: because a preset file contains a reference to the plugin manager itself, automatically loading it caused the manager to endlessly reload itself and every attached plugin, freezing the application. The updated version resolves both problems: defaults now load automatically on activation, and a safeguard checks whether the required plugins are already loaded before reloading anything, which both prevents the loop and makes repeat activations faster. Saved scene settings still take priority over defaults, so existing scenes behave as before.
Code Comparison: https://www.diffchecker.com/SLoT1dlB/
This update fixes an issue where saved default plugin settings (.clothingplugins files) were not loading automatically when a clothing item was activated, forcing users to manually load the preset file every time. The cause was that the code responsible for finding and applying the default file only ran during a narrow edge case (and during scene loads), never during normal activation. Fixing that revealed a second, hidden issue: because a preset file contains a reference to the plugin manager itself, automatically loading it caused the manager to endlessly reload itself and every attached plugin, freezing the application. The updated version resolves both problems: defaults now load automatically on activation, and a safeguard checks whether the required plugins are already loaded before reloading anything, which both prevents the loop and makes repeat activations faster. Saved scene settings still take priority over defaults, so existing scenes behave as before.
Code Comparison: https://www.diffchecker.com/SLoT1dlB/
All credit here goes to Stopper, the absolute legend who changed the game with ClothingPluginManager.