Skip to content

Commit

Permalink
Merge pull request #76 from DMagic1/dev
Browse files Browse the repository at this point in the history
Version 1.3.9
  • Loading branch information
DMagic1 authored May 31, 2017
2 parents b4a1019 + ce4184f commit 7f10a72
Show file tree
Hide file tree
Showing 34 changed files with 189 additions and 219 deletions.
9 changes: 8 additions & 1 deletion GameData/DMagicOrbitalScience/Change Log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
v1.3.8
v1.3.9
- Updated for KSP 1.3

- Fix several bugs with SIGINT and Soil Moisture antenna usage
- Add option to disable transmsission from these parts
- Change these antennas to Relay type and remove the part upgrade functions

v1.3.8
- Fix for magnetic field and reconnaissance contracts when using a vessel already in orbit
- Fix for Seismic impact hammer experiments when decoupling or undocking from another vessel
- Fix for X-Ray and Seismic impact hammer experiments when using Kopernicus and planet packs that replace Kerbin
Expand Down
16 changes: 8 additions & 8 deletions GameData/DMagicOrbitalScience/DMagicOrbitalScience.version
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"NAME":"DMagic Orbital Science",
"URL":"https://raw.githubusercontent.com/DMagic1/Orbital-Science/master/GameData/DMagicOrbitalScience/DMagicOrbitalScience.version",
"DOWNLOAD":"https://spacedock.info/mod/128/DMagic%20Orbital%20Science/download/1.3.7",
"DOWNLOAD":"https://spacedock.info/mod/128/DMagic%20Orbital%20Science/download/1.3.9",
"GITHUB":{
"USERNAME":"DMagic1",
"REPOSITORY":"Orbital-Science",
Expand All @@ -11,21 +11,21 @@
"MAJOR":1,
"MINOR":3,
"PATCH":0,
"BUILD":8
"BUILD":9
},
"KSP_VERSION":{
"MAJOR":1,
"MINOR":2,
"PATCH":2
"MINOR":3,
"PATCH":0
},
"KSP_VERSION_MIN":{
"MAJOR":1,
"MINOR":2,
"PATCH":1
"MINOR":3,
"PATCH":0
},
"KSP_VERSION_MAX":{
"MAJOR":1,
"MINOR":2,
"PATCH":2
"MINOR":3,
"PATCH":8
}
}
16 changes: 2 additions & 14 deletions GameData/DMagicOrbitalScience/OversizeScience/SIGINT.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,13 @@ DRAG_CUBE
MODULE
{
name = ModuleDataTransmitter
antennaType = DIRECT
antennaType = RELAY
packetInterval = 0.08
packetSize = 4
packetResourceCost = 55.0
requiredResource = ElectricCharge
DeployFxModules = 0
antennaPower = 10000000000000
antennaCombinable = False
UPGRADES
{
UPGRADE
{
name__ = dm_antenna_upgrade
description__ = Antenna upgraded with signal relay
antennaType = RELAY
antennaPower = 20000000000000
antennaCombinable = True
}
}
antennaCombinable = True
}
}
16 changes: 2 additions & 14 deletions GameData/DMagicOrbitalScience/OversizeScience/SIGINT_End.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -107,26 +107,14 @@ DRAG_CUBE
MODULE
{
name = ModuleDataTransmitter
antennaType = DIRECT
antennaType = RELAY
packetInterval = 0.08
packetSize = 4
packetResourceCost = 55.0
requiredResource = ElectricCharge
DeployFxModules = 0
antennaPower = 10000000000000
antennaCombinable = False
UPGRADES
{
UPGRADE
{
name__ = dm_antenna_upgrade
description__ = Antenna upgraded with signal relay
antennaType = RELAY
antennaPower = 20000000000000
antennaCombinable = True
}
}
antennaCombinable = True
}
MODULE
Expand Down
16 changes: 2 additions & 14 deletions GameData/DMagicOrbitalScience/OversizeScience/SIGINT_Small.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -110,25 +110,13 @@ DRAG_CUBE
MODULE
{
name = ModuleDataTransmitter
antennaType = DIRECT
antennaType = RELAY
packetInterval = 0.1
packetSize = 2
packetResourceCost = 25.0
requiredResource = ElectricCharge
DeployFxModules = 0
antennaPower = 1000000000000
antennaCombinable = False
UPGRADES
{
UPGRADE
{
name__ = dm_antenna_upgrade
description__ = Antenna upgraded with signal relay
antennaType = RELAY
antennaPower = 2000000000000
antennaCombinable = True
}
}
antennaCombinable = True
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,13 @@ minimum_drag = 0.2
MODULE
{
name = ModuleDataTransmitter
antennaType = DIRECT
antennaType = RELAY
packetInterval = 0.2
packetSize = 4
packetResourceCost = 30.0
requiredResource = ElectricCharge
DeployFxModules = 0
antennaPower = 100000000000
antennaCombinable = False

UPGRADES
{
UPGRADE
{
name__ = dm_antenna_upgrade
description__ = Antenna upgraded with signal relay
antennaType = RELAY
antennaPower = 200000000000
antennaCombinable = True
}
}
antennaCombinable = True
}
}
39 changes: 0 additions & 39 deletions GameData/DMagicOrbitalScience/Resources/DMAntennaUpgrade.cfg

This file was deleted.

Binary file removed GameData/DMagicOrbitalScience/Resources/Flag.tga
Binary file not shown.
Binary file removed GameData/DMagicOrbitalScience/Resources/dm_antenna.mu
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -101,26 +101,14 @@ dragModelType = default
MODULE
{
name = ModuleDataTransmitter
antennaType = DIRECT
antennaType = RELAY
packetInterval = 0.1
packetSize = 4
packetResourceCost = 20.0
requiredResource = ElectricCharge
DeployFxModules = 0
antennaPower = 50000000000
antennaCombinable = False

UPGRADES
{
UPGRADE
{
name__ = dm_antenna_upgrade
description__ = Antenna upgraded with signal relay
antennaType = RELAY
antennaPower = 100000000000
antennaCombinable = True
}
}
antennaCombinable = True
}
}

Expand Down
12 changes: 6 additions & 6 deletions Source/Contracts/DMAnomalyContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected override bool Generate()
{
CelestialBody b = customReachedBodies[i];

DMAnomalyStorage stor = DMAnomalyList.getAnomalyStorage(b.name);
DMAnomalyStorage stor = DMAnomalyList.getAnomalyStorage(b.bodyName);

if (stor == null)
continue;
Expand Down Expand Up @@ -265,7 +265,7 @@ protected override string GetTitle()
if (targetAnomaly == null)
return "Whoops. Something bad happened here...";

return string.Format("Study the source of the anomalous readings coming from {0}'s surface", targetAnomaly.Body.theName);
return string.Format("Study the source of the anomalous readings coming from {0}'s surface", targetAnomaly.Body.displayName.LocalizeBodyName());
}

protected override string GetNotes()
Expand All @@ -279,23 +279,23 @@ protected override string GetDescription()
return "Whoops. Something bad happened here...";

string story = DMContractDefs.DMAnomaly.backStory[rand.Next(0, DMContractDefs.DMAnomaly.backStory.Count)];
return string.Format(story, this.agent.Name, targetAnomaly.Body.theName);
return string.Format(story, this.agent.Name, targetAnomaly.Body.displayName.LocalizeBodyName());
}

protected override string GetSynopsys()
{
if (targetAnomaly == null)
return "Whoops. Something bad happened here...";

return string.Format("We would like you to travel to a specific location on {0}. Once there attempt to locate and study the source of the anomalous signal.", targetAnomaly.Body.theName);
return string.Format("We would like you to travel to a specific location on {0}. Once there attempt to locate and study the source of the anomalous signal.", targetAnomaly.Body.displayName.LocalizeBodyName());
}

protected override string MessageCompleted()
{
if (targetAnomaly == null)
return "Whoops. Something bad happened here...";

return string.Format("You successfully returned data from the {0} on {1}, well done.", hash, targetAnomaly.Body.theName);
return string.Format("You successfully returned data from the {0} on {1}, well done.", hash, targetAnomaly.Body.displayName.LocalizeBodyName());
}

protected override void OnLoad(ConfigNode node)
Expand Down Expand Up @@ -357,7 +357,7 @@ protected override void OnSave(ConfigNode node)

public override bool MeetRequirements()
{
return ProgressTracking.Instance.NodeComplete(new string[] { Planetarium.fetch.Home.name, "Orbit" });
return ProgressTracking.Instance.NodeComplete(new string[] { Planetarium.fetch.Home.bodyName, "Orbit" });
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Source/Contracts/DMAsteroidSurveyContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public override bool MeetRequirements()
if (Planetarium.fetch.Home.orbitingBodies.Count < 2)
return GameVariables.Instance.UnlockedSpaceObjectDiscovery(ScenarioUpgradeableFacilities.GetFacilityLevel(SpaceCenterFacility.TrackingStation));
else
return ProgressTracking.Instance.NodeComplete(new string[] { Planetarium.fetch.Home.orbitingBodies[1].name, "Orbit" }) && GameVariables.Instance.UnlockedSpaceObjectDiscovery(ScenarioUpgradeableFacilities.GetFacilityLevel(SpaceCenterFacility.TrackingStation));
return ProgressTracking.Instance.NodeComplete(new string[] { Planetarium.fetch.Home.orbitingBodies[1].bodyName, "Orbit" }) && GameVariables.Instance.UnlockedSpaceObjectDiscovery(ScenarioUpgradeableFacilities.GetFacilityLevel(SpaceCenterFacility.TrackingStation));
}

public string AsteroidSize
Expand Down
12 changes: 6 additions & 6 deletions Source/Contracts/DMMagneticSurveyContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,15 @@ public override bool CanBeDeclined()

protected override string GetHashString()
{
return string.Format("{0}{1}", body.name, (int)this.prestige);
return string.Format("{0}{1}", body.bodyName, (int)this.prestige);
}

protected override string GetTitle()
{
if (body == null)
return "Whoops. Something bad happened here...";

return string.Format("Conduct a survey of the magnetic field environment around {0}", body.theName);
return string.Format("Conduct a survey of the magnetic field environment around {0}", body.displayName.LocalizeBodyName());
}

protected override string GetDescription()
Expand All @@ -281,23 +281,23 @@ protected override string GetDescription()
return "Whoops. Something bad happened here...";

string story = DMContractDefs.DMMagnetic.backStory[rand.Next(0, DMContractDefs.DMMagnetic.backStory.Count)];
return string.Format(story, this.agent.Name, body.theName);
return string.Format(story, this.agent.Name, body.displayName.LocalizeBodyName());
}

protected override string GetSynopsys()
{
if (body == null)
return "Whoops. Something bad happened here...";

return string.Format("Study the magnetic field environment around {0} by inserting a long-term research vessel into orbit.", body.theName);
return string.Format("Study the magnetic field environment around {0} by inserting a long-term research vessel into orbit.", body.displayName.LocalizeBodyName());
}

protected override string MessageCompleted()
{
if (body == null)
return "Whoops. Something bad happened here...";

return string.Format("You completed a survey of {0}, well done.", body.theName);
return string.Format("You completed a survey of {0}, well done.", body.displayName.LocalizeBodyName());
}

protected override void OnLoad(ConfigNode node)
Expand Down Expand Up @@ -338,7 +338,7 @@ protected override void OnSave(ConfigNode node)

public override bool MeetRequirements()
{
return ProgressTracking.Instance.NodeComplete(new string[] { Planetarium.fetch.Home.name, "Escape" });
return ProgressTracking.Instance.NodeComplete(new string[] { Planetarium.fetch.Home.bodyName, "Escape" });
}

/// <summary>
Expand Down
Loading

0 comments on commit 7f10a72

Please sign in to comment.