Jump to content

Deadly EVA B9 Part switcher bug


Recommended Posts

Link to logs: https://drive.google.com/drive/folders/1DcPnmDxYbb9xG9BTki_IiXL6GfNCsuQ1?usp=sharing

(You will want to go to the 01/17 - 17/01 for you non Americans -  folder) 

When I try to EVA my crew I get a B9 part switcher warning immediately and my poor kerbal is destroyed along with my aircraft. I also dont switch perspectives and I am still controlling what's left of the craft. I am not even sure if my kerbals are truly "dead" as their portrait is still there but staticy like they had just come back.

I did have a successful EVA earlier in my play through so I will roll back my mods to see if I can tease out what the issue is but I am still new at kerbal crash logs so if one of you gents/gals/persons is free and willing to give it a glace for me I would apricate it.  I tried to make the log playthrough as straightforward as possible and get right to the bug and alt-f4 out when it did its damage. The only other things might be me before hand is recovering my vessel and trying a different one to see if that helped. But that might have been the the previous play through.

 

I will post back here if anything develops. Please let me know if you have any thoughts or suggestions.

Link to comment
Share on other sites

There appears to be a mod that adds ElectricCharge to Kerbals, but not sure what it is.  Here's a patch that should fix the issue with them blowing up.  You will need to open up the file: KiwiTechTree/Configurations/Core/Upgrades/BatteryUpgrades/ElectricCharge_B9Switcher.cfg

If you are comfortable with changing one line, you can go to Line 11 and change it to:

@PART[*]:HAS[@RESOURCE[ElectricCharge]:HAS[#maxAmount[>0]],!MODULE[FSfuelSwitch],!MODULE[KerbalEVA],~batteryUpgrade[off]]:FOR[zzzKiwiTechTree]

or if you aren't, you can copy and replace the whole bit here:

Spoiler

// Kiwi's Tech Tree Overhaul (Electric Charge Patches)
// Version 1.3
// Created: 19 October 2020 for KSP 1.9.1 to 1.10.1
// Last Updated: 18 January 2021
// 22 October 2020: Disables patch if FSfuelSwitch on part due to incompatibility
// 26 October 2020: Changed KiwiAerospace to KiwiTechTree
// 26 October 2020: Tried to fix bug where parts with EC defined resource, but with 0 capacity were getting this upgrade.
// 27 October 2020: Better fix for EC = 0 bug
// 23 November 2020: Allow to globally disable the electric charge battery density upgrade.
// 18 January 2021: Workaround to prevent situation where Kerbal's get this switch.

@PART[*]:HAS[@RESOURCE[ElectricCharge]:HAS[#maxAmount[>0]],!MODULE[FSfuelSwitch],!MODULE[KerbalEVA],~batteryUpgrade[off]]:FOR[zzzKiwiTechTree]
{
	%batCap = #$RESOURCE[ElectricCharge]/maxAmount$
	
	//remove original resources
	!RESOURCE[ElectricCharge] {}
	!MODULE[ModuleB9PartSwitch]:HAS[#moduleID[batterySwitch]] {}

	MODULE
	{
		name = ModuleB9PartSwitch
		moduleID = batterySwitch
		switcherDescription = Energy Density
		switcherDescriptionPlural = Energy Densities // Courtesy of bcink/JadeofMaar and The Martian for KSP
		baseVolume = #$../batCap$
		SUBTYPE
		{
			name = Level0
			title = 50% Density
			descriptionSummary = 50% Baseline Energy Density
			tankType = EC0
			primaryColor = #ffffff
			secondaryColor = #ffffff
			defaultSubtypePriority = 0
			//upgradeRequired = kiwiBatteryTier1Upgrade
		}
		
		SUBTYPE
		{
			name = Level1
			title = 75% Density
			descriptionSummary = 75% Baseline Energy Density
			tankType = EC1
			primaryColor = #bffdbf
			secondaryColor = #bffdbf
			defaultSubtypePriority = 0
			upgradeRequired = kiwiBatteryTier1Upgrade
		}
		
		SUBTYPE
		{
			name = Level2
			title = 100% Density
			descriptionSummary = 100% Baseline Energy Density
			tankType = EC2
			primaryColor = #7ffc7f
			secondaryColor = #7ffc7f
			defaultSubtypePriority = 1
			upgradeRequired = kiwiBatteryTier2Upgrade
		}
		
		SUBTYPE
		{
			name = Level3
			title = 200% Density
			descriptionSummary = 200% Baseline Energy Density
			tankType = EC3
			primaryColor = #3ffb3f
			secondaryColor = #3ffb3f
			defaultSubtypePriority = 0
			upgradeRequired = kiwiBatteryTier3Upgrade
		}
		
		SUBTYPE
		{
			name = Level4
			title = 400% Density
			descriptionSummary = 400% Baseline Energy Density
			tankType = EC4
			primaryColor = #00fa00
			secondaryColor = #00fa00
			defaultSubtypePriority = 0
			upgradeRequired = kiwiBatteryTier4Upgrade
		}
	}
}

// ***** Batteries ***** \\

// Tier 0

// Tier 1 Engineering 101 - engineering101
PARTUPGRADE
{
	type = battery
	name = kiwiBatteryTier1Upgrade
	partIcon = batteryPack
	techRequired = engineering101
	entryCost = 10000
	title = Energy Density Upgrade 1
	manufacturer = Kiwi Imagineers
	description = Batteries have been upgraded so are able to maintain higher energy density.
	basicInfo = 75% Baseline Energy Density
}

// Tier 2 - Science 201 - science201

// Tier 3 - Battery Tech - batteryTech
PARTUPGRADE
{
	type = battery
	name = kiwiBatteryTier2Upgrade
	partIcon = batteryPack
	techRequired = batteryTech
	entryCost = 30000
	title = Energy Density Upgrade 2
	manufacturer = Kiwi Imagineers
	description = Batteries have been upgraded so are able to maintain higher energy density.
	basicInfo = 100% Baseline Energy Density
}

// Tier 4 - Electrics - batteryTech

// Tier 5 - Advanced Electrics - advElectrics

// Tier 6 - High-Power Electrics // largeElectrics
PARTUPGRADE
{
	type = battery
	name = kiwiBatteryTier3Upgrade
	partIcon = batteryPack
	techRequired = largeElectrics
	entryCost = 90000
	title = Energy Density Upgrade 3
	manufacturer = Kiwi Imagineers
	description = Batteries have been upgraded so are able to maintain higher energy density.
	basicInfo = 200% Baseline Energy Density
}

// Tier 7 - Specialized Electrics - specializedElectrics

// Tier 8 - Experimental Electrics - experimentalElectrics

// Tier 9 - High Tech Electrical Systems - highTechElectricalSystems
PARTUPGRADE
{
	type = battery
	name = kiwiBatteryTier4Upgrade
	partIcon = batteryPack
	techRequired = highTechElectricalSystems
	entryCost = 270000
	title = Energy Density Upgrade 4
	manufacturer = Kiwi Imagineers
	description = Batteries have been upgraded so are able to maintain higher energy density.
	basicInfo = 400% Baseline Energy Density
}

// Tier 10 - High Power Electrical Systems - highPowerElectricalSystems

// Tier 11 - Experimental Electrical Systems - experimentalElectricalSystems

// Tier 12 - Exotic Electrical Systems - exoticElectricalSystems

 

 

Link to comment
Share on other sites

  • 2 weeks later...
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...