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

Skopos integration #2448

Merged
merged 15 commits into from
Jan 20, 2025
Merged
2 changes: 1 addition & 1 deletion .github/workflows/attachReleaseArtifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
jobs:
attach-release-artifacts:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [check-secret]
if: needs.check-secret.outputs.has-password == 'true'
# Steps represent a sequence of tasks that will be executed as part of the job
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
pr_comment:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/github-script@v5
with:
Expand Down
15 changes: 15 additions & 0 deletions GameData/RP-1/Agencies/Agents.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ AGENT
mentality = Kerbalminded 0.4
}

AGENT
{
RP0Agent = true

name = skopos_telecom_agent
title = Σκοπός Telecom

description = Σκοπός Telecommunications

logoURL = RP-1/Agencies/skopos_telecom_160
logoScaledURL = RP-1/Agencies/skopos_telecom_40

mentality = NoRandomContractMentality
}

AGENT
{
RP0Agent = true // if we clear out AGENTs without this, on FINAL, only RP-0 agents will exist.
Expand Down
Binary file added GameData/RP-1/Agencies/skopos_telecom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GameData/RP-1/Agencies/skopos_telecom_160.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GameData/RP-1/Agencies/skopos_telecom_40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
CONTRACT_TYPE
{
name = EarlyNavNetwork3-SCA
title = Early Navigation Network (3 Satellites)
group = CommApp


description = <b>Program: Early Commercial Applications<br>Type: <color=green>Required</color></b><br><br>The previous launch of the first navigation satellite proved the theories that Doppler shift timing can be used to precisely locate a point or location on the surface of the Earth using satellites. Put that concept into operational use with the first rudimentary satellite navigation network.&br;&br;Build a navigation network with three NavSats that provide more frequent revisit rates than the single previous satellite. Make sure the satellites are spread around the Earth to provide reasonable coverage.&br;&br;<b><color=white>NOTE: You may choose only the 3-satellite or 4-satellite contract.</color></b><br><br><b><color=yellow>NOTE: The satellites will be destroyed upon completion of the contract. This simulates transfer of the payload back to the customer.</color>

synopsis = Launch a 3-satellite navigation network

completedMessage = Congratulations! The network is up and transmitting, and our shakedown testing is complete!

sortKey = 904

cancellable = true
declinable = true
autoAccept = false
minExpiry = 0
maxExpiry = 0
maxCompletions = 1
maxSimultaneous = 1
deadline = 0
targetBody = HomeWorld()

// ************ REWARDS ************
prestige = Trivial // 1.0x
advanceFunds = 0
rewardScience = 0
rewardFunds = 0
failureFunds = 0
rewardReputation = 150
failureReputation = 0 // was @rewardReputation

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

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

REQUIREMENT
{
name = CompleteContract
type = CompleteContract
contractType = FirstNavSat-SCA
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = EarlyNavSat-SCA
invertRequirement = true
}

REQUIREMENT
{

name = CompleteContract
type = CompleteContract
contractType = EarlyNavNetwork4-SCA
invertRequirement = true
}

REQUIREMENT
{
name = AcceptContract
type = AcceptContract
contractType = EarlyNavNetwork4-SCA
invertRequirement = true
}

// NavSat I
PARAMETER
{
name = NavSat1
type = VesselParameterGroup
define = NavSat I
disableOnStateChange = false

PARAMETER
{
name = IsNotVessel
type = IsNotVessel
vessel = NavSat II
}

PARAMETER
{
name = IsNotVessel
type = IsNotVessel

vessel = NavSat III
}
PARAMETER
{
name = HasNavSatPayload
type = HasResource
resource = NavSatPayload
minQuantity = 99.9
title = Have a NavSatPayload of at least 100 units on the craft
disableOnStateChange = false
}

PARAMETER
{
name = Orbit
type = Orbit
disableOnStateChange = false
minPeA = 700000
maxApA = 1200000
minInclination = 88
maxInclination = 92
maxEccentricity = 0.004
}
}
// NavSat II
PARAMETER
{
name = NavSat2
type = VesselParameterGroup
define = NavSat II
disableOnStateChange = false

PARAMETER
{
name = IsNotVessel
type = IsNotVessel
vessel = NavSat III
}
PARAMETER
{
name = HasNavSatPayload
type = HasResource
resource = NavSatPayload
minQuantity = 99.9
title = Have a NavSatPayload of at least 100 units on the craft
disableOnStateChange = false
}

PARAMETER
{
name = Orbit
type = Orbit
disableOnStateChange = false
minPeA = 700000
maxApA = 1200000
minInclination = 88
maxInclination = 92
maxEccentricity = 0.004
}
}
// NavSat III
PARAMETER
{
name = NavSat3
type = VesselParameterGroup
define = NavSat III
disableOnStateChange = false

PARAMETER
{
name = IsNotVessel
type = IsNotVessel
vessel = NavSat I
}
PARAMETER
{
name = HasNavSatPayload
type = HasResource
resource = NavSatPayload
minQuantity = 99.9
title = Have a NavSatPayload of at least 100 units on the craft
disableOnStateChange = false
}

PARAMETER
{
name = Orbit
type = Orbit
disableOnStateChange = false
minPeA = 700000
maxApA = 1200000
minInclination = 88
maxInclination = 92
maxEccentricity = 0.004
}
}

PARAMETER
{
name = Duration
type = Duration

duration = 2m

preWaitText = Testing time after network launch
waitingText = Performing shakedown testing
completionText = Shakedown testing completed
}

BEHAVIOUR
{
name = TransferVessel
type = DestroyVessel
onState = CONTRACT_SUCCESS
vessel = NavSat I
vessel = NavSat II
vessel = NavSat III
}

BEHAVIOUR
{
name = VesselDestroyed
type = DialogBox
DIALOG_BOX
{
title = Vessel Ownership Transferred
condition = CONTRACT_SUCCESS
position = CENTER
width = 0.5
TEXT
{
text = The contract has been completed successfully and the satellites have been transferred to the customer.
}
}
}
}
Loading
Loading