Jump to content

[1.12.x] Dynamic Battery Storage: electrical/thermal planning and timewarp compensation (August 11)


Nertea

Recommended Posts

Dynamic Battery Storage 2.1.8

  • Added a new settings flag: DebugLoading, which decreases the number of messages emitted when loading (off by default)
  • Added support for FFT modules: ModuleAntimatterTank, FusionReactor, FusionEngine, ModuleChargeableEngine
  • Added support for SystemHeat modules: ModuleSystemHeatRadiator, ModuleSystemHeatHarvester, ModuleSystemHeatConverter, ModuleSystemHeatTemperatureAdjuster, ModuleSystemHeatConvector, ModuleSystemHeatFissionEngine, ModuleSystemHeatFissionReactor
  • Added support for SpaceDust modules: ModuleSpaceDustScanner, ModuleSpaceDustHarvester
Link to comment
Share on other sites

  • 1 month later...

Hi,

Anyone else having problems with solar panel simulation in VAB? I can only get any EC from panels if set the distance from sun to 5 Mm, when the efficiency is ~5000%, but if I increase the distance at all, it goes down to 0%. In-flight everything works correctly.

With appreciation.

Link to comment
Share on other sites

1 hour ago, Lathari said:

Hi,

Anyone else having problems with solar panel simulation in VAB? I can only get any EC from panels if set the distance from sun to 5 Mm, when the efficiency is ~5000%, but if I increase the distance at all, it goes down to 0%. In-flight everything works correctly.

With appreciation.

Since Lathari reminded me, I've been having the same issue.

Player.log

In the VAB

Spoiler

wy2UsCO.png

Mod list

Spoiler

IcwVh7A.png

Note: _Bensonian is where I keep some custom patches and flags, and a couple parts I ripped out of KNES. None of the patches touch solar panels or EC use (they're mostly custom life support configuration).

 

Link to comment
Share on other sites

Hi,

I have a long term save that after updating some mods have been spamming errors (to the point where my log file goes 100mb+) of the following;

 

(Filename: <3de08e0cad914fa5bb1ef8fcc89a0f04> Line: 0)

InvalidCastException: Specified cast is not valid.
  at DynamicBatteryStorage.KopernicusSolarPanelPowerHandler.Initialize (PartModule pm) [0x00009] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselElectricalData.SetupDataHandler (PartModule pm) [0x0008f] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselData.RefreshData (System.Boolean fromScratch, System.Collections.Generic.List`1[T] vesselParts) [0x001db] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselData..ctor (System.Collections.Generic.List`1[T] vesselParts) [0x0001e] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselElectricalData..ctor (System.Collections.Generic.List`1[T] vesselParts) [0x00000] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselDataManager.RefreshVesselData () [0x00032] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselDataManager.FixedUpdate () [0x00039] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

 

I tried re-installing all the mods (I use CKAN, KSP version 1.8.1), but the issue has been persisting. I have no idea how to read log files so I am just guessing this is the mod to report it for?

The game runs despite the errors, however the error spam does cause a lot of slowdowns.

 

output_log.log file;

https://www.dropbox.com/s/7j8dve83ncnlj1o/output_log.txt?dl=0

player.log file;

https://www.dropbox.com/s/f6eof48mtwoslx7/Player.log?dl=0

 

Link to comment
Share on other sites

11 hours ago, adriaans said:

Hi,

I have a long term save that after updating some mods have been spamming errors (to the point where my log file goes 100mb+) of the following;

 

(Filename: <3de08e0cad914fa5bb1ef8fcc89a0f04> Line: 0)

InvalidCastException: Specified cast is not valid.
  at DynamicBatteryStorage.KopernicusSolarPanelPowerHandler.Initialize (PartModule pm) [0x00009] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselElectricalData.SetupDataHandler (PartModule pm) [0x0008f] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselData.RefreshData (System.Boolean fromScratch, System.Collections.Generic.List`1[T] vesselParts) [0x001db] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselData..ctor (System.Collections.Generic.List`1[T] vesselParts) [0x0001e] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselElectricalData..ctor (System.Collections.Generic.List`1[T] vesselParts) [0x00000] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselDataManager.RefreshVesselData () [0x00032] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
  at DynamicBatteryStorage.VesselDataManager.FixedUpdate () [0x00039] in <3de08e0cad914fa5bb1ef8fcc89a0f04>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

 

I tried re-installing all the mods (I use CKAN, KSP version 1.8.1), but the issue has been persisting. I have no idea how to read log files so I am just guessing this is the mod to report it for?

The game runs despite the errors, however the error spam does cause a lot of slowdowns.

 

output_log.log file;

https://www.dropbox.com/s/7j8dve83ncnlj1o/output_log.txt?dl=0

player.log file;

https://www.dropbox.com/s/f6eof48mtwoslx7/Player.log?dl=0

 

 Can you tell me which version of DBS you are using? I have a thought that 2.1.9 is not compatible with Kopernicus for 1.8.1.

On 9/13/2020 at 10:50 AM, TBenz said:

Since Lathari reminded me, I've been having the same issue.

Player.log

In the VAB

  Reveal hidden contents

wy2UsCO.png

Mod list

  Reveal hidden contents

IcwVh7A.png

Note: _Bensonian is where I keep some custom patches and flags, and a couple parts I ripped out of KNES. None of the patches touch solar panels or EC use (they're mostly custom life support configuration).

 

I'll check it out. 

Link to comment
Share on other sites

4 hours ago, Nertea said:

 Can you tell me which version of DBS you are using? I have a thought that 2.1.9 is not compatible with Kopernicus for 1.8.1.

I have version 2.1.9 yes. Should I try to go to an older version? (if so which version and can I do that through CKAN or do I need to manually install it?)

Link to comment
Share on other sites

7 hours ago, adriaans said:

I have version 2.1.9 yes. Should I try to go to an older version? (if so which version and can I do that through CKAN or do I need to manually install it?)

I figured out how to get an older version through CKAN and am now using 2.1.8 and it seems to have fixed the issue. Thank you for the help.

Link to comment
Share on other sites

  • 1 month later...
On 9/13/2020 at 12:31 PM, Lathari said:

Hi,

Anyone else having problems with solar panel simulation in VAB? I can only get any EC from panels if set the distance from sun to 5 Mm, when the efficiency is ~5000%, but if I increase the distance at all, it goes down to 0%. In-flight everything works correctly.

With appreciation.

Same issue.

Link to comment
Share on other sites

The sun bug will be fixed next release. 

11 hours ago, Lathari said:

I just noticed the ScanSat sensors are not being simulated. I was wondering how hard it would to write a patch or edit the DynamicBatteryStorageSetting.cfg to include them? Or would this need a new PartModuleHandler?

I was working with dmagic on this at some point but we never finished it. It's nontrivial i think.

Link to comment
Share on other sites

20 hours ago, Nertea said:

The sun bug will be fixed next release. 

I was working with dmagic on this at some point but we never finished it. It's nontrivial i think.

Well, I just have keep over-electrifying my probes for the near future (not sorry). But keep up the good work.

Link to comment
Share on other sites

Released Dynamic Battery Storage 2.1.10

  • Added French translation from vinix38
  • Fixed a missing exponent in the Solar Panel UI planner
  • Some fixes for solar panel detection in old (pre 1.9) Kopernicus versions
  • Added support for ModuleSpaceDustTelescope
Link to comment
Share on other sites

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at DynamicBatteryStorage.ModuleCryoTankPowerHandler.ReloadModuleNode () [0x00108] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.ModuleCryoTankPowerHandler.GetFuelTypes () [0x00001] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.ModuleCryoTankPowerHandler.Initialize (PartModule pm) [0x00009] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.VesselElectricalData.SetupDataHandler (PartModule pm) [0x0008f] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.VesselData.RefreshData (System.Boolean fromScratch, System.Collections.Generic.List`1[T] vesselParts) [0x001db] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.VesselData..ctor (System.Collections.Generic.List`1[T] vesselParts) [0x0001e] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.VesselElectricalData..ctor (System.Collections.Generic.List`1[T] vesselParts) [0x00000] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.EditorVesselDataManager.InitializeEditorConstruct (ShipConstruct ship, System.Boolean forceReset) [0x0002a] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.EditorVesselDataManager.onEditorVesselModified (ShipConstruct ship) [0x00024] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at EventData`1[T].Fire (T data) [0x000b0] in <c1858a3f77504bd1aaa946fdccf84670>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
EventData`1:Fire(ShipConstruct)
KIS.ModuleKISInventory:<RefreshContents>b__e()
KSPDev.ProcessingUtils.<WaitForEndOfFrameCoroutine>d__4:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
 
(Filename: <ad04dee02e7e4a85a1299c7ee81c79f6> Line: 0)

Hi, my console keep sending me this and game lag for a while (FPS drop from 75 to 30).

Here is my log: https://drive.google.com/file/d/18V9Cm60vKXzzq1AzakKULWj9V_wDq-Ae/view?usp=sharing

Link to comment
Share on other sites

3 hours ago, Dr.Lxweei said:

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at DynamicBatteryStorage.ModuleCryoTankPowerHandler.ReloadModuleNode () [0x00108] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.ModuleCryoTankPowerHandler.GetFuelTypes () [0x00001] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.ModuleCryoTankPowerHandler.Initialize (PartModule pm) [0x00009] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.VesselElectricalData.SetupDataHandler (PartModule pm) [0x0008f] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.VesselData.RefreshData (System.Boolean fromScratch, System.Collections.Generic.List`1[T] vesselParts) [0x001db] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.VesselData..ctor (System.Collections.Generic.List`1[T] vesselParts) [0x0001e] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.VesselElectricalData..ctor (System.Collections.Generic.List`1[T] vesselParts) [0x00000] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.EditorVesselDataManager.InitializeEditorConstruct (ShipConstruct ship, System.Boolean forceReset) [0x0002a] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at DynamicBatteryStorage.EditorVesselDataManager.onEditorVesselModified (ShipConstruct ship) [0x00024] in <6a09c8c29f9843b7ac6467d87cf2369b>:0 
  at EventData`1[T].Fire (T data) [0x000b0] in <c1858a3f77504bd1aaa946fdccf84670>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
EventData`1:Fire(ShipConstruct)
KIS.ModuleKISInventory:<RefreshContents>b__e()
KSPDev.ProcessingUtils.<WaitForEndOfFrameCoroutine>d__4:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
 
(Filename: <ad04dee02e7e4a85a1299c7ee81c79f6> Line: 0)

Hi, my console keep sending me this and game lag for a while (FPS drop from 75 to 30).

Here is my log: https://drive.google.com/file/d/18V9Cm60vKXzzq1AzakKULWj9V_wDq-Ae/view?usp=sharing

I think you need to share that differently: access denied.

Link to comment
Share on other sites

6 minutes ago, Dr.Lxweei said:

My apologies, link should be fixed now.

:)

I think  I need to see your ModuleManager cache. The log tells me that something is up with sspx-cargo-container-25-1, which is my part and doesn't have problems. Something is probably patching it and doing something that DBS isn't configured for. 

Link to comment
Share on other sites

35 minutes ago, Nertea said:

I think  I need to see your ModuleManager cache. The log tells me that something is up with sspx-cargo-container-25-1, which is my part and doesn't have problems. Something is probably patching it and doing something that DBS isn't configured for. 

Here is the new log and MM Cache: https://drive.google.com/drive/folders/1IJ_giXXOT2DOexSppKVXVOh7DU6PI-mI?usp=sharing

I have a HUGE mods list and few patch I made for myself, the following are the patchs relevant to container-25-1: 

@PART[*]
{
    @skinMaxTemp *= 1.5
    @maxTemp *= 1.5

    @crashTolerance *= 1.5
    @breakingForce *= 1.5
    @breakingTorque *= 1.5
}

B9_TANK_TYPE:
{
	name = SSPXEquipment
	tankMass = 0.0000
	tankCost = 0.0
	RESOURCE
	{
		name = Equipment
		unitsPerVolume = 1
	}
}

@PART[sspx-cargo-container*]:NEED[Pathfinder]
{
	@MODULE[ModuleB9PartSwitch]
    {
    	SUBTYPE
		{
			name = Equipment
			tankType = SSPXEquipment
			title = Equipment
			transform = SpecializedPartsDecal
		}
	}
	
	MODULE
	{
		name = ModuleReactionWheel	
		PitchTorque = 30
		YawTorque = 30
		RollTorque = 30
		RESOURCE
		{
			name = ElectricCharge
			rate = 2.4
		}
	}

	MODULE
	{
		name = WBIResourceDistributor
	}
}

@PART[sspx-cargo-25-1]:NEED[KIS]
{
	MODULE
	{
		name = ModuleKISInventory
		type = Pod
		maxVolume = 15000
		externalAccess = true
		internalAccess = true
		slotsX = 6
		slotsY = 6
		slotSize = 50
		itemIconResolution = 128
		selfIconResolution = 128
		openSndPath = KIS/Sounds/containerOpen
		closeSndPath = KIS/Sounds/containerClose
		defaultMoveSndPath = KIS/Sounds/itemMove
	}
}

Thanks

Link to comment
Share on other sites

Hmm, it looks like the problem might be in a WBI template file, namely WildBlueIndustries/000WildBlueTools/ModuleManagerPatches/MM_CryoEngines.cfg.

This config block is wrong. It's using the old CT spec, which will break CT. 

MODULE
		{
			name = ModuleCryoTank
			moduleIsEnabled = false
			FuelName = LqdHydrogen
			BoiloffRate = 0.05
			CoolingCost = 0.08
			showUpgradesInModuleInfo = true
			
		}

I'll keep investigating, but if you want to check the theory, find that MODULE in the file I indicated, and replace it with this?

MODULE
		{
			name = ModuleCryoTank
			CoolingEnabled = False
			BOILOFFCONFIG
			{
				FuelName = LqdHydrogen
				BoiloffRate = 0.05
				CoolingCost = 0.09
			}
			BOILOFFCONFIG
			{
				FuelName = LqdMethane
				BoiloffRate = 0.005
				CoolingCost = 0.045
			}
		}

 

Link to comment
Share on other sites

I'm still seeing the bad entries in the cache, you'll likely need to clear the cache and regenerate. 

There are also more bad entries, in :

  • WildBlueIndustries/000WildBlueTools/Templates/CRP/Storage/LiquidHydrogen.cfg
  • OPT_Reconfig/CRP/OPT_WBI_Extra.cfg
  • WildBlueIndustries/000WildBlueTools/ModuleManagerPatches/MM_CryoEngines.cfg

I will follow up with those mod authors to update their configs when I get a chance. 

Link to comment
Share on other sites

@Nertea For the situation of DBS and the abundant ElectricCharge storage, the root of the problem has to be that DBS does not agree with Angel-125's tank switcher module. (One of the OPT cargo bays must be set as a battery bank.) For the situation of the empty Thermal UI tab, the OPT cargo bays have radiator modules in them but no System Heat patch exists for them.

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