TheUndeadFish
Members-
Posts
36 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by TheUndeadFish
-
[0.20] Subassembly Loader - 0.20 Compatibility Patch
TheUndeadFish replied to TheUndeadFish's topic in KSP1 Mod Releases
I actually only made two little changes to the code: The first was to comment out line 11: //private static PluginConfiguration config = PluginConfiguration.CreateForType<subassemblyLoader>(); A problem happens when the game runs that, as was evident by the errors in the output log. And it was consequently causing the plugin to fail to load, which causes the game to try to reload it over and over, which causes the lag. But since the mod doesn't seem to make use of that configuration file stuff, commenting out the line way a simple was the deal with the issue. The second was to adjust the first number on line 129, which is the x coordinate of where the button is drawn in the VAB: if (GUI.Button(new Rect(350, 1, 48, 36), new GUIContent(button, "Subassembly"), buttonStyle) && !EditorLogic.softLock) -
I didn't find a thread dedicated to the Subassembly Loader mod, so I had to create this one. Using the source code provided along with the mod, I just made a patched version that will work with 0.20. This moves the button to a usable location in the VAB as well as eliminates the lag caused by the plugin not loading properly. I only intend this as a quick-and-dirty fix until the mod's author can release a proper updated version of it. You still need the original files, then override the dll with the one from my path. Download: For the sake of those playing the game at much lower resolutions, I've made a second version of my patch. This one moves the button to the upper right corner, but under the other buttons instead of beside them. It's not as pretty as being on the top bar, but it should be functional. Download: Disclaimer: Use at your own risk, since I'm rather new to KSP modding. A few other people in this thread have made their own patches. So if one of my patches doesn't work for some reason, then you could try one of theirs: