Jump to content

Can someone aid me in adding in an object in-game?


Recommended Posts

Hello KSP Forum!

During the last week, I have been scouring the internet and looking for instructions to create my own personal KSP planetary system. So far, almost nothing has worked. Even copying over a planet from a mod, and customizing the surface textures just a little (changing the color, that's it) makes the planet just pitch white. or just plain non-existent. I have no idea what is happening, or what is wrong with my script. So, I think I really need a step-by-step response on how to deal with this. Any help or response is highly appreciated! :) 

 

PjCWJnN.png In this scenario, I tried to edit one of The White Guardians objects, Vahn. All I did was edit the surface texture with GIMP to see how it would fair in the game.

 

kPHx1SX.jpg But, as you see, there is absolutely nothing here. The script is pretty much the same as the original, other than the different directories. I have no idea what is wrong.

@Kopernicus:FOR[MySystem]
{
	//PRETTY MUCH ALL OF THIS CODE COMES FROM THE WHITE GUARDIAN'S EVOLUTION PLANET MOD. I AM IN NO WAY DISTRIBUTING HIS SCRIPTS TO OTHER PEOPLE. THIS ENTIRE SCRIPT IS ESSENTIALLY A LIFE-BOAT FOR ME TO BASE MY FUTURE PLANETS OFF OF. ALL CREDITS FOR HIS CODE AND WRITING IN HERE GO DIRECTLY TO HIM.
	Body
	{
		name = Loe
		cacheFile = MySystem/Cache/31_Loe.bin
		randomMainMenuBody = true
		flightGlobalsIndex = 3021
		Debug
		{
			exportMesh = true
			update = true
		}
		Template
		{
			name = Gilly
			removeAllPQSMods = true
		}
		Properties
		{
			description = Loe Desc
			radius = 50000
			geeASL = 0.2
			tidallyLocked = true
			timewarpAltitudeLimits = 0 5000 5000 10000 25000 50000 75000 100000
			ScienceValues
			{
				landedDataValue = 4
				inSpaceLowDataValue = 3.5
				inSpaceHighDataValue = 3.2
				recoveryValue = 1.5
				spaceAltitudeThreshold = 200000
			}
			biomeMap = MySystem/PluginData/31_b.dds
			Biomes
			{
				Biome
				{
					name = 1
					value = 1.2
					color = 1,1,0,1
				}
				Biome
				{
					name = 2
					value = 1
					color = 0.2,0.4,0.2,1
				}
				Biome
				{
					name = 3
					value = 1
					color = 0,1,0,1
				}
				Biome
				{
					name = 4
					value = 1
					color = 0,0,1,1
				}
				Biome
				{
					name = 5
					value = 1
					color = 0,1,1,1
				}
			}
		}
		ScaledVersion
		{
			Material
			{
				texture = MySystem/PluginData/31_c.dds
				normals = MySystem/PluginData/31_n.dds
			}
		}
		Orbit
		{
			referenceBody = Kerbin
			semiMajorAxis = 1480684.43822977
			inclination = 4.38035510480404
			longitudeOfAscendingNode = 215.374474525452
			argumentOfPeriapsis = 139.502956867218
			eccentricity = 0
			meanAnomalyAtEpoch = 0.15
			color = 0.2,0.5,0.3,1
		}
		PQS
		{
			minLevel = 2
			maxLevel = 10
			Material
			{
				saturation = 1
				contrast = 1
				deepTex = MySystem/Textures/Rock3_Tex
				deepMultiTex = MySystem/Textures/Rock3_Tex
				mainTex = MySystem/Textures/Rock1_Tex
				mainMultiTex = MySystem/Textures/Rock1_Tex
				highTex = MySystem/Textures/Gravel2_Tex
				highMultiTex = MySystem/Textures/Gravel2_Tex
				snowTex = MySystem/Textures/Sand1_Tex
				snowMultiTex = MySystem/Textures/Sand1_Tex
				steepTex = MySystem/Textures/Cliff_Tex
			}
			Mods
			{
				VertexHeightMap
				{
					map = MySystem/PluginData/31_h.dds
					scaleDeformityByRadius = false
					deformity = 8500
					offset = 1500
					enabled = true
					order = 50
				}
				VertexVoronoi
				{
					deformation = 100
					frequency = 30
					seed = 1
					enableDistance = true
					displacement = 0
					enabled = true
					order = 60
				}
				VertexSimplexHeight
				{
					deformity = 500
					frequency = 2
					persistence = 0.2
					octaves = 5
					seed = 100
					enabled = true
					order = 80
				}
				HeightColorMap
				{
					blend = 1
					LandClasses
					{
						Class
						{
							name = Core
							altitudeStart = -1
							altitudeEnd = 0.15
							color = 0.2,0.4,0.2,1
							lerpToNext = true
						}
						Class
						{
							name = Core2
							altitudeStart = 0.15
							altitudeEnd = 0.16
							color = 0.3,0.38,0.35,1
							lerpToNext = true
						}
						Class
						{
							name = Rock
							altitudeStart = 0.16
							altitudeEnd = 0.4
							color = 0.4,0.4,0.4,1
							lerpToNext = true
						}
						Class
						{
							name = DustLerp
							altitudeStart = 0.4
							altitudeEnd = 0.45
							color = 0.15,0.15,0.15,1
							lerpToNext = true
						}
						Class
						{
							name = Dust
							altitudeStart = 0.45
							altitudeEnd = 0.75
							color = 0.15,0.17,0.16,1
							lerpToNext = true
						}
						Class
						{
							name = Frost
							altitudeStart = 0.75
							altitudeEnd = 0.8
							color = 0.7,0.75,0.8,1
							lerpToNext = true
						}
						Class
						{
							name = Ice
							altitudeStart = 0.8
							altitudeEnd = 2
							color = 0.8,0.85,0.82,1
							lerpToNext = false
						}
					}
					enabled = true
					order = 200
				}
				AltitudeAlpha
				{
					atmosphereDepth = 11500
					invert = false
					order = 999999999
					enabled = true
				}
				AerialPerspectiveMaterial
				{
					atmosphereDepth = 150000
					DEBUG_SetEveryFrame = True
					globalDensity = -1E-05
					heightFalloff = 6.75
					oceanDepth = 0
					order = 100
					enabled = true
				}
				LandControl
				{
					altitudeBlend = 0
					altitudeFrequency = 1
					altitudeOctaves = 1
					altitudePersistance = 1
					altitudeSeed = 1
					createColors = False
					createScatter = True
					latitudeBlend = 0
					latitudeFrequency = 1
					latitudeOctaves = 1
					latitudePersistance = 1
					latitudeSeed = 1
					longitudeBlend = 0
					longitudeFrequency = 1
					longitudeOctaves = 1
					longitudePersistance = 1
					longitudeSeed = 1
					useHeightMap = False
					vHeightMax = 10000
					order = 999999
					enabled = true
					altitudeSimplex
					{
						frequency = 1
						octaves = 1
						persistence = 1
					}
					latitudeSimplex
					{
						frequency = 1
						octaves = 1
						persistence = 1
					}
					longitudeSimplex
					{
						frequency = 1
						octaves = 1
						persistence = 1
					}
					landClasses
					{
						Class
						{
							alterApparentHeight = 0
							alterRealHeight = 0
							color = 0,0,0,0
							coverageBlend = 0
							coverageFrequency = 1
							coverageOctaves = 1
							coveragePersistance = 1
							coverageSeed = 1
							name = Base
							latDelta = 1
							latitudeDouble = False
							lonDelta = 1
							minimumRealHeight = 0
							noiseBlend = 0
							noiseColor = 0,0,0,0
							noiseFrequency = 1
							noiseOctaves = 1
							noisePersistance = 1
							noiseSeed = 1
							delete = False
							altitudeRange
							{
								endEnd = 1
								endStart = 1
								startEnd = 0.15
								startStart = 0.1
							}
							coverageSimplex
							{
								frequency = 1
								octaves = 1
								persistence = 1
							}
							latitudeDoubleRange
							{
								endEnd = 1
								endStart = 1
								startEnd = 0
								startStart = 0
							}
							latitudeRange
							{
								endEnd = 1
								endStart = 1
								startEnd = 0
								startStart = 0
							}
							longitudeRange
							{
								endEnd = 2
								endStart = 2
								startEnd = -1
								startStart = -1
							}
							noiseSimplex
							{
								frequency = 1
								octaves = 1
								persistence = 1
							}
							scatters
							{
								Scatter
								{
									density = 0.25
									scatterName = Big
								}
								Scatter
								{
									density = 0.55
									scatterName = Small
								}
							}
						}
					}
					scatters
					{
						Scatter
						{
							materialType = DiffuseDetail
							mesh = BUILTIN/boulder
							castShadows = True
							densityFactor = 1
							maxCache = 512
							maxCacheDelta = 32
							maxLevelOffset = 0
							maxScale = 7.5
							maxScatter = 20
							maxSpeed = 1000
							minScale = 0.15
							recieveShadows = True
							name = Big
							seed = 231123
							verticalOffset = 0
							delete = False
							collide = True
							science = False
							Material
							{
								color = 0.6,0.6,0.6,1
								mainTex = MySystem/Textures/Rock3_Tex
								mainTexScale = 1,1
								mainTexOffset = 0,0
								detail = MySystem/Textures/Rock1_Tex
								detailScale = 25,25
								detailOffset = 0,0
							}
							Experiment
							{
							}
						}
						Scatter
						{
							materialType = Diffuse
							mesh = MySystem/Models/Pebble.obj
							castShadows = False
							densityFactor = 1
							maxCache = 512
							maxCacheDelta = 32
							maxLevelOffset = 0
							maxScale = 0.09
							maxScatter = 50
							maxSpeed = 1000
							minScale = 0.01
							recieveShadows = True
							name = Small
							seed = 231123
							verticalOffset = 0
							delete = False
							collide = False
							science = False
							Material
							{
								color = 0.6,0.6,0.6,1
								mainTex = MySystem/Textures/Rock3_Tex
								mainTexScale = 1,1
								mainTexOffset = 0,0
							}
							Experiment
							{
							}
						}
					}
				}
			}
		}
	}

 

Edited by Mittence
Link to comment
Share on other sites

@Mittence I haven't made many planets (actually only one and it stopped working for unknown reasons) so I can't help you there but I do know that some of the parameters in cfg files can be very picky - sometimes capitalization is important, sometimes not. I would suggest you us in the same directory structure White Guardian had (from GameData on down) just to eliminate one of the differences.If that doesn't work you might try posting on one of White Guardians tutorial threads - there will be more modders that know about making planets hanging around those threads.

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