Jump to content

B9PS fatal error concerning Habtech2 and ht robotics


Recommended Posts

I have been having a problem with my modded install where a B9PS fatal error is happening but I can't tell what it is, all I understand is that it is trying to load the modules for an old part that isn't there anymore.

Here are my logs:

Module ModuleB9PartSwitch threw during OnLoad: System.Exception: Fatal exception while loading fields on module ModuleB9PartSwitch on part  ---> System.Exception: Exception while loading field subtypes on type B9PartSwitch.ModuleB9PartSwitch ---> System.Exception: Exception while loading fields on subtype PartSubtype 02 ---> System.Exception: Exception while loading field tankType on type B9PartSwitch.PartSubtype ---> System.Collections.Generic.KeyNotFoundException: No tank type named 'ht2_02' exists
  at B9PartSwitch.B9TankSettings.GetTankType (System.String name) [0x00030] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.TankTypeValueParser.Parse (System.String value) [0x0000b] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.NodeDataMappers.ValueScalarMapper.Load (System.Object& fieldValue, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00022] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.NodeDataField.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00043] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.NodeDataList.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00025] in <a3c2951fc74e4639820ef37d2d29f386>:0 
   --- End of inner exception stack trace ---
  at B9PartSwitch.Fishbones.NodeDataList.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00058] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.NodeDataObjectExtensions.LoadFields (System.Object obj, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00033] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.PartSubtype.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00000] in <a3c2951fc74e4639820ef37d2d29f386>:0 
   --- End of inner exception stack trace ---
  at B9PartSwitch.PartSubtype.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x0001d] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.Parsers.NodeObjectWrapperIContextualNode.Load (System.Object& obj, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00038] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.NodeDataMappers.NodeListMapper.Load (System.Object& fieldValue, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x0009e] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.NodeDataField.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00043] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.NodeDataList.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00025] in <a3c2951fc74e4639820ef37d2d29f386>:0 
   --- End of inner exception stack trace ---
  at B9PartSwitch.Fishbones.NodeDataList.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00058] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.Fishbones.NodeDataObjectExtensions.LoadFields (System.Object obj, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00033] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at B9PartSwitch.CustomPartModule.OnLoad (ConfigNode node) [0x000ea] in <a3c2951fc74e4639820ef37d2d29f386>:0 
   --- End of inner exception stack trace ---
  at B9PartSwitch.CustomPartModule.OnLoad (ConfigNode node) [0x0010f] in <a3c2951fc74e4639820ef37d2d29f386>:0 
  at PartModule.Load (ConfigNode node) [0x001ab] in <4b449f2841f84227adfaad3149c8fdba>:0  
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

 

Edited by Startpanikin1
Link to comment
Share on other sites

Search results suggest that HabTech2 is the mod that should include the ht2_02 tank type.
Did you install it manually or through CKAN? Do you have any other mods that would change tank types (Kerbalism, Cryo tanks)?

A full log file might help.

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Same problem, Nalincah's solution worked for me!  To summarize for future readers:

Problem:  B9 Part Switch throws fatal error on launch, saying something about "ht2_02: part does not exist"

Cause:  When using Habtech2 and Kerbalism together, a line in the Kerbalism config can cause B9 to attempt to load a nonexistant Habtech part.

Solution:  Go to your Kerbalism config folder, find the file HabTech2.cfg; look for the line starting with "-B9_TANK_TYPE[ht2_02]:..." (for us, using the default config setup, it was line 1790) and comment out this line by putting // at the beginning.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...