Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate waypoints around landing spot for Mars Rover #2418

Merged
merged 1 commit into from
Aug 11, 2024
Merged
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
1 change: 0 additions & 1 deletion GameData/RP-1/Contracts/Mars/Mars Probe.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ CONTRACT_TYPE
name = VesselGroup
type = VesselParameterGroup
title = Atmospheric probe Mars
define = ProbeMars

PARAMETER
{
Expand Down
41 changes: 34 additions & 7 deletions GameData/RP-1/Contracts/Mars/Mars Rover.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ CONTRACT_TYPE

PARAMETER
{
name = VesselGroup
name = VesselGroup1
type = VesselParameterGroup
title = Uncrewed rover on Mars
define = ProbeMars
title = Land near waypoint
define = MarsRover
dissassociateVesselsOnContractCompletion = true
resetChildrenWhenVesselDestroyed = true

PARAMETER
{
Expand All @@ -78,16 +80,41 @@ CONTRACT_TYPE
hideChildren = true
}
PARAMETER
{
name = Land
type = ReachState
situation = LANDED
title = Land on Mars
hideChildren = true
}
PARAMETER
{
name = WaypointAlpha
type = VisitWaypoint
index = 0
distance = 100.0
disableOnStateChange = true
title = Safely land near rover site Alpha on Mars
distance = 50000.0
title = Be within 50km of site Alpha
hideChildren = true
showMessages = true
}
}

PARAMETER
{
name = VesselGroup2
type = VesselParameterGroup
title = Visit the other 2 waypoints
vessel = MarsRover

PARAMETER
{
name = Crewmembers
type = HasCrew
minCrew = 0
maxCrew = 0
title = Uncrewed
hideChildren = true
}
PARAMETER
{
name = WaypointBravo
Expand Down Expand Up @@ -145,7 +172,7 @@ CONTRACT_TYPE
icon = marker
altitude = 0.0
waterAllowed = false
nearIndex = 0
vessel = MarsRover
minDistance = 500.0
maxDistance = 1000.0
}
Expand Down
43 changes: 35 additions & 8 deletions GameData/RP-1/Contracts/Mars/Mars RoverRepeat.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ CONTRACT_TYPE
}

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

PARAMETER
{
name = VesselGroup
name = VesselGroup1
type = VesselParameterGroup
title = Uncrewed rover on Mars
define = ProbeMars
title = Land near waypoint
define = MarsRover
dissassociateVesselsOnContractCompletion = true
resetChildrenWhenVesselDestroyed = true

PARAMETER
{
Expand All @@ -78,16 +80,41 @@ CONTRACT_TYPE
hideChildren = true
}
PARAMETER
{
name = Land
type = ReachState
situation = LANDED
title = Land on Mars
hideChildren = true
}
PARAMETER
{
name = WaypointAlpha
type = VisitWaypoint
index = 0
distance = 100.0
disableOnStateChange = true
title = Safely land near rover site Alpha on Mars
distance = 50000.0
title = Be within 50km of site Alpha
hideChildren = true
showMessages = true
}
}

PARAMETER
{
name = VesselGroup2
type = VesselParameterGroup
title = Visit the other 2 waypoints
vessel = MarsRover

PARAMETER
{
name = Crewmembers
type = HasCrew
minCrew = 0
maxCrew = 0
title = Uncrewed
hideChildren = true
}
PARAMETER
{
name = WaypointBravo
Expand Down Expand Up @@ -145,7 +172,7 @@ CONTRACT_TYPE
icon = marker
altitude = 0.0
waterAllowed = false
nearIndex = 0
vessel = MarsRover
minDistance = 500.0
maxDistance = 1000.0
}
Expand Down
Loading