Jump to content

[Solved] My mod is not loading


Misguided Kerbal

Recommended Posts

Solved. See Kopernicus Continued thread.

 

So, recently after my KSP burnout had ended, I was itching to start working on my mod again. But when I loaded up my modding install KSP, there were always problems. Eventually, I traced the problem to this thing in the KSP.log. There were at least 50 of these things.

	Kopernicus.Components.KopernicusStar.LateUpdate () (at <a181434f66db4beda31114c09e6a6d74>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[EXC 10:48:43.485] NullReferenceException: Object reference not set to an instance of an object

 

Then, I checked the Kopernicus.log

[LOG 10:48:25]: [Kopernicus]: Configuration.Loader: Failed to load Body: Theta: Object reference not set to an instance of an object

 

Same thing, and it was Theta. However, it had worked before. So, I decided to check the Theta.log

[LOG 10:48:25]: Exception Was Recorded: Object reference not set to an instance of an object

 

What? The problem was, it had worked before!

This is Theta's cfg. I couldn't find anything wrong, but that just might be me:

@Kopernicus:AFTER[Kopernicus]
{
	Body
	{
		name = Theta
		Debug
		{
			exportMesh = true
			update = true
		}
		cacheFile = Valor/Cache/Theta.bin
		Template
		{
			name = Laythe
			removeAllPQSMods = true
			removeOcean = true
		}
		Properties
		{
			description = Theta was first discovered when Kerbin was having a solar eclipse. As such, Theta has always been regarded as "Unlucky". Theta is a Desert world, and like Valor, strangely contains oxygen. It has been reported that the oxygen "smells odd".
			radius = 425000
			geeASL  = 0.708
			rotates = true
			tidallyLocked = false
			rotationPeriod = 26000
			initialRotation = 0
			albedo = 0.25
			timewarpAltitudeLimits = 0 80000 80000 80000 120000 240000 480000 600000
			ScienceValues
			{
				splashedDataValue = 8
                		landedDataValue = 8
                		flyingLowDataValue = 7
                		flyingHighDataValue = 6.5
                		inSpaceLowDataValue = 5
                		inSpaceHighDataValue = 4.5
                		recoveryValue = 6
                		flyingAltitudeThreshold = 25000
                		spaceAltitudeThreshold = 220000
			}	
		}
		
		Orbit
        	{
            		referenceBody = Valor
            		inclination = 0.22
            		eccentricity = 0.01678
            		semiMajorAxis = 48965784
            		longitudeOfAscendingNode = 12
            		argumentOfPeriapsis = 0
            		meanAnomalyAtEpoch = 0
            		epoch = 0
            		color = 0.760,0.698,0.502,1
        	}
	
		Atmosphere
        	{
            		ambientColor = 0.76078,0.69803,0.50196,1
			albedo = 0.52
            		enabled = true
            		oxygen = true
            		altitude = 70000
			temperatureSeaLevel = 230
			temperatureCurve
			{
				key = 0 204 0 -0.0023
				key = 10000 191 -0.0009 -0.0009
				key = 25000 172 -0.0018 -0.0018
				key = 35000 154 -0.0019 -0.0019
				key = 56000 123 0 0
				key = 70000 129 0.0008 0
			}
			temperatureSunMultCurve
			{
				key = 0 1 0 0
				key = 25000 -0.2 0 0
				key = 55000 0.25 0 0
				key = 70000 0.25 0 0
			}
			temperatureLatitudeBiasCurve
			{
				key = 0 11.66 0 0
				key = 38 0 -0.591 -0.591
				key = 90 -43.34 -0.9599 0
			}
			temperatureLatitudeSunMultCurve
			{
				key = 0 61 0 0
				key = 38 51.88 -0.462 -0.462
				key = 90 18 -0.7505 0
			}
			temperatureAxialSunBiasCurve
			{
				key = 0 0 0 0
			}
			temperatureAxialSunMultCurve
			{
				key = 0 0 0 0
			}
			temperatureEccentricityBiasCurve
			{
				key = 0 3 0 -6
				key = 1 -3 -6 0
			}
			pressureCurve
			{
				key = 0 4.05300E+00 0 -3.84236E-04
				key = 7000 2.04092E+00 -2.07059E-04 -2.07059E-04
				key = 13500 1.02843E+00 -1.13057E-04 -1.13057E-04
				key = 19500 5.16610E-01 -6.18448E-05 -6.18448E-05
				key = 25000 2.61086E-01 -3.34449E-05 -3.34449E-05
				key = 30500 1.26726E-01 -1.70558E-05 -1.70558E-05
				key = 35500 6.37629E-02 -8.94023E-06 -8.94023E-06
				key = 40500 3.11390E-02 -4.56511E-06 -4.56511E-06
				key = 45000 1.58821E-02 -2.42331E-06 -2.42331E-06
				key = 49500 7.89683E-03 -1.24554E-06 -1.24554E-06
				key = 54000 3.85282E-03 -6.19409E-07 -6.19409E-07
				key = 58000 2.02409E-03 -3.25113E-07 -3.25113E-07
				key = 62000 1.06803E-03 -1.69639E-07 -1.69639E-07
				key = 64000 7.78347E-04 -1.22604E-07 -1.22604E-07
				key = 70000 0 0 0
			}
			AtmosphereFromGround
			{
				waveLength = 0.60,0.64,0.68,0.5
				innerRadiusMult = 0.97
				outerRadiusMult = 1.025
				transformScale = 1.05,1.05,1.05
			}
		}
            
		ScaledVersion
		{
			type = Atmospheric
			fadeStart = 0
			fadeEnd = 0
			Material
			{
				texture = Valor/Textures/PluginData/Theta.png
				normals = Valor/Textures/PluginData/ThetaNormal.dds
				shininess = 0.05
				specular = 0,0,0,0
				rimPower = 5.06
				rimBlend = 0.3
				Gradient
				{
					0.0 = 0.7607,0.6980,0.4313,1
					0.4 = 0.7607,0.6980,0.4901,1
					0.6 = 0.7607,0.6980,0.5490,1
					0.8 = 0.0588,0.0588,0.1568,1
					1.0 = 0.0196,0.0196,0.0196,1
				}
			}
		}
		
		PQS
		{
			allowFootprints = true

			FallbackMaterial
			{
				saturation = 1
				contrast = 1
				tintColor = 0.760,0.698,0.502,1
				texTiling = 4000
				texPower = 0.75
				multiPower = 0.75
				groundTexStart = 0
				groundTexEnd = 6000
				multiFactor = 24
				mainTex = BUILTIN/RockyGround
				mainTexScale = 1,1
				mainTexOffset = 0,0
				planetOpacity = 1
			}
			
			Mods
			{
				VertexHeightMap
				{
					map = Valor/Textures/PluginData/ThetaHeight.png
					deformity = 4500
					scaleDeformityByRadius = false
					offset = 0
					enabled = true
					order = 5
				}
				
				
				VertexHeightNoiseVertHeightCurve2
				{
					deformity = 100
					ridgedAddSeed = 123456
					ridgedAddFrequency = 12
					ridgedAddLacunarity = 2
					ridgedAddOctaves = 4
					ridgedSubSeed = 654321
					ridgedSubFrequency = 12
					ridgedSubLacunarity = 2
					ridgedSubOctaves = 4
					simplexCurve
					{
						key = 0 0 0.1466263 0.1466263
						key = 0.7922793 0.2448772 0.6761706 1.497418
						key = 1 1 6.106985 6.106985
					}
					simplexHeightStart = 0
					simplexHeightEnd = 6500
					simplexSeed = 123456
					simplexOctaves = 4
					simplexPersistence = 0.6
					simplexFrequency = 12
					enabled = true
					order = 200
					}
					HeightColorMap
					{
						blend = 1
						order = 500
						enabled = true
						LandClasses
						{
							Class
							{
								name = Bottom
								altitudeStart = 0
								altitudeEnd = 0.7
								color = 0.1,0.1,0.1,1.0
								lerpToNext = true
							}
							Class
							{
								name = Base
								altitudeStart = 0.7
								altitudeEnd = 0.75
								color = 0.7,0.55,0.2,1.0
								lerpToNext = true
							}
							Class
							{
								name = Low
								altitudeStart = 0.75
								altitudeEnd = 0.85
								color = 0.7,0.6,0.4,1.0
								lerpToNext = true
							}
							Class
							{
								name = Grad
								altitudeStart = 0.85
								altitudeEnd = 0.95
								color = 1.0,0.9,0.7,1.0
								lerpToNext = true
							}
							Class
							{	
								name = High
								altitudeStart = 0.95
								altitudeEnd = 2
								color = 0.95,0.95,0.9,1.0
								lerpToNext = false
							}
						}
					}
				}
			}
		}
	}
}				

			

 

So far, I am guessing that maybe Theta was loading before Valor, and that i couldn't find Valor because it hasn't loaded yet (Valor is a planet, Theta is a moon of Valor.)

 

My mod is here: 

It's the 0.2 release that has the problem, 0.1 is just Valor.

 

So, you ask. What are the consequences? Well, KSP gets stuck on the loading screen. Not the one with pictures, the one with the planets on the gray loading thing. However, I can hear the loading music, which is really frustrating. This seems like a Kopernicus problem, but I'm not sure.

 

I am currently running 1.9.1, the only mods I have installed are Kopernicus (Continued), KopEX Footprints (ContinuedEr), KittopiaTech, EVE, whatever ModularFlightIntegrator is (Some dependency for Kopernicus, I think), and my own planet pack.

Edited by Misguided_Kerbal
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...