Jump to content

SSPXr and B9 Part Switch conflicting


Recommended Posts

Lately, there have been problems with SSPXr and B9 Part Switch. It works fine without any of the mods listed below installed, but with any of them B9 will say "Fatal Error: SSPXExoticMinerals is not a valid tank type" after the game registers the parts from SSPXr. I have gone into the resource files and SSPXExoticMinerals is a listed tank type.

Mods that trigger this when installed:

Community Resource Pack

Ground Construction / MKS

CivillianPopulationModernized

Link to comment
Share on other sites

This will need some more information, especially your log file and probably the MM configcache:

 

So far, I can only narrow it down a bit: the tank type is added by SSPX but only if the Community Resource Pack (CRP) is installed as well:

[snip]

B9_TANK_TYPE:NEEDS[CommunityResourcePack]
{
	name = SSPXExoticMinerals
	tankMass = 0.0000
	tankCost = 0.0
	RESOURCE
	{
		name = ExoticMinerals
		unitsPerVolume = 1
	}
}

[snip]

Since MKS and civilian population both depend on the CRP, this is not an issue with these mods but their shared dependency.

Though, I wasn't able to replicate the issue, so this is most likely not a general issue and therefore, like I already said, we'll need at least your log file :)

Link to comment
Share on other sites

Here is the part of the log where the error happened:

[ERR 07:56:18.687] 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 ExoticMinerals ---> System.Exception: Exception while loading field tankType on type B9PartSwitch.PartSubtype ---> System.Collections.Generic.KeyNotFoundException: No tank type named 'SSPXExoticMinerals' exists
  at B9PartSwitch.B9TankSettings.GetTankType (System.String name) [0x00030] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.TankTypeValueParser.Parse (System.String value) [0x0000b] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.NodeDataMappers.ValueScalarMapper.Load (System.Object& fieldValue, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00022] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.NodeDataField.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00043] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.NodeDataList.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00025] in <b85eabe067044bcb9aeabe863954a5ce>:0 
   --- End of inner exception stack trace ---
  at B9PartSwitch.Fishbones.NodeDataList.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00058] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.NodeDataObjectExtensions.LoadFields (System.Object obj, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00033] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.PartSubtype.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00000] in <b85eabe067044bcb9aeabe863954a5ce>:0 
   --- End of inner exception stack trace ---
  at B9PartSwitch.PartSubtype.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x0001d] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.Parsers.NodeObjectWrapperIContextualNode.Load (System.Object& obj, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00038] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.NodeDataMappers.NodeListMapper.Load (System.Object& fieldValue, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x0009e] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.NodeDataField.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00043] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.NodeDataList.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00025] in <b85eabe067044bcb9aeabe863954a5ce>:0 
   --- End of inner exception stack trace ---
  at B9PartSwitch.Fishbones.NodeDataList.Load (ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00058] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.Fishbones.NodeDataObjectExtensions.LoadFields (System.Object obj, ConfigNode node, B9PartSwitch.Fishbones.Context.OperationContext context) [0x00033] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at B9PartSwitch.CustomPartModule.OnLoad (ConfigNode node) [0x000ea] in <b85eabe067044bcb9aeabe863954a5ce>:0 
   --- End of inner exception stack trace ---
  at B9PartSwitch.CustomPartModule.OnLoad (ConfigNode node) [0x0010f] in <b85eabe067044bcb9aeabe863954a5ce>:0 
  at PartModule.Load (ConfigNode node) [0x001ab] in <2afc64dea36946459d4707808bdac511>:0 

Link to comment
Share on other sites

Please upload (don't copy&paste it) the whole log, not just the error message :)  You can use dropbox, one drive, google drive or something like that.

While lines like this from the error messages give away that the tank type somehow doesn't exist in your game:

System.Collections.Generic.KeyNotFoundException: No tank type named 'SSPXExoticMinerals' exists

it doesn't tell anything about the reason for it.

Maybe you made a mistake when you installed the mod(s), maybe a MM patch is not applied properly or overwritten by another patch, maybe this is indeed a bug in the mod but it only happens during a specific scenario. There is a lot more to look for in a log file then just the error message ;)

Link to comment
Share on other sites

19 hours ago, Opteryx said:

Okay, currently waiting for the log to paste into Google Drive. A possible issue is that the SSPXr Curseforge download is notoriously broken, and I got it from Curseforge.

 

yeah, try to download it from github or spacedock, also use the correct versions of SSPXr and B9 (the latest ones), it should work fine then

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...