Skip to content

Commit

Permalink
added KAB cargo bay tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inigmatus committed Aug 29, 2016
1 parent 40b678f commit 0e2a2f2
Show file tree
Hide file tree
Showing 8 changed files with 1,808 additions and 86 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CHANGELOG:

8/28/16 GAP 1.2.8
8/29/16 GAP 1.2.8
- added 6 cargo bay test contracts under the KAB banner in preparation for GAP 1.3's cargo missions. Enjoy!
- Commented out G force code to work around critical KSP 1.1.3 bug where Kerbals on EVA spike 15+ G force on exit from craft, causing G force limit contracts (most air passenger contracts) to fail prematurely.
- fixed Tourism Plus and Strategia compatibility. GAP now shows up under Pilot Focus when Tourism Plus is also installed.

Expand Down
85 changes: 0 additions & 85 deletions Cargo/KAB-Cargo-Mk2

This file was deleted.

301 changes: 301 additions & 0 deletions Cargo/KAB-Cargo-Mk2-Large.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
//KAB-Cargo-Mk2-Large - Kerbal Aircraft Builders: Test the Mk2 Cargo Bay CRG-08

CONTRACT_TYPE
{


//REQUIREMENTS FOR CONTRACT TO APPEAR

REQUIREMENT
{
name = PartUnlocked
type = PartUnlocked

part = mk2CargoBayL

}

REQUIREMENT
{
name = CompleteContract
type = CompleteContract

contractType = KSP-IslandPrep
minCount = 1

}

REQUIREMENT
{
name = CompleteContract
type = CompleteContract

contractType = Wright-5000m
minCount = 1

}


//DATA NODES TO PROCESS FOR CONTRACT USE

DATA
{
type = string

craft = GAPcraftKABCargoMk2Large

}


//CONTRACT DESCRIPTION

name = KAB-Cargo-Mk2-Large
title = Test the Mk2 Cargo Bay CRG-08
group = Kerbal Aircraft Builders
agent = Kerbal Aircraft Builders

description = Maculator Kerman, SSI's senior field engineer and owner of Kerbal Aircraft Builders, wants to know if you're interested in pushing aircraft design capabilities to their limit, and explore the commercial possibilities of SSI technologies. He congratulates you on the recent development of the Mk2 Cargo Bay CRG-08, and says that a potential customer of Kerbal Aircraft Builders, the Kerbal Space Program, would like to provide pressurized cargo services using your cargo bay, but first Kerbal Aircraft Builders needs you to certify the cargo bay's airworthiness by flying it to 5000m, testing it, and returning it back to KSC for evaluation.
synopsis = Simply fly an airplane with a Mk2 Cargo Bay CRG-08 to 5000m, test it, and land back at KSC.
notes = Hey with this, we can finally start dropping snacks to stranded campers at remote locations around Kerbin!
completedMessage = KAB engineers breathe a sigh of relief. Nothing exploded (there was an internal betting pool that your pilot was not aware of). With your flight completed, the cargo bay was tested successfully!
//Contract Limits
maxCompletions = 1
maxSimultaneous = 1
// weight = 10.0
autoAccept = false
declinable = true
cancellable = true
minExpiry = 7.0
maxExpiry = 7.0
deadline = 0
//Contract Reward Modifiers
prestige = Trivial
targetBody = Kerbin
//Contract Rewards
advanceFunds = 2000
rewardFunds = 10000.0
rewardReputation = 0.0
rewardScience = 2.0
//Contract Penalties
failureFunds = 2000.0
failureReputation = 0.0
//PARAMETERS FOR CONTRACT COMPLETION
//Craft definition
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = Your aircraft must
define = @/craft
dissassociateVesselsOnContractCompletion = true
PARAMETER
{
name = HasCrew
type = HasCrew
title = have a certified pilot
trait = Pilot
minCrew = 1
disableOnStateChange = false
hideChildren = true
}
PARAMETER
{
name = PartValidation
type = PartValidation
title = have wings
category = Aero
disableOnStateChange = false
hideChildren = true
}
PARAMETER
{
name = PartValidation
type = PartValidation
title = have a Mk2 Cargo Bay CRG-08
part = mk2CargoBayL
disableOnStateChange = false
hideChildren = true
}
disableOnStateChange = false
}
//Contract Goals
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = fly to 5000m and test the cargo bay
vessel = @/craft
PARAMETER
{
name = PartTest
type = PartTest
title = test cargo bay
part = mk2CargoBayL
PARAMETER
{
name = ReachState
type = ReachState
title = when flying above 5000m
targetBody = Kerbin
situation = FLYING
minAltitude = 5000
hideChildren = true
disableOnStateChange = true
}
completeInSequence = true
}
completeInSequence = true
disableOnStateChange = true
hideChildren = true
}
//Recovery Parameter - Landing
PARAMETER
{
name = Any
type = Any
title = and then land and stop
PARAMETER
{
name = Any
type = Any
title = at one of the following recovery areas
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = the KSC Runway
vessel = @/craft
PARAMETER
{
name = ReachState
type = ReachState
targetBody = Kerbin
biome = Runway
situation = LANDED
maxSpeed = 0.0
disableOnStateChange = false
hideChildren = true
}
disableOnStateChange = false
hideChildren = true
}
PARAMETER
{
name = VesselParameterGroup
type = VesselParameterGroup
title = or the Spaceplane Hangar Air Terminal
vessel = @/craft
PARAMETER
{
name = ReachState
type = ReachState
targetBody = Kerbin
biome = SPH
situation = LANDED
maxSpeed = 0.0
disableOnStateChange = false
hideChildren = true
}
disableOnStateChange = false
hideChildren = true
}
disableOnStateChange = false
}
completeInSequence = true
disableOnStateChange = false
}
//Recovery Parameter - Craft & Kerbal Safety Check
PARAMETER
{
name = All
type = All
title = safely
PARAMETER
{
name = VesselNotDestroyed
type = VesselNotDestroyed
title = without destroying your aircraft
vessel = @/craft
}
PARAMETER
{
name = KerbalDeaths
type = KerbalDeaths
title = or killing anyone
vessel = @/craft
}
completeInSequence = true
disableOnStateChange = true
}
}
Loading

0 comments on commit 0e2a2f2

Please sign in to comment.