Jump to content

Zwa

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Zwa

  1. The toggle action on aero control surfaces (ie. 'Elevon 1') doesn't seem to work with AGX. Extend/Retract actions work as would be expected however toggle just doesn't seem to do anything. I've also tried enabling the AGX toggle option but while the action group changes color when clicked it still doesn't affect the part's state. The toggle action works correctly when removing AGX and using stock action groups.
  2. I tried having a look at the code myself and I think I narrowed the issue down to this block of code in PartExtensions.cs /// <summary> /// Gets the cost of the part excluding resources. /// </summary> public static double GetCostDry(this Part part) { return part.partInfo.cost - GetResourceCostMax(part) + part.GetModuleCosts(); } /// <summary> /// Gets the cost of the part including maximum resources. /// </summary> public static double GetCostMax(this Part part) { return part.partInfo.cost + part.GetModuleCosts(); } /// <summary> /// Gets the cost of the part including resources. /// </summary> public static double GetCostWet(this Part part) { return part.partInfo.cost - GetResourceCostInverted(part) + part.GetModuleCosts(); } Specifically the call to part.GetModuleCosts() seems to be triggering the bug. Removing that call fixes the issue with the sizing but breaks the cost calculations for parts that have their size changed with TweakScale. So it seems you were right that it was the KSP API doing something weird. The name toggle seems to fix the bug because these functions are called when generating the tooltip, which presumably isn't done when name only is selected. Interestingly the call GetCostWet() in PartSim doesn't cause the problem, nor does turning names only off and generating the tooltip after the part is spawned. It may be possible just to avoid calling this function at part creation. Anyway hopefully you see this before you get to stuck into it and I've saved you some time.
  3. Complete log from my minimal mod replication. https://drive.google.com/file/d/0B9Xltv6-yXY_Ty1laGVfUVlrUm8/edit?usp=sharing Added and removed some KW Rocketry fuel tanks a few times with both names on and off before quitting.
  4. I'm also experiencing the incorrect size bug. However for me it seems to happen on the KW Rocketry parts rather than the stock ones. It seems to be some sort of conflict with TweakScale. I've managed to replicate it with this minimal mod install KSP 0.24.2 32-bit KWRocketry 2.6c (even removing this the stock parts still seem fine, maybe some sort of ordering issue is in effect) TweakScale 1.43 ModuleManager 2.3.5 Kerbal Engineer 1.0.9 Removing any of these, or going back to engineer 1.0.8.1 removes the problem. Also as the other post mentioned enabling names only removes the issue.
×
×
  • Create New...