ShotgunNinja / Kerbalism

Hundreds of Kerbals were killed in the making of this mod.
The Unlicense
43 stars 19 forks source link

Error in console #144

Open PetorKukushkin opened 7 years ago

PetorKukushkin commented 7 years ago

ArgumentNullException: Argument cannot be null. Parameter name: key at System.Collections.Generic.Dictionary`2[System.String,KERBALISM.resource_info].TryGetValue (System.String key, KERBALISM.resource_info& value) [0x00000] in :0 at KERBALISM.vessel_resources.Info (.Vessel v, System.String resource_name) [0x00000] in :0 at KERBALISM.Background.ProcessCryoTank (.Vessel v, .ProtoPartSnapshot p, .ProtoPartModuleSnapshot m, .PartModule simple_boiloff, KERBALISM.vessel_resources resources, Double elapsed_s) [0x00000] in :0 at KERBALISM.Background.update (.Vessel v, KERBALISM.vessel_info vi, KERBALISM.VesselData vd, KERBALISM.vessel_resources resources, Double elapsed_s) [0x00000] in :0 at KERBALISM.Kerbalism.FixedUpdate () [0x00000] in :0

This error causes big lags. When i deleted https://forum.kerbalspaceprogram.com/index.php?/topic/106089-130-cryogenic-engines-high-isp-chemical-rockets-augst-1/ this error is gone.

lordcirth commented 7 years ago

I am having this problem as well, and have had it before. The basic background processing that Cryotanks does seems to break Kerbalism background processing.

dubspeed commented 7 years ago

I am also having this problem, seems to come from the background processing when it tries to calculate the boiloff rate for ModuleCryoTank in Kerbalism/src/Background.cs:

// get fuel name string fuel_name = Lib.ReflectionValue<string>(simple_boiloff, "FuelName"); seems to get a null as fuel_name and then tries to lookup the amount and fails.

lordcirth commented 7 years ago

Removing SimpleBoiloff.dll is the workaround for this, until there's a proper fix.