Advertisement
Guest User

Untitled

a guest
Jul 13th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.70 KB | None | 0 0
  1. ''''
  2. Debug information for CONTRACT_TYPE 'SoundingRocketDifficult':
  3.  
  4. Configuration:
  5. CONTRACT_TYPE
  6. {
  7. failureFunds = @advanceFunds
  8. rewardFunds = @advanceFunds + 1000
  9. advanceFunds = 400.0 + @/launchCost * 3
  10. prestige = Trivial
  11. maxSimultaneous = 1
  12. maxCompletions = 0
  13. targetBody = HomeWorld()
  14. autoAccept = false
  15. declinable = true
  16. cancellable = true
  17. deadline = 90
  18. maxExpiry = 30.0
  19. minExpiry = 1.0
  20. completedMessage = Congratulations on a successful launch! The rocket has delivered the payload.
  21. synopsis = Launch
  22. genericDescription = Deliver a new payload to a specified altitude. This contract will stretch your capabilites and enable harder contracts.
  23. description = Design,
  24. title = Sounding Rocket (Difficult)
  25. group = SoundingRockets
  26. name = SoundingRocketDifficult
  27. DATA
  28. {
  29. title = Get New Target Difficulty
  30. maxDifficulty = Min( Random(1.15 , 1.25) * $RP0_SoundingDifficulty , 1060 * 6000 )
  31. type = float
  32. }
  33. DATA
  34. {
  35. title = Max possible random altitude
  36. maxRandAltitudeKM = int( Min($RP0_SoundingMaxAltitudeKM, @maxDifficulty / 70) )
  37. type = int
  38. }
  39. DATA
  40. {
  41. title = Minimum random altitude
  42. minRandAltitudeKM = Max( @maxDifficulty / 1060 , 100 )
  43. type = float
  44. }
  45. DATA
  46. {
  47. title = Find our target altitude in kilometers
  48. targetAltitudeKM = Round(Random(@minRandAltitudeKM, @maxRandAltitudeKM), @maxRandAltitudeKM > 1000 ? 100 : 10)
  49. type = float
  50. }
  51. DATA
  52. {
  53. title = Deliver this many kg payload
  54. targetPayload = Round(@maxDifficulty / @targetAltitudeKM , 1) - 60
  55. type = float
  56. }
  57. DATA
  58. {
  59. title = Deliver this many units of payload
  60. targetPayloadUnits = int( @targetPayload * 5 )
  61. type = int
  62. }
  63. DATA
  64. {
  65. title = reward decreasing multiplier for having more tech
  66. techVals = UnlockedTech().Count() /100
  67. type = float
  68. }
  69. DATA
  70. {
  71. title = exponent on launches for TF reliability
  72. reliabiliyFactor = 1.25 - Min( 0.2, @techVals)
  73. type = float
  74. }
  75. DATA
  76. {
  77. title = reward decreasing multiplier for having more tech
  78. techFactor = Max(0.7, 1 - @techVals)
  79. type = float
  80. }
  81. DATA
  82. {
  83. title = payload factor in launch cost
  84. payloadFactor = Pow((60 + @/targetPayload) / 60 , @/reliabiliyFactor)
  85. type = float
  86. }
  87. DATA
  88. {
  89. title = Rough minimum expected launch cost
  90. launchCost = 11 + @/payloadFactor * @/techFactor * @/targetAltitudeKM / 10
  91. type = float
  92. }
  93. REQUIREMENT
  94. {
  95. targetBody = @/targetBody
  96. type = All
  97. name = Any
  98. REQUIREMENT
  99. {
  100. targetBody = @/targetBody
  101. title = Complete @contractType Contract
  102. contractType = SoundingRocketLow
  103. type = CompleteContract
  104. name = SoundingRocketLow
  105. }
  106. REQUIREMENT
  107. {
  108. targetBody = @/targetBody
  109. invertRequirement = true
  110. title = Have not accepted @contractType Contract
  111. contractType = SoundingRocketMedium
  112. type = AcceptContract
  113. name = AcceptContract
  114. }
  115. REQUIREMENT
  116. {
  117. targetBody = @/targetBody
  118. invertRequirement = true
  119. title = Have not accepted @contractType Contract
  120. contractType = SoundingRocketEasy
  121. type = AcceptContract
  122. name = AcceptContract
  123. }
  124. }
  125. BEHAVIOUR
  126. {
  127. type = Expression
  128. name = SetMaxSoundingDifficulty
  129. CONTRACT_COMPLETED_SUCCESS
  130. {
  131. RP0_SoundingDifficulty = @/maxDifficulty
  132. }
  133. }
  134. PARAMETER
  135. {
  136. targetBody = @/targetBody
  137. title = Reach @/targetAltitudeKM.Print() km with a sounding rocket.
  138. type = VesselParameterGroup
  139. name = VesselGroup
  140. PARAMETER
  141. {
  142. targetBody = @/targetBody
  143. hideChildren = true
  144. title = Launch a New Vessel
  145. type = NewVessel
  146. name = NewVessel
  147. }
  148. PARAMETER
  149. {
  150. targetBody = @/targetBody
  151. hideChildren = true
  152. title = Uncrewed
  153. maxCrew = 0
  154. minCrew = 0
  155. type = HasCrew
  156. name = Crewmembers
  157. }
  158. PARAMETER
  159. {
  160. targetBody = @/targetBody
  161. title = Have a SoundingPayload of at least @minQuantity units on the craft
  162. minQuantity = @/targetPayloadUnits
  163. resource = SoundingPayload
  164. type = HasResource
  165. name = HasSoundingPayload
  166. }
  167. PARAMETER
  168. {
  169. targetBody = @/targetBody
  170. minAltitude = @/targetAltitudeKM * 1000
  171. type = ReachState
  172. name = ReachAlt
  173. }
  174. }
  175. }
  176.  
  177. Data Nodes:
  178. SoundingRocketDifficult
  179. RP0:name = RP0, deterministic = True
  180. RP0:displayName = RP-0, deterministic = True
  181. RP0:minVersion = 1.22.2, deterministic = True
  182. RP0:maxCompletions = 0, deterministic = True
  183. RP0:maxSimultaneous = 0, deterministic = True
  184. RP0:disabledContractType = [ ARMContract, BaseContract, CollectScience, ExploreBody, GrandTour, ISRUContract, RecordTrackContract, PartTest, PlantFlag, RecoverAsset, SatelliteContract, StationContract, SurveyContract, TourismContract, WorldFirstContract, SentinelContract, DMAnomalyContract, DMAsteroidSurveyContract, DMMagneticSurveyContract, DMSurveyContract, RemoteTech ], deterministic = True
  185. RP0:agent = null, deterministic = True
  186. RP0:sortKey = RP-0, deterministic = True
  187. RP0:tip = , deterministic = True
  188. SoundingRockets:name = SoundingRockets, deterministic = True
  189. SoundingRockets:displayName = Sounding Rocket Contracts, deterministic = True
  190. SoundingRockets:minVersion = 1.22.2, deterministic = True
  191. SoundingRockets:maxCompletions = 0, deterministic = True
  192. SoundingRockets:maxSimultaneous = 2, deterministic = True
  193. SoundingRockets:disabledContractType = [], deterministic = True
  194. SoundingRockets:agent = null, deterministic = True
  195. SoundingRockets:sortKey = 20, deterministic = True
  196. SoundingRockets:tip = , deterministic = True
  197. name = SoundingRocketDifficult, deterministic = True
  198. trace = False, deterministic = True
  199. title = Sounding Rocket (Difficult), deterministic = True
  200. tag = , deterministic = True
  201. description = Design,, deterministic = True
  202. topic = , deterministic = True
  203. subject = , deterministic = True
  204. motivation = , deterministic = True
  205. notes = null, deterministic = True
  206. synopsis = Launch, deterministic = True
  207. completedMessage = Congratulations on a successful launch! The rocket has delivered the payload., deterministic = True
  208. agent = null, deterministic = True
  209. minExpiry = 1, deterministic = True
  210. maxExpiry = 30, deterministic = True
  211. deadline = 90, deterministic = True
  212. cancellable = True, deterministic = True
  213. declinable = True, deterministic = True
  214. autoAccept = False, deterministic = True
  215. prestige = [ Trivial ], deterministic = True
  216. targetBody = Kerbin (CelestialBody), deterministic = True
  217. maxCompletions = 0, deterministic = True
  218. maxSimultaneous = 1, deterministic = True
  219. rewardFunds = 1433, deterministic = False
  220. rewardReputation = 0, deterministic = True
  221. rewardScience = 0, deterministic = True
  222. failureFunds = 433, deterministic = False
  223. failureReputation = 0, deterministic = True
  224. advanceFunds = 433, deterministic = False
  225. maxDifficulty = 0, deterministic = False
  226. maxRandAltitudeKM = 0, deterministic = False
  227. minRandAltitudeKM = 100, deterministic = False
  228. targetAltitudeKM = 30, deterministic = False
  229. targetPayload = -60, deterministic = False
  230. targetPayloadUnits = -300, deterministic = False
  231. techVals = 0, deterministic = False
  232. reliabiliyFactor = 1.25, deterministic = False
  233. techFactor = 1, deterministic = False
  234. payloadFactor = 0, deterministic = False
  235. launchCost = 11, deterministic = False
  236. genericTitle = Sounding Rocket (Difficult), deterministic = True
  237. genericDescription = Deliver a new payload to a specified altitude. This contract will stretch your capabilites and enable harder contracts., deterministic = True
  238. sortKey = Sounding Rocket (Difficult), deterministic = True
  239.  
  240. VesselGroup
  241. type = VesselParameterGroup, deterministic = True
  242. name = VesselGroup, deterministic = True
  243. targetBody = Kerbin (CelestialBody), deterministic = True
  244. rewardFunds = 0, deterministic = True
  245. rewardReputation = 0, deterministic = True
  246. rewardScience = 0, deterministic = True
  247. failureFunds = 0, deterministic = True
  248. failureReputation = 0, deterministic = True
  249. optional = False, deterministic = True
  250. disableOnStateChange = null, deterministic = True
  251. completeInSequence = False, deterministic = True
  252. hidden = False, deterministic = True
  253. hideChildren = False, deterministic = True
  254. title = null, deterministic = False
  255. notes = null, deterministic = True
  256. completedMessage = null, deterministic = True
  257. duration = 00:00:00, deterministic = True
  258. define = null, deterministic = True
  259. defineList = null, deterministic = True
  260. vessel = [], deterministic = True
  261. dissassociateVesselsOnContractFailure = True, deterministic = True
  262. dissassociateVesselsOnContractCompletion = False, deterministic = True
  263. hideVesselName = False, deterministic = True
  264.  
  265. NewVessel
  266. type = NewVessel, deterministic = True
  267. name = NewVessel, deterministic = True
  268. targetBody = Kerbin (CelestialBody), deterministic = True
  269. rewardFunds = 0, deterministic = True
  270. rewardReputation = 0, deterministic = True
  271. rewardScience = 0, deterministic = True
  272. failureFunds = 0, deterministic = True
  273. failureReputation = 0, deterministic = True
  274. optional = False, deterministic = True
  275. disableOnStateChange = null, deterministic = True
  276. completeInSequence = False, deterministic = True
  277. hidden = False, deterministic = True
  278. hideChildren = True, deterministic = True
  279. title = Launch a New Vessel, deterministic = True
  280. notes = null, deterministic = True
  281. completedMessage = null, deterministic = True
  282.  
  283. Crewmembers
  284. type = HasCrew, deterministic = True
  285. name = Crewmembers, deterministic = True
  286. targetBody = Kerbin (CelestialBody), deterministic = True
  287. rewardFunds = 0, deterministic = True
  288. rewardReputation = 0, deterministic = True
  289. rewardScience = 0, deterministic = True
  290. failureFunds = 0, deterministic = True
  291. failureReputation = 0, deterministic = True
  292. optional = False, deterministic = True
  293. disableOnStateChange = null, deterministic = True
  294. completeInSequence = False, deterministic = True
  295. hidden = False, deterministic = True
  296. hideChildren = True, deterministic = True
  297. title = Uncrewed, deterministic = True
  298. notes = null, deterministic = True
  299. completedMessage = null, deterministic = True
  300. trait = null, deterministic = True
  301. minExperience = 0, deterministic = True
  302. maxExperience = 5, deterministic = True
  303. minCrew = 0, deterministic = True
  304. maxCrew = 0, deterministic = True
  305. kerbal = [], deterministic = True
  306. excludeKerbal = [], deterministic = True
  307.  
  308. HasSoundingPayload
  309. type = HasResource, deterministic = True
  310. name = HasSoundingPayload, deterministic = True
  311. targetBody = Kerbin (CelestialBody), deterministic = True
  312. rewardFunds = 0, deterministic = True
  313. rewardReputation = 0, deterministic = True
  314. rewardScience = 0, deterministic = True
  315. failureFunds = 0, deterministic = True
  316. failureReputation = 0, deterministic = True
  317. optional = False, deterministic = True
  318. disableOnStateChange = null, deterministic = True
  319. completeInSequence = False, deterministic = True
  320. hidden = False, deterministic = True
  321. hideChildren = False, deterministic = True
  322. title = Have a SoundingPayload of at least -300 units on the craft, deterministic = False
  323. notes = null, deterministic = True
  324. completedMessage = null, deterministic = True
  325. minQuantity = -300, deterministic = False
  326. maxQuantity = 1.79769313486232E+308, deterministic = True
  327. resource = null, deterministic = True
  328.  
  329. ReachAlt
  330. type = ReachState, deterministic = True
  331. name = ReachAlt, deterministic = True
  332. rewardFunds = 0, deterministic = True
  333. rewardReputation = 0, deterministic = True
  334. rewardScience = 0, deterministic = True
  335. failureFunds = 0, deterministic = True
  336. failureReputation = 0, deterministic = True
  337. optional = False, deterministic = True
  338. disableOnStateChange = null, deterministic = True
  339. completeInSequence = False, deterministic = True
  340. hidden = False, deterministic = True
  341. hideChildren = False, deterministic = True
  342. title = null, deterministic = True
  343. notes = null, deterministic = True
  344. completedMessage = null, deterministic = True
  345. failWhenUnmet = False, deterministic = True
  346. biome = null, deterministic = True
  347. situation = [], deterministic = True
  348. minAltitude = 30000, deterministic = False
  349. maxAltitude = 3.402823E+38, deterministic = True
  350. minTerrainAltitude = 0, deterministic = True
  351. maxTerrainAltitude = 3.402823E+38, deterministic = True
  352. minSpeed = 0, deterministic = True
  353. maxSpeed = 1.79769313486232E+308, deterministic = True
  354. minRateOfClimb = -1.79769313486232E+308, deterministic = True
  355. maxRateOfClimb = 1.79769313486232E+308, deterministic = True
  356. minAcceleration = 0, deterministic = True
  357. maxAcceleration = 3.402823E+38, deterministic = True
  358. targetBody = [ Kerbin (CelestialBody) ], deterministic = True
  359.  
  360. SetMaxSoundingDifficulty
  361. type = Expression, deterministic = True
  362. name = SetMaxSoundingDifficulty, deterministic = True
  363. targetBody = null, deterministic = True
  364. RP0_SoundingDifficulty = 0, deterministic = False
  365.  
  366. Any
  367. type = All, deterministic = True
  368. name = Any, deterministic = True
  369. title = null, deterministic = True
  370. hideChildren = False, deterministic = True
  371. targetBody = Kerbin (CelestialBody), deterministic = True
  372. checkOnActiveContract = False, deterministic = True
  373. invertRequirement = False, deterministic = True
  374.  
  375. SoundingRocketLow
  376. type = CompleteContract, deterministic = True
  377. name = SoundingRocketLow, deterministic = True
  378. title = Complete SoundingRocketLow Contract, deterministic = True
  379. hideChildren = False, deterministic = True
  380. targetBody = Kerbin (CelestialBody), deterministic = True
  381. checkOnActiveContract = False, deterministic = True
  382. invertRequirement = False, deterministic = True
  383. contractType = SoundingRocketLow, deterministic = True
  384. minCount = 1, deterministic = True
  385. maxCount = 4294967295, deterministic = True
  386. cooldownDuration = 00:00:00, deterministic = True
  387.  
  388. AcceptContract
  389. type = AcceptContract, deterministic = True
  390. name = AcceptContract, deterministic = True
  391. title = Have not accepted SoundingRocketMedium Contract, deterministic = True
  392. hideChildren = False, deterministic = True
  393. targetBody = Kerbin (CelestialBody), deterministic = True
  394. checkOnActiveContract = False, deterministic = True
  395. invertRequirement = True, deterministic = True
  396. contractType = SoundingRocketMedium, deterministic = True
  397. minCount = 1, deterministic = True
  398. maxCount = 4294967295, deterministic = True
  399.  
  400. AcceptContract_1
  401. type = AcceptContract, deterministic = True
  402. name = AcceptContract, deterministic = True
  403. title = Have not accepted SoundingRocketEasy Contract, deterministic = True
  404. hideChildren = False, deterministic = True
  405. targetBody = Kerbin (CelestialBody), deterministic = True
  406. checkOnActiveContract = False, deterministic = True
  407. invertRequirement = True, deterministic = True
  408. contractType = SoundingRocketEasy, deterministic = True
  409. minCount = 1, deterministic = True
  410. maxCount = 4294967295, deterministic = True
  411.  
  412.  
  413. Output log:
  414. [INFO] ContractConfigurator.ContractType: Loading CONTRACT_TYPE: 'SoundingRocketDifficult'
  415. [WARNING] ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'SoundingRocketDifficult'
  416. ''''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement