Jump to content

[0.90] Magic Smoke Industries Infernal Robotics - 0.19.3


sirkut

Recommended Posts

Lately, when I've tried adding IR parts to crafts, I get the green highlight and when I click, I hear the part attached sound. But instead of actually attaching, the part rotates 90 degrees and stays where my mouse cursor is. If I try to attach again, the game crashes.

Here's a log snip:


[LOG 23:26:12.671] IR.Extendatron.Stackable(Clone) added to ship - part count: 5
[LOG 23:26:12.673] stage count is: 2
[LOG 23:26:12.674] Removing undo list (5, 5)
[EXC 23:26:12.679] ArgumentException: An element with the same key already exists in the dictionary.
[LOG 23:26:12.690] [IR GUI] Loading: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries\Plugins/../Textures/icon_drag.png
[LOG 23:26:12.691] [IR GUI] Loading: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries\Plugins/../Textures/icon_dragHandle.png
[LOG 23:26:12.692] [IR GUI] Loading: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries\Plugins/../Textures/icon_dragInsert.png
[LOG 23:26:12.693] [IR GUI] Loading: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries\Plugins/../Textures/icon_background.png
[LOG 23:26:14.454] deleting part IR.Extendatron.Stackable(Clone)
[EXC 23:26:14.467] NullReferenceException
[EXC 23:26:14.471] NullReferenceException
[EXC 23:26:14.473] NullReferenceException
[EXC 23:26:14.483] NullReferenceException
[EXC 23:26:14.488] NullReferenceException
[EXC 23:26:14.490] NullReferenceException
[EXC 23:26:14.500] NullReferenceException
[EXC 23:26:14.504] NullReferenceException
[EXC 23:26:14.506] NullReferenceException
[EXC 23:26:14.517] NullReferenceException
[EXC 23:26:14.521] NullReferenceException
[EXC 23:26:14.523] NullReferenceException
[EXC 23:26:14.533] NullReferenceException
[EXC 23:26:14.538] NullReferenceException

Link to comment
Share on other sites

Lately, when I've tried adding IR parts to crafts, I get the green highlight and when I click, I hear the part attached sound. But instead of actually attaching, the part rotates 90 degrees and stays where my mouse cursor is. If I try to attach again, the game crashes.

Here's a log snip:


[LOG 23:26:12.671] IR.Extendatron.Stackable(Clone) added to ship - part count: 5
[LOG 23:26:12.673] stage count is: 2
[LOG 23:26:12.674] Removing undo list (5, 5)
[EXC 23:26:12.679] ArgumentException: An element with the same key already exists in the dictionary.
[LOG 23:26:12.690] [IR GUI] Loading: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries\Plugins/../Textures/icon_drag.png
[LOG 23:26:12.691] [IR GUI] Loading: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries\Plugins/../Textures/icon_dragHandle.png
[LOG 23:26:12.692] [IR GUI] Loading: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries\Plugins/../Textures/icon_dragInsert.png
[LOG 23:26:12.693] [IR GUI] Loading: C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries\Plugins/../Textures/icon_background.png
[LOG 23:26:14.454] deleting part IR.Extendatron.Stackable(Clone)
[EXC 23:26:14.467] NullReferenceException
[EXC 23:26:14.471] NullReferenceException
[EXC 23:26:14.473] NullReferenceException
[EXC 23:26:14.483] NullReferenceException
[EXC 23:26:14.488] NullReferenceException
[EXC 23:26:14.490] NullReferenceException
[EXC 23:26:14.500] NullReferenceException
[EXC 23:26:14.504] NullReferenceException
[EXC 23:26:14.506] NullReferenceException
[EXC 23:26:14.517] NullReferenceException
[EXC 23:26:14.521] NullReferenceException
[EXC 23:26:14.523] NullReferenceException
[EXC 23:26:14.533] NullReferenceException
[EXC 23:26:14.538] NullReferenceException

I'm going to need to see the complete output_log.txt file.

Link to comment
Share on other sites

sporkmonger,

What sirkut said. That looks like a KSP.log snip, but you can find the output log by reading this post in the Support (modded installs) forum.

Also, thanks for moving your post to this thread. :)

Ironically, upon further testing, the bug only seems to happen in the presence of the Rework parts. The original parts when installed alone by themselves don't seem to (initially) exhibit the issue. Once you've attempted to add a Rework part the problem manifests in both. I think this is because the initial bug may be breaking the GUI. Mouse-hovering over the GUI after the bug is triggered causes weird GUI flashing.

Also, if you try to add the part and instead of trying to attach a second time (causing a crash) you discard the part, the game stops being able to scene change.

Here's the bit from the output log:



stage count is: 2

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

deleting part TelescopeFullAScaleable(Clone)

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

ArgumentException: An element with the same key already exists in the dictionary.
at System.Collections.Generic.Dictionary`2[System.String,TweakScale.ScaleExponents].Add (System.String key, TweakScale.ScaleExponents value) [0x00000] in <filename unknown>:0

at System.Linq.Enumerable.ToDictionary[ScaleExponents,String,ScaleExponents] (IEnumerable`1 source, System.Func`2 keySelector, System.Func`2 elementSelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0

at System.Linq.Enumerable.ToDictionary[ScaleExponents,String] (IEnumerable`1 source, System.Func`2 keySelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0

at System.Linq.Enumerable.ToDictionary[ScaleExponents,String] (IEnumerable`1 source, System.Func`2 keySelector) [0x00000] in <filename unknown>:0

at TweakScale.ScaleExponents.CreateExponentsForModule (.ConfigNode node, System.Collections.Generic.Dictionary`2 parent) [0x00000] in <filename unknown>:0

at TweakScale.ScaleConfig..ctor (.ConfigNode config) [0x00000] in <filename unknown>:0

at TweakScale.TweakScale.Setup () [0x00000] in <filename unknown>:0

at TweakScale.TweakScale.OnStart (StartState state) [0x00000] in <filename unknown>:0

at Part.ModulesOnStart () [0x00000] in <filename unknown>:0

at Part+.MoveNext () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

Joint Pivotron - Basic (90 degrees): Choosing up axis for FAR drag model.

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

Part: Joint Pivotron - Basic (90 degrees) Transforms: 3

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

Joint Pivotron - Basic (90 degrees): Geometry model created; Size: [0.600000023841858, 0.780000030994415, 0.500000059604645], LD [0.5, 0.5, 0], UD [0.519999980926514, 0.5, 0]

Surface area: 1.23747338373717

Fineness Ratio: 1.41818176695138

TaperRatio: 1.01999998092651

Cross Sectional Area: 0.235619486469938

Cross Sectional Tapered Area: 0.00793251381037092

Major-minor axis ratio: 1.19999990463258

Centroid: [0, 0.00259915157638552, 0]

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

Joint Pivotron - Basic (90 degrees): Choosing up axis for FAR drag model.

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

Part: Joint Pivotron - Basic (90 degrees) Transforms: 3

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

IR.Pivotron.Basic(Clone) added to ship - part count: 6

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

stage count is: 2

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

ArgumentException: An element with the same key already exists in the dictionary.
at System.Collections.Generic.Dictionary`2[System.String,TweakScale.ScaleExponents].Add (System.String key, TweakScale.ScaleExponents value) [0x00000] in <filename unknown>:0

at System.Linq.Enumerable.ToDictionary[ScaleExponents,String,ScaleExponents] (IEnumerable`1 source, System.Func`2 keySelector, System.Func`2 elementSelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0

at System.Linq.Enumerable.ToDictionary[ScaleExponents,String] (IEnumerable`1 source, System.Func`2 keySelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0

at System.Linq.Enumerable.ToDictionary[ScaleExponents,String] (IEnumerable`1 source, System.Func`2 keySelector) [0x00000] in <filename unknown>:0

at TweakScale.ScaleExponents.CreateExponentsForModule (.ConfigNode node, System.Collections.Generic.Dictionary`2 parent) [0x00000] in <filename unknown>:0

at TweakScale.ScaleConfig..ctor (.ConfigNode config) [0x00000] in <filename unknown>:0

at TweakScale.TweakScale.Setup () [0x00000] in <filename unknown>:0

at TweakScale.TweakScale.GetModuleCost () [0x00000] in <filename unknown>:0

at Part.GetModuleCosts () [0x00000] in <filename unknown>:0

at ShipConstruct.SaveShip () [0x00000] in <filename unknown>:0

at ShipConstruction.CreateBackup (.ShipConstruct ship) [0x00000] in <filename unknown>:0

at EditorLogic.SetBackup () [0x00000] in <filename unknown>:0

at EditorLogic.UpdatePartMode () [0x00000] in <filename unknown>:0

at EditorLogic.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

[IR GUI] AddingLock-IRGUILockOfEditor

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

[IR GUI] Removing-IRGUILockOfEditor

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

deleting part IR.Pivotron.Basic(Clone)

The 5000 NullReferenceExceptions seem to be coming from Ferram, so it might be that Ferram has to be installed for the problem to manifest this way? Not sure, just a guess.

Here's the Ferram exceptions that co-occur:


(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

NullReferenceException
at (wrapper managed-to-native) UnityEngine.Transform:INTERNAL_CALL_TransformDirection (UnityEngine.Transform,UnityEngine.Vector3&)

at UnityEngine.Transform.TransformDirection (Vector3 direction) [0x00000] in <filename unknown>:0

at ferram4.FARBasicDragModel.AttachNodeCdAdjust () [0x00000] in <filename unknown>:0

at (wrapper delegate-invoke) Callback:invoke_void__this__ ()

at ferram4.FARPartModule.ForceOnVesselPartsChange () [0x00000] in <filename unknown>:0

at ferram4.FARGlobalControlEditorObject.LateUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component:GetComponent (System.Type)

at UnityEngine.Component.GetComponent[FARWingAerodynamicModel] () [0x00000] in <filename unknown>:0

at ferram4.FAREditorGUI.Update () [0x00000] in <filename unknown>:0

at ferram4.FAREditorGUI.OnGUI () [0x00000] in <filename unknown>:0

at (wrapper delegate-invoke) Callback:invoke_void__this__ ()

at RenderingManager.OnGUI () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

Edit: Just dropped Ferram and retested. Problem still occurs.

With Ferram gone, this happens instead:



(Filename: Line: 404)

NullReferenceException
at (wrapper managed-to-native) UnityEngine.Transform:Find (string)

at UnityEngine.Transform.FindChild (System.String name) [0x00000] in <filename unknown>:0

at Part.FindModelComponents[Renderer] () [0x00000] in <filename unknown>:0

at Part.highlight (Color highlightColor) [0x00000] in <filename unknown>:0

at Part.SetHighlight (Boolean active) [0x00000] in <filename unknown>:0

at MuMech.MuMechGUI.EditorWindow (Int32 windowID) [0x00000] in <filename unknown>:0

at UnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID) [0x00000] in <filename unknown>:0

at UnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style) [0x00000] in <filename unknown>:0

(Filename: Line: -1)

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)

Edited by Sporkmonger
Link to comment
Share on other sites

Still need the full output log. Interesting that it only happens after adding the Rework parts – they're just parts, so they shouldn't affect anything that way. Try deleting and reinstalling. Make sure you merge the Rework parts with the default parts.

Link to comment
Share on other sites

Sorry I haven't been paying too much attention to this thread. I do answer sporadically but there is a reason:

It's all resolved EXCEPT for storing subassemblies that have parts that have been moved. I consider this minor so I am looking to releasing it tonight sometime. I just need to tidy the code up and send it to a few people to test. Master Tao, expect a PM in a few hours.

Link to comment
Share on other sites

Sweet. Really looking forward to the new release.

Been looking into the problem I've been having on my own. Two things I see:

First, the rework parts have a WEAKSCALEEXPONENTS block and not a TWEAKSCALEEXPONENTS block. Not sure if that's a typo, but sure looks like it. However, "fixing" the typo does not actually resolve the bug. Same behavior as before. But commenting out the entire TweakScale block does fix the bug. So it's definitely TweakScale related. I'll keep digging and see if I can pinpoint what's going on.

e.g.: This works.


// --- TweakScale Parameters ---
//MODULE
//{
// name = TweakScale
// type = Rework_Standard
//
// TWEAKSCALEEXPONENTS
// {
// mass = 0.025, 0.05, 0.1
// }
//}

Link to comment
Share on other sites

Figured it out.

Apparently I still had a stray copy of InfernalRoboticsRework_0_24_Fix.cfg left sitting around and that was what was breaking things.

Wonderful news!

btw Subassemblies work. Sent the prerelease to a few people to test.

Link to comment
Share on other sites

Figured it out.

Apparently I still had a stray copy of InfernalRoboticsRework_0_24_Fix.cfg left sitting around and that was what was breaking things.

Oops. Sorry. :rolleyes:

Thanks for tracking it down. I'll make a note of that over in the Rework thread and make it clear that the fix is not just no longer supported, but actually breaks IR now.

Link to comment
Share on other sites

Subassemblies work. Sent the prerelease to a few people to test.

http://youtu.be/258qE9LKEOk

Wow! I never even considered sub assemblies as being a possibility!

First, the rework parts have a WEAKSCALEEXPONENTS block and not a TWEAKSCALEEXPONENTS block. Not sure if that's a typo, but sure looks like it.

:blush: Now fixed in the latest release. Haven't bothered with a new version number since it's such a minor thing.

Link to comment
Share on other sites

Wow! I never even considered sub assemblies as being a possibility!

:blush: Now fixed in the latest release. Haven't bothered with a new version number since it's such a minor thing.

Chalk the Subassembly bit up to a user mentioning it on irc and I had an moment that I realized I didn't even consider it!

Link to comment
Share on other sites

Boom. 0.19 is now released.

Stock Toolbar support. delete the toolbar folder if you don't like using it.

Electrical use is now enabled. Power usage values also scale with tweakscale. If you don't want to use it, edit the config.xml located in: GameData\MagicSmokeIndustries\Plugins\PluginData\InfernalRobotics and change 1 to 0

Lastly ----> You can now move the parts in the VAB/SPH!

Link to comment
Share on other sites

So i had the brilliant idea of using a docking washer as the first part for a vessel, KSP doesn't like that. upon launch the ship is floating without gravity if using KJR, it sits on the ground if not using it, regardless of that the ship has 176.4 m/s surface speed, if you are still curious enough to actually liftoff the ship goes boldly on to where the camera will never go (camera remains on the launchpad), finding that the bloody thing was the culprit involved removing every part one by one and testing the ship over and over....so i'm sure it's the washer.

Link to comment
Share on other sites

So i had the brilliant idea of using a docking washer as the first part for a vessel, KSP doesn't like that. upon launch the ship is floating without gravity if using KJR, it sits on the ground if not using it, regardless of that the ship has 176.4 m/s surface speed, if you are still curious enough to actually liftoff the ship goes boldly on to where the camera will never go (camera remains on the launchpad), finding that the bloody thing was the culprit involved removing every part one by one and testing the ship over and over....so i'm sure it's the washer.

Protip: don't use the docking washer as the first part. always start with a command body. problem solved. :)

Link to comment
Share on other sites

Protip: don't use the docking washer as the first part. always start with a command body. problem solved. :)

yeah, that much i gathered, my point was and forgot to mention: why is it enabled for first part use? :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...