Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions GameData/RP-1/Contracts/Groups.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -296,35 +296,43 @@ CONTRACT_GROUP
agent = Exploration
}
CONTRACT_GROUP
{
name = MarsHabitation
displayName = Mars Habitation
minVersion = 1.12.2
sortKey = 46
agent = Base Construction
}
CONTRACT_GROUP
{
name = CrewedVenusExp
displayName = Crewed Venus Exploration
minVersion = 1.12.2
sortKey = 46
sortKey = 47
agent = Exploration
}
CONTRACT_GROUP
{
name = CrewedExploration
displayName = Crewed Solar System Exploration
minVersion = 1.12.2
sortKey = 47
sortKey = 48
agent = Exploration
}
CONTRACT_GROUP
{
name = Records
displayName = Records
minVersion = 1.12.2
sortKey = 48
sortKey = 49
agent = Federation Aeronautique Internationale
}
CONTRACT_GROUP
{
name = HumanRecords
displayName = Human Records
minVersion = 1.12.2
sortKey = 49
sortKey = 50
agent = Federation Aeronautique Internationale
}

Expand Down
98 changes: 98 additions & 0 deletions GameData/RP-1/Contracts/Mars Habitation/MH_Agriculture.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
CONTRACT_TYPE
{
name = MH_Agriculture
title = Martian Agriculture
group = MarsHabitation

description = <b>Program: Mars Habitation<br>Type: <color=green>Required</color></b><br><br>Resupplies from Earth take a while to get to Mars - it would be much better to produce everything there, instead of having to ship it in. Add enough <b>hydroponic greenhouses</b> to our Martian Base, so that we have enough to feed all six crew. To demonstrate nominal operation, grow crops for 120 days before the first expedition arrives.

synopsis = Grow food at the Martian Base

completedMessage = The first Martian harvest is in, and there is enough of it for a full crew! Fresh food, grown 200 million kilometres from home - but tastes almost like it does back on Earth!

sortKey = 2103

cancellable = true
declinable = false
autoAccept = false
minExpiry = 0
maxExpiry = 0
maxCompletions = 1
maxSimultaneous = 1
deadline = 0

targetBody = Mars


// ************ REWARDS ************
prestige = Significant
advanceFunds = 0
rewardScience = 0
rewardFunds = 0
failureFunds = 0
rewardReputation = 1500
failureReputation = 0

// ************ REQUIREMENTS ************

REQUIREMENT
{
name = ProgramActive
type = ProgramActive
program = MarsHabitation
}
REQUIREMENT
{
name = CompleteContract
type = CompleteContract
contractType = MH_BaseLanding
}

// ************ PARAMETERS ************

PARAMETER
{
name = MartianAgriculture
type = VesselParameterGroup
title = Grow food at the Martian Base for 120 days
vessel = MarsBase
notes = You can work on other contracts while the Base is working. You are safe to return to Mission Control
disableOnStateChange = true

PARAMETER
{
name = ReachState
type = ReachState
targetBody = Mars
situation = LANDED
hideChildren = true
}
PARAMETER
{
name = HasHydroponics
type = HasResource
resource = Resource("_Hydroponics") // Doesn't like a leading _
minQuantity = 11.99
title = Run enough Hydroponics to feed 6 crew
hideChildren = true
}
PARAMETER
{
name = HasAmmonia
type = HasResource
resource = Ammonia
minQuantity = 0.01
title = Keep the crops supplied with Ammonia
hideChildren = true
}
PARAMETER
{
name = Duration
type = Duration
duration = 120d
preWaitText = Plant the first crops
waitingText = Growing crops
completionText = 120 days of Martian agriculture completed
}
}
}
99 changes: 99 additions & 0 deletions GameData/RP-1/Contracts/Mars Habitation/MH_BaseLanding.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
CONTRACT_TYPE
{
name = MH_BaseLanding
title = Martian Base Landing
group = MarsHabitation

description = <b>Program: Mars Habitation<br>Type: <color=green>Required</color></b><br><br>When our astronauts first set foot on Mars, they only stayed for a short while. But now, it is time to change that! Like we have done on the Moon, we will expand our stays on Mars into proper long term habitation. Since Mars is not in our celestial backyard, you'll have to assemble the base ahead of the astronauts, so that they have a home away from home waiting for them. Our first crews only camped on Mars for a few weeks. To live there, they need a proper home waiting for them when they arrive. Land an <b>uncrewed</b> base on Mars with room for at least six crew and a year of Research Payload.<br><br>Every contract in this program will be related to this base, so be mindful of where you land it. Every later contract of this program uses this base, so choose the landing site carefully.

synopsis = Land an uncrewed base on Mars

completedMessage = The base has touched down safely and is ready for its first crew. Mars has its first permanent building!

sortKey = 2100

cancellable = true
declinable = false
autoAccept = false
minExpiry = 0
maxExpiry = 0
maxCompletions = 1
maxSimultaneous = 1
deadline = 0

targetBody = Mars

// ************ REWARDS ************

prestige = Significant
advanceFunds = 0
rewardScience = 0
rewardReputation = 1500
rewardFunds = 0
failureReputation = 0
failureFunds = 0

// ************ REQUIREMENTS ************

REQUIREMENT
{
name = ProgramActive
type = ProgramActive
program = MarsHabitation
}

// ************ PARAMETERS ************

PARAMETER
{
name = vesselGroupLaunch
type = VesselParameterGroup
title = Land an uncrewed Martian Base
notes = The base must have room for at least 6 crew and 3000 units of Research Payload.
define = MarsBase
disableOnStateChange = true

PARAMETER
{
name = NewVessel
type = NewVessel
title = Launch a new Base
hideChildren = true
}
PARAMETER
{
name = Uncrewed
type = HasCrew
minCrew = 0
maxCrew = 0
title = Uncrewed
hideChildren = true
}
PARAMETER
{
name = HasCapacity
type = HasCrewCapacity
minCapacity = 6
title = Space for at least 6 crew
hideChildren = true
}
PARAMETER
{
name = researchPayloadCapacity
type = HasResourceCapacity
resource = ResearchPayload
minQuantity = 4199.9
title = Room for at least 4200 units of Research Payload
hideChildren = true
}
PARAMETER
{
name = LandOnMars
type = ReachState
title = Land on Mars
targetBody = Mars
situation = LANDED
hideChildren = true
}
}
}
122 changes: 122 additions & 0 deletions GameData/RP-1/Contracts/Mars Habitation/MH_Cargo.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
CONTRACT_TYPE
{
name = MH_Cargo
title = Uncrewed Martian Cargo Delivery
group = MarsHabitation

description = <b>Program: Mars Habitation<br>Type: <color=blue>Optional</color></b><br><br>While our base produces almost everything on-site, there are some things it cannot source locally, such as electronics. Land an <b>uncrewed</b> cargo lander within 2 km of the Martian Base, carrying at least a year of Research Payload.

synopsis = Land an uncrewed cargo lander next to the Martian Base

completedMessage = The cargo lander has touched down safely next to the Base. The crew are already unpacking!

sortKey = 2108

cancellable = true
declinable = true
autoAccept = false
minExpiry = 0
maxExpiry = 0
maxCompletions = 4
maxSimultaneous = 1
deadline = 0

targetBody = Mars


// ************ REWARDS ************
prestige = Trivial
advanceFunds = 0
rewardScience = 0
rewardFunds = 0
failureFunds = 0
rewardReputation = 1000
failureReputation = 0

// ************ REQUIREMENTS ************

REQUIREMENT
{
name = ProgramActive
type = ProgramActive
program = MarsHabitation
}
REQUIREMENT
{
name = CompleteContract
type = CompleteContract
contractType = MH_BaseLanding
}

// ************ PARAMETERS ************

PARAMETER
{
name = CargoLanding
type = VesselParameterGroup
title = Land an uncrewed cargo lander next to the Martian Base
disableOnStateChange = true

PARAMETER
{
name = NewVessel
type = NewVessel
title = Launch a new cargo lander
hideChildren = true
}
PARAMETER
{
name = Uncrewed
type = HasCrew
minCrew = 0
maxCrew = 0
title = Uncrewed
hideChildren = true
}
PARAMETER
{
name = HasResearchPayload
type = HasResource
resource = ResearchPayload
minQuantity = 3000
title = At least 3000 units of Research Payload
hideChildren = true
}
PARAMETER
{
name = LandOnMars
type = ReachState
targetBody = Mars
situation = LANDED
title = Land on Mars
hideChildren = true
}
PARAMETER
{
name = NearBase
type = VisitWaypoint
index = 0
distance = 2000.0
title = Land within 2 km of the Martian Base
showMessages = true
hideChildren = true
}
}

BEHAVIOUR
{
name = WaypointGenerator
type = WaypointGenerator

WAYPOINT
{
name = Martian Base
hidden = False
targetBody = Mars
icon = marker
altitude = 0.0
latitude = Vessel(MarsBase).Location().Latitude()
longitude = Vessel(MarsBase).Location().Longitude()
}
}
}
Loading
Loading