Jump to content

Space Center Game Objects? (WARNING SPOILERS)


Recommended Posts

How can I make a copy of the Space Center (runway, landing pad, etc) in KSP?

I think I need the name of the game objects. A list of all object names, such as the hangers at the other sites, would be helpful.

Edited by Hooligan Labs
Link to comment
Share on other sites

I think crashing into them can give you their name. In the flight log it'll say something like

"Sky Penetrator Mk XXIV has crashed into runway_fbx"

I think you can also use the older version of Hyperedit to find the names.

Link to comment
Share on other sites

GameObject.instantiate(GameObject.Find("KSC"));

The location on the planet surface is determined by the PQSCity component, specifically the repositionRadial variable for the location, reorientInitialUp & reorientFinalAngle for the orientation, repositionRadiusOffset for the height and sphere for the body it's on (CelestialBody.pqsController). You may need to call RebuildSphere on the PQSCity object after making location changes for them to show up.

You can find all of the subobjects and components of a GameObject using a function like this:

private static void PrintTransform(Transform aTransform, String currentPath)
{
currentPath += "/" + aTransform.name;
print(currentPath);
foreach(Component aComponent in aTransform.gameObject.GetComponents<Component>())
{
if(aComponent.GetType().ToString() != "UnityEngine.Transform")
print(aComponent.GetType());
}
foreach(Transform childTransform in aTransform)
{
PrintTransform(childTransform, currentPath);
}
}

Called as PrintTransform(topLevelTransform, "");

You can grab all objects of a type in the game using:

PQSMod[] PQSMods = FindObjectsOfType(typeof(PQSMod)) as PQSMod[];
foreach(PQSMod eachObject in PQSMods)
{
print(eachObject.transform.parent.parent.name + "/" + eachObject.transform.parent.name + "/" + eachObject.name + " (" + eachObject.GetType() + ")");
}

That gets the components, the GameObjects they're attached to may have many child GameObjects as KSC does.

Example output (from an slightly different version of the code):

WARNING SPOILERS!

ArmstrongMemorial PQSCity

Cave PQSCity

CelestialBodyBlockActivation PQSMod_BlockActivation

CelestialBodyBlockActivation PQSMod_BlockActivation

CelestialBodyBlockActivation PQSMod_BlockActivation

DeadKraken PQSCity

Face PQSCity

Face PQSMod_FlattenArea

Icehenge PQSCity

IslandAirfield PQSCity

KSC PQSCity

KSC PQSMod_MapDecal

KSC2 PQSCity

KSC2 PQSMod_MapDecal

Monolith00 PQSCity

Monolith00 PQSCity

Monolith00 PQSCity

Monolith00 PQSMod_FlattenArea

Monolith01 PQSCity

Monolith01 PQSCity

Monolith01 PQSMod_FlattenArea

Monolith02 PQSCity

Monolith02 PQSCity

Monolith02 PQSMod_FlattenArea

MSL PQSCity

OceanFX PQSMod_OceanFX

OceanFX PQSMod_OceanFX

OceanFX PQSMod_OceanFX

Pyramid PQSMod_MapDecal

Pyramids PQSCity

Pyramids PQSMod_FlattenArea

PyramidSSTV PQSCity

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadMeshColliders PQSMod_QuadMeshColliders

QuadRemoveMap PQSMod_RemoveQuadMap

QuadRemoveMap PQSMod_RemoveQuadMap

QuadRemoveMap PQSMod_RemoveQuadMap

RockArch00 PQSCity

RockArch01 PQSCity

RockArch02 PQSCity

Sagan PQSMod_MapDecal

Scatter PQSLandControl

Scatter PQSLandControl

Scatter PQSLandControl

Scatter PQSLandControl

Scatter PQSLandControl

Scatter PQSLandControl

Scatter PQSLandControl

Scatter PQSLandControl

SurfaceQuadUV PQSMod_UVPlanetRelativePosition

SurfaceQuadUV PQSMod_UVPlanetRelativePosition

SurfaceQuadUV PQSMod_UVPlanetRelativePosition

UFO PQSCity

UFO PQSCity

VertexPlanet PQSMod_VertexPlanet

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CelestialBody PQSMod_CelestialBodyTransform

_CoastlineLOD PQSMod_QuadEnhanceCoast

_CoastlineLOD PQSMod_QuadEnhanceCoast

_CoastlineLOD PQSMod_QuadEnhanceCoast

_Color PQSMod_HeightColorMap

_Color PQSMod_HeightColorMap

_Color PQSMod_HeightColorMap

_Color PQSMod_HeightColorMap

_Color PQSMod_HeightColorMap

_Color PQSMod_VertexColorMap

_Color PQSMod_VertexColorMap

_Color PQSMod_VertexColorMap

_Color PQSMod_VertexColorSolid

_Color PQSMod_VertexSimplexNoiseColor

_Color PQSMod_VertexSimplexNoiseColor

_Color PQSMod_VertexSimplexNoiseColor

_Color PQSMod_VertexSimplexNoiseColor

_Color PQSMod_VertexSimplexNoiseColor

_Color PQSMod_VertexSimplexNoiseColor

_Color PQSMod_VertexSimplexNoiseColor

_ColorNoise PQSMod_VertexSimplexNoiseColor

_Crater1 PQSMod_FlattenArea

_Crater1 PQSMod_MapDecal

_Crater2 PQSMod_FlattenArea

_Crater2 PQSMod_MapDecal

_FineDetail PQSMod_VertexHeightNoiseVertHeight

_FineDetail PQSMod_VertexHeightNoiseVertHeight

_FineDetail PQSMod_VertexHeightNoiseVertHeight

_FineDetail PQSMod_VertexHeightNoiseVertHeight

_FineDetail PQSMod_VertexSimplexHeightAbsolute

_FineDetail PQSMod_VertexSimplexHeightAbsolute

_Height PQSMod_FlattenOcean

_Height PQSMod_FlattenOcean

_Height PQSMod_VertexHeightMap

_Height PQSMod_VertexHeightMap

_Height PQSMod_VertexHeightMap

_Height PQSMod_VertexHeightMap

_Height PQSMod_VertexHeightMap

_Height PQSMod_VertexHeightMap

_Height PQSMod_VertexHeightMap

_Height PQSMod_VertexHeightMap

_Height PQSMod_VertexHeightNoise

_Height PQSMod_VertexHeightNoise

_Height PQSMod_VertexHeightNoise

_Height PQSMod_VertexHeightNoise

_Height PQSMod_VertexHeightNoise

_Height PQSMod_VertexHeightOffset

_Height PQSMod_VertexSimplexHeight

_Height PQSMod_VertexSimplexHeight

_Height PQSMod_VertexSimplexHeightAbsolute

_Height PQSMod_VertexSimplexHeightAbsolute

_Height PQSMod_VertexSimplexHeightAbsolute

_Height PQSMod_VertexSimplexHeightAbsolute

_Height PQSMod_VertexSimplexHeightAbsolute

_Height PQSMod_VertexSimplexHeightAbsolute

_Height PQSMod_VertexSimplexHeightAbsolute

_Height PQSMod_VertexSimplexHeightAbsolute

_HeightNoise PQSMod_FlattenOcean

_HeightNoise PQSMod_FlattenOcean

_HeightNoise PQSMod_FlattenOcean

_HeightNoise PQSMod_VertexHeightMap

_HeightNoise PQSMod_VertexHeightMap

_HeightNoise PQSMod_VertexHeightMap

_HeightNoise PQSMod_VertexHeightNoise

_HeightNoise PQSMod_VertexHeightNoise

_HeightNoise PQSMod_VertexHeightNoise

_HeightNoise PQSMod_VertexHeightNoiseVertHeight

_HeightNoise PQSMod_VertexHeightNoiseVertHeight

_HeightNoise PQSMod_VertexHeightNoiseVertHeight

_HeightNoise PQSMod_VertexHeightNoiseVertHeight

_HeightNoise PQSMod_VertexHeightNoiseVertHeight

_HeightNoise PQSMod_VertexHeightNoiseVertHeight

_HeightNoise PQSMod_VertexSimplexHeight

_HeightNoise PQSMod_VertexSimplexHeight

_HeightNoise PQSMod_VertexSimplexHeight

_HeightNoise PQSMod_VertexSimplexHeight

_HeightNoise PQSMod_VertexSimplexHeight

_HeightNoise PQSMod_VertexSimplexHeight

_HeightNoise PQSMod_VertexSimplexHeightAbsolute

_HeightNoise PQSMod_VertexSimplexHeightAbsolute

_HeightNoise PQSMod_VertexSimplexHeightAbsolute

_HeightNoise PQSMod_VertexSimplexHeightMap

_HeightNoise PQSMod_VertexVoronoi

_LandClass PQSLandControl

_LandClass PQSLandControl

_LandClass PQSLandControl

_LandClass PQSLandControl

_LandClass PQSMod_VertexColorMapBlend

_LandClass PQSMod_VertexColorMapBlend

_LandClassOcean PQSLandControl

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_AerialPerspective PQSMod_AerialPerspectiveMaterial

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_ModProjection PQSMod_AltitudeAlpha

_Material_SunLight PQSMod_MaterialSetDirection

_Material_SunLight PQSMod_MaterialSetDirection

_Material_SunLight PQSMod_MaterialSetDirection

_Material_SunLight PQSMod_MaterialSetDirection

_Material_SunLight PQSMod_MaterialSetDirection

_Material_SurfaceQuads PQSMod_UVPlanetRelativePosition

_Material_SurfaceQuads PQSMod_UVPlanetRelativePosition

_Material_SurfaceQuads PQSMod_UVPlanetRelativePosition

_Material_SurfaceQuads PQSMod_UVPlanetRelativePosition

_Material_SurfaceQuads PQSMod_UVPlanetRelativePosition

_Material_SurfaceQuads PQSMod_UVPlanetRelativePosition

_Material_SurfaceQuads PQSMod_UVPlanetRelativePosition

_SurfaceQuadUVs PQSMod_UVPlanetRelativePosition

_SurfaceQuadUVs PQSMod_UVPlanetRelativePosition

_SurfaceQuadUVs PQSMod_UVPlanetRelativePosition

_SurfaceQuadUVs PQSMod_UVPlanetRelativePosition

_SurfaceQuadUVs PQSMod_UVPlanetRelativePosition

_SurfaceQuadUVs PQSMod_UVPlanetRelativePosition

_SurfaceQuadUVs PQSMod_UVPlanetRelativePosition

_SurfaceQuadUVs PQSMod_UVPlanetRelativePosition

Link to comment
Share on other sites

I haven't experimented with them that much but I suspect the PQSMod-derived classes are the ones that handle generating the terrain (other than PQSCity which seems to be used for anchoring GameObjects) so I wouldn't be surprised if Flatten did what it said.

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