GregroxMun

Tyl--oh you get the idea.

Oct 4th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.73 KB | None | 0 0
  1. // Apply this patch after the Kopernicus mod is loaded
  2. @Kopernicus:FOR[AlternisKerbol]
  3. {
  4. // We want to make Tylo occupy the point in space that Duna usually occupies.
  5. @Body[Tylo]
  6. {
  7. @Template
  8. {
  9. @name = Duna
  10. }
  11. @Template
  12. {
  13. removePQSMods = VertexColorMapBlend,PQSLandControl
  14. }
  15. @Properties
  16. {
  17. radius = 1103000
  18. geeASL = 4.035
  19. description = Tylo is an insanely massive so-called "Superkerbin" planet. With four gees of surface gravity and a thin atmosphere, aerospace engineers fear it. Its atmosphere is so thin that it won't slow you down, but it is so thick that it will burn you up on re-entry. Some kerbals have even suggested that landing on Tylo is impossible, let alone returning. The Kerbal Astronomical Society claims to give three golden stars to the first kerbal to make the trip.
  20.  
  21. @ScienceValues
  22. {
  23. landedDataValue = 18
  24. splashedDataValue = 1
  25. flyingLowDataValue = 9
  26. flyingHighDataValue = 8
  27. flyingAltitudeThreshold = 25000
  28. inSpaceLowDataValue = 5
  29. inSpaceHighDataValue = 4
  30. }
  31. }
  32. @ScaledVersion
  33. {
  34. Material
  35. {
  36. texture = AlternisKerbol/Tylo/Textures/Tylo_Color
  37. normals = AlternisKerbol/Tylo/Textures/Tylo_Normal
  38. rimColorRamp = AlternisKerbol/Rims/ramp_red
  39. rimPower = 1.06
  40. rimBlend = 0.3
  41. }
  42. }
  43. @PQS
  44. {
  45. Mods
  46. {
  47. VoronoiCraters
  48. {
  49. name = 1
  50. deformation = 900
  51. voronoiSeed = 986
  52. voronoiDisplacement = 0.1
  53. voronoiFrequency = 24
  54. simplexSeed = 123123
  55. simplexOctaves = 9
  56. simplexPersistence = 0.5
  57. simplexFrequency = 120
  58. jitter = 0.1
  59. jitterHeight = 3
  60. rFactor = 1
  61. rOffset = 1
  62. colorOpacity = 0.2
  63. DebugColorMapping = false
  64. enabled = true
  65. order = 101
  66. }
  67. VertexSimplexNoiseColor
  68. {
  69. seed = 45
  70. blend = 0.5
  71. colorStart = 0,0,0,0
  72. //colorEnd = 1,1,1,1
  73. colorEnd = 0,0,0,0
  74. octaves = 12.0
  75. persistence = 0.7
  76. frequency = 2.0
  77. enabled = true
  78. order = 9999994
  79. }
  80. VertexColorSolid
  81. {
  82. //Thanks Probus.
  83. blend = 0.0
  84. //color = 0.01, 0.01, 0.01, 1.0
  85. color = 0.1, 0.01, 0.01, 0.0
  86. order = 19
  87. }
  88. VertexColorMap
  89. {
  90. map = AlternisKerbol/Tylo/PluginData/tylo_newcolor.png
  91. enabled = true
  92. }
  93. VertexHeightMap
  94. {
  95. map = AlternisKerbol/Tylo/PluginData/Tylo_Height.png
  96. deformity = 21500
  97. enabled = true
  98. }
  99. }
  100. }
  101. @Atmosphere
  102. {
  103. // effectively the ambient lighting color for all objects on the ground of this body (provides a slight tint)
  104. ambientColor = 0.175,0.15,0.15,1
  105.  
  106. // sets the waveLength property in the AtmosphereFromGround component of the scaled version
  107. // From my picking around in the KSP assemblies, it seems this is fed to the shader in this way:
  108. //
  109. // shader.invWaveLength = Color( 1 / r^4, 1 / g^4, 1 / b^4, 0.5);
  110. //
  111. // Obviously the code for the shader is not available, and I don't feel like picking through ARB shader IL so we'll need
  112. // to figure this out experiementally.
  113. lightColor = 0.4632503906, 0.52200625, 0.52200625, 0.5
  114.  
  115. AtmosphereFromGround
  116. {
  117. outerRadiusMult = 1.032
  118. innerRadiusMult = 0.958
  119. }
  120.  
  121. // General atmosphere settings
  122. enabled = true
  123. oxygen = False
  124. altitude = 80000.0
  125.  
  126. // Atmosphere Pressure
  127. // Values for pressure and temperature created with the handy-dandy Atmosphere Calculator by KillAshley
  128. // pressure (in atm) = multipler * e ^ -(altitude / (scaleHeight * 1000))
  129. pressureCurve
  130. {
  131. key = 0 56.13405 -5.90216365E-03 -5.90216365E-03
  132. key = 4000 32.5253954 -4.803547025E-03 -4.803547025E-03
  133. key = 8000 17.7056738 -2.9398841E-03 -2.9398841E-03
  134. key = 12000 9.0063226 -1.6466819E-03 -1.6466819E-03
  135. key = 16000 4.5322186 -8.40161775E-04 -8.40161775E-04
  136. key = 20000 2.2850284 -4.206522E-04 -4.206522E-04
  137. key = 24000 1.167001 -2.10499225E-04 -2.10499225E-04
  138. key = 28000 0.6010346 -1.061464E-04 -1.061464E-04
  139. key = 32000 0.3178298 -5.36272E-05 -5.36272E-05
  140. key = 36000 0.172017 -2.76446E-05 -2.76446E-05
  141. key = 40000 0.096673 -1.4632525E-05 -1.4632525E-05
  142. key = 44000 0.0549568 -8.039925E-06 -8.039925E-06
  143. key = 48000 0.0323536 -4.5705E-06 -4.5705E-06
  144. key = 52000 0.0183928 -2.763075E-06 -2.763075E-06
  145. key = 56000 0.010249 -1.613525E-06 -1.613525E-06
  146. key = 60000 0.0054846 -9.21025E-07 -9.21025E-07
  147. key = 64000 0.0028808 -5.05525E-07 -5.05525E-07
  148. key = 68000 0.0014404 -2.70075E-07 -2.70075E-07
  149. key = 72000 0.0007202 -1.5235E-07 -1.5235E-07
  150. key = 76000 0.0002216 -9.0025E-08 -9.0025E-08
  151. key = 80000 0 -5.54E-08 -5.54E-08
  152. }
  153. temperatureCurve
  154. {
  155. 0 279.19 -0.00802083375 -0.00802083375
  156. 9600 205.8567917 -0.0011360735 -0.0011325715
  157. 16800 205.8567917 0.0011325715 0.0011325715
  158. 24800 258.2376548 0.000619018 0.000619018
  159. 44800 258.2376548 -0.000853660375 -0.000853660375
  160. 64000 178.2377912 -0.0011360735 -0.0011360735
  161. 72000 178.2377912 0.000592218125 0.000592218125
  162. 80000 219.1901023 0.000868255125 0.000868255125
  163. 120000 0 -0.000562011375 -0.000562011375
  164. }
  165.  
  166. // Atmosphere Temperature
  167. temperatureMultiplier = 1.0
  168. atmosphereMolarMass = 0.022
  169. }
  170. @Orbit
  171. {
  172. // Moves Tylo to Duna's position in space.
  173. // -- Note the "@" on the front of referenceBody. This means edit an existing attribute
  174. @referenceBody = Sun
  175.  
  176. // Other orbit stuff
  177. inclination = 1.22
  178. eccentricity = 0.03
  179. semiMajorAxis = 24708887045
  180. longitudeOfAscendingNode = 0
  181. argumentOfPeriapsis = 0
  182. meanAnomalyAtEpoch = 3.14
  183. epoch = 0
  184. color = RGBA(102, 63.75, 38.25, 255)
  185. }
  186. }
  187. }
  188. @Kopernicus:FOR[AlternisKerbol]:NEEDS[GalacticNeighborhood]
  189. {
  190. @Body[Tylo]
  191. {
  192. @Properties
  193. {
  194. description = Stumbos is one of the largest rocky planets on record. With a very thin atmosphere and a very high gravity, it would be quite the challenge to land on. Not enough air to slow you down, and so much air that you have to worry about re-entry heating. Luckily engineers won't have to worry about landing on it, because it is a distant planet lightyears away.
  195. }
  196. }
  197. }
Advertisement
Add Comment
Please, Sign In to add comment