Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ''''
- Debug information for CONTRACT_TYPE 'SoundingRocketDifficult':
- Configuration:
- CONTRACT_TYPE
- {
- failureFunds = @advanceFunds
- rewardFunds = @advanceFunds + 1000
- advanceFunds = 400.0 + @/launchCost * 3
- prestige = Trivial
- maxSimultaneous = 1
- maxCompletions = 0
- targetBody = HomeWorld()
- autoAccept = false
- declinable = true
- cancellable = true
- deadline = 90
- maxExpiry = 30.0
- minExpiry = 1.0
- completedMessage = Congratulations on a successful launch! The rocket has delivered the payload.
- synopsis = Launch
- genericDescription = Deliver a new payload to a specified altitude. This contract will stretch your capabilites and enable harder contracts.
- description = Design,
- title = Sounding Rocket (Difficult)
- group = SoundingRockets
- name = SoundingRocketDifficult
- DATA
- {
- title = Get New Target Difficulty
- maxDifficulty = Min( Random(1.15 , 1.25) * $RP0_SoundingDifficulty , 1060 * 6000 )
- type = float
- }
- DATA
- {
- title = Max possible random altitude
- maxRandAltitudeKM = int( Min($RP0_SoundingMaxAltitudeKM, @maxDifficulty / 70) )
- type = int
- }
- DATA
- {
- title = Minimum random altitude
- minRandAltitudeKM = Max( @maxDifficulty / 1060 , 100 )
- type = float
- }
- DATA
- {
- title = Find our target altitude in kilometers
- targetAltitudeKM = Round(Random(@minRandAltitudeKM, @maxRandAltitudeKM), @maxRandAltitudeKM > 1000 ? 100 : 10)
- type = float
- }
- DATA
- {
- title = Deliver this many kg payload
- targetPayload = Round(@maxDifficulty / @targetAltitudeKM , 1) - 60
- type = float
- }
- DATA
- {
- title = Deliver this many units of payload
- targetPayloadUnits = int( @targetPayload * 5 )
- type = int
- }
- DATA
- {
- title = reward decreasing multiplier for having more tech
- techVals = UnlockedTech().Count() /100
- type = float
- }
- DATA
- {
- title = exponent on launches for TF reliability
- reliabiliyFactor = 1.25 - Min( 0.2, @techVals)
- type = float
- }
- DATA
- {
- title = reward decreasing multiplier for having more tech
- techFactor = Max(0.7, 1 - @techVals)
- type = float
- }
- DATA
- {
- title = payload factor in launch cost
- payloadFactor = Pow((60 + @/targetPayload) / 60 , @/reliabiliyFactor)
- type = float
- }
- DATA
- {
- title = Rough minimum expected launch cost
- launchCost = 11 + @/payloadFactor * @/techFactor * @/targetAltitudeKM / 10
- type = float
- }
- REQUIREMENT
- {
- targetBody = @/targetBody
- type = All
- name = Any
- REQUIREMENT
- {
- targetBody = @/targetBody
- title = Complete @contractType Contract
- contractType = SoundingRocketLow
- type = CompleteContract
- name = SoundingRocketLow
- }
- REQUIREMENT
- {
- targetBody = @/targetBody
- invertRequirement = true
- title = Have not accepted @contractType Contract
- contractType = SoundingRocketMedium
- type = AcceptContract
- name = AcceptContract
- }
- REQUIREMENT
- {
- targetBody = @/targetBody
- invertRequirement = true
- title = Have not accepted @contractType Contract
- contractType = SoundingRocketEasy
- type = AcceptContract
- name = AcceptContract
- }
- }
- BEHAVIOUR
- {
- type = Expression
- name = SetMaxSoundingDifficulty
- CONTRACT_COMPLETED_SUCCESS
- {
- RP0_SoundingDifficulty = @/maxDifficulty
- }
- }
- PARAMETER
- {
- targetBody = @/targetBody
- title = Reach @/targetAltitudeKM.Print() km with a sounding rocket.
- type = VesselParameterGroup
- name = VesselGroup
- PARAMETER
- {
- targetBody = @/targetBody
- hideChildren = true
- title = Launch a New Vessel
- type = NewVessel
- name = NewVessel
- }
- PARAMETER
- {
- targetBody = @/targetBody
- hideChildren = true
- title = Uncrewed
- maxCrew = 0
- minCrew = 0
- type = HasCrew
- name = Crewmembers
- }
- PARAMETER
- {
- targetBody = @/targetBody
- title = Have a SoundingPayload of at least @minQuantity units on the craft
- minQuantity = @/targetPayloadUnits
- resource = SoundingPayload
- type = HasResource
- name = HasSoundingPayload
- }
- PARAMETER
- {
- targetBody = @/targetBody
- minAltitude = @/targetAltitudeKM * 1000
- type = ReachState
- name = ReachAlt
- }
- }
- }
- Data Nodes:
- SoundingRocketDifficult
- RP0:name = RP0, deterministic = True
- RP0:displayName = RP-0, deterministic = True
- RP0:minVersion = 1.22.2, deterministic = True
- RP0:maxCompletions = 0, deterministic = True
- RP0:maxSimultaneous = 0, deterministic = True
- 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
- RP0:agent = null, deterministic = True
- RP0:sortKey = RP-0, deterministic = True
- RP0:tip = , deterministic = True
- SoundingRockets:name = SoundingRockets, deterministic = True
- SoundingRockets:displayName = Sounding Rocket Contracts, deterministic = True
- SoundingRockets:minVersion = 1.22.2, deterministic = True
- SoundingRockets:maxCompletions = 0, deterministic = True
- SoundingRockets:maxSimultaneous = 2, deterministic = True
- SoundingRockets:disabledContractType = [], deterministic = True
- SoundingRockets:agent = null, deterministic = True
- SoundingRockets:sortKey = 20, deterministic = True
- SoundingRockets:tip = , deterministic = True
- name = SoundingRocketDifficult, deterministic = True
- trace = False, deterministic = True
- title = Sounding Rocket (Difficult), deterministic = True
- tag = , deterministic = True
- description = Design,, deterministic = True
- topic = , deterministic = True
- subject = , deterministic = True
- motivation = , deterministic = True
- notes = null, deterministic = True
- synopsis = Launch, deterministic = True
- completedMessage = Congratulations on a successful launch! The rocket has delivered the payload., deterministic = True
- agent = null, deterministic = True
- minExpiry = 1, deterministic = True
- maxExpiry = 30, deterministic = True
- deadline = 90, deterministic = True
- cancellable = True, deterministic = True
- declinable = True, deterministic = True
- autoAccept = False, deterministic = True
- prestige = [ Trivial ], deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- maxCompletions = 0, deterministic = True
- maxSimultaneous = 1, deterministic = True
- rewardFunds = 1433, deterministic = False
- rewardReputation = 0, deterministic = True
- rewardScience = 0, deterministic = True
- failureFunds = 433, deterministic = False
- failureReputation = 0, deterministic = True
- advanceFunds = 433, deterministic = False
- maxDifficulty = 0, deterministic = False
- maxRandAltitudeKM = 0, deterministic = False
- minRandAltitudeKM = 100, deterministic = False
- targetAltitudeKM = 30, deterministic = False
- targetPayload = -60, deterministic = False
- targetPayloadUnits = -300, deterministic = False
- techVals = 0, deterministic = False
- reliabiliyFactor = 1.25, deterministic = False
- techFactor = 1, deterministic = False
- payloadFactor = 0, deterministic = False
- launchCost = 11, deterministic = False
- genericTitle = Sounding Rocket (Difficult), deterministic = True
- genericDescription = Deliver a new payload to a specified altitude. This contract will stretch your capabilites and enable harder contracts., deterministic = True
- sortKey = Sounding Rocket (Difficult), deterministic = True
- VesselGroup
- type = VesselParameterGroup, deterministic = True
- name = VesselGroup, deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- rewardFunds = 0, deterministic = True
- rewardReputation = 0, deterministic = True
- rewardScience = 0, deterministic = True
- failureFunds = 0, deterministic = True
- failureReputation = 0, deterministic = True
- optional = False, deterministic = True
- disableOnStateChange = null, deterministic = True
- completeInSequence = False, deterministic = True
- hidden = False, deterministic = True
- hideChildren = False, deterministic = True
- title = null, deterministic = False
- notes = null, deterministic = True
- completedMessage = null, deterministic = True
- duration = 00:00:00, deterministic = True
- define = null, deterministic = True
- defineList = null, deterministic = True
- vessel = [], deterministic = True
- dissassociateVesselsOnContractFailure = True, deterministic = True
- dissassociateVesselsOnContractCompletion = False, deterministic = True
- hideVesselName = False, deterministic = True
- NewVessel
- type = NewVessel, deterministic = True
- name = NewVessel, deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- rewardFunds = 0, deterministic = True
- rewardReputation = 0, deterministic = True
- rewardScience = 0, deterministic = True
- failureFunds = 0, deterministic = True
- failureReputation = 0, deterministic = True
- optional = False, deterministic = True
- disableOnStateChange = null, deterministic = True
- completeInSequence = False, deterministic = True
- hidden = False, deterministic = True
- hideChildren = True, deterministic = True
- title = Launch a New Vessel, deterministic = True
- notes = null, deterministic = True
- completedMessage = null, deterministic = True
- Crewmembers
- type = HasCrew, deterministic = True
- name = Crewmembers, deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- rewardFunds = 0, deterministic = True
- rewardReputation = 0, deterministic = True
- rewardScience = 0, deterministic = True
- failureFunds = 0, deterministic = True
- failureReputation = 0, deterministic = True
- optional = False, deterministic = True
- disableOnStateChange = null, deterministic = True
- completeInSequence = False, deterministic = True
- hidden = False, deterministic = True
- hideChildren = True, deterministic = True
- title = Uncrewed, deterministic = True
- notes = null, deterministic = True
- completedMessage = null, deterministic = True
- trait = null, deterministic = True
- minExperience = 0, deterministic = True
- maxExperience = 5, deterministic = True
- minCrew = 0, deterministic = True
- maxCrew = 0, deterministic = True
- kerbal = [], deterministic = True
- excludeKerbal = [], deterministic = True
- HasSoundingPayload
- type = HasResource, deterministic = True
- name = HasSoundingPayload, deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- rewardFunds = 0, deterministic = True
- rewardReputation = 0, deterministic = True
- rewardScience = 0, deterministic = True
- failureFunds = 0, deterministic = True
- failureReputation = 0, deterministic = True
- optional = False, deterministic = True
- disableOnStateChange = null, deterministic = True
- completeInSequence = False, deterministic = True
- hidden = False, deterministic = True
- hideChildren = False, deterministic = True
- title = Have a SoundingPayload of at least -300 units on the craft, deterministic = False
- notes = null, deterministic = True
- completedMessage = null, deterministic = True
- minQuantity = -300, deterministic = False
- maxQuantity = 1.79769313486232E+308, deterministic = True
- resource = null, deterministic = True
- ReachAlt
- type = ReachState, deterministic = True
- name = ReachAlt, deterministic = True
- rewardFunds = 0, deterministic = True
- rewardReputation = 0, deterministic = True
- rewardScience = 0, deterministic = True
- failureFunds = 0, deterministic = True
- failureReputation = 0, deterministic = True
- optional = False, deterministic = True
- disableOnStateChange = null, deterministic = True
- completeInSequence = False, deterministic = True
- hidden = False, deterministic = True
- hideChildren = False, deterministic = True
- title = null, deterministic = True
- notes = null, deterministic = True
- completedMessage = null, deterministic = True
- failWhenUnmet = False, deterministic = True
- biome = null, deterministic = True
- situation = [], deterministic = True
- minAltitude = 30000, deterministic = False
- maxAltitude = 3.402823E+38, deterministic = True
- minTerrainAltitude = 0, deterministic = True
- maxTerrainAltitude = 3.402823E+38, deterministic = True
- minSpeed = 0, deterministic = True
- maxSpeed = 1.79769313486232E+308, deterministic = True
- minRateOfClimb = -1.79769313486232E+308, deterministic = True
- maxRateOfClimb = 1.79769313486232E+308, deterministic = True
- minAcceleration = 0, deterministic = True
- maxAcceleration = 3.402823E+38, deterministic = True
- targetBody = [ Kerbin (CelestialBody) ], deterministic = True
- SetMaxSoundingDifficulty
- type = Expression, deterministic = True
- name = SetMaxSoundingDifficulty, deterministic = True
- targetBody = null, deterministic = True
- RP0_SoundingDifficulty = 0, deterministic = False
- Any
- type = All, deterministic = True
- name = Any, deterministic = True
- title = null, deterministic = True
- hideChildren = False, deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- checkOnActiveContract = False, deterministic = True
- invertRequirement = False, deterministic = True
- SoundingRocketLow
- type = CompleteContract, deterministic = True
- name = SoundingRocketLow, deterministic = True
- title = Complete SoundingRocketLow Contract, deterministic = True
- hideChildren = False, deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- checkOnActiveContract = False, deterministic = True
- invertRequirement = False, deterministic = True
- contractType = SoundingRocketLow, deterministic = True
- minCount = 1, deterministic = True
- maxCount = 4294967295, deterministic = True
- cooldownDuration = 00:00:00, deterministic = True
- AcceptContract
- type = AcceptContract, deterministic = True
- name = AcceptContract, deterministic = True
- title = Have not accepted SoundingRocketMedium Contract, deterministic = True
- hideChildren = False, deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- checkOnActiveContract = False, deterministic = True
- invertRequirement = True, deterministic = True
- contractType = SoundingRocketMedium, deterministic = True
- minCount = 1, deterministic = True
- maxCount = 4294967295, deterministic = True
- AcceptContract_1
- type = AcceptContract, deterministic = True
- name = AcceptContract, deterministic = True
- title = Have not accepted SoundingRocketEasy Contract, deterministic = True
- hideChildren = False, deterministic = True
- targetBody = Kerbin (CelestialBody), deterministic = True
- checkOnActiveContract = False, deterministic = True
- invertRequirement = True, deterministic = True
- contractType = SoundingRocketEasy, deterministic = True
- minCount = 1, deterministic = True
- maxCount = 4294967295, deterministic = True
- Output log:
- [INFO] ContractConfigurator.ContractType: Loading CONTRACT_TYPE: 'SoundingRocketDifficult'
- [WARNING] ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'SoundingRocketDifficult'
- ''''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement