Skip to content

Commit

Permalink
Generate waypoints around landing spot for Mars Rover
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Aug 10, 2024
1 parent b6845d5 commit 6167fe4
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 16 deletions.
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

0 comments on commit 6167fe4

Please sign in to comment.