Skip to content

Commit

Permalink
Merge pull request #8 from RemoteTechnologiesGroup/master
Browse files Browse the repository at this point in the history
Updated to 1.6.7
  • Loading branch information
Pharylon committed Jul 2, 2015
2 parents 6fd0e06 + 456400c commit 2482460
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 18 deletions.
28 changes: 28 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
Version 1.6.7
========================================
Released June 25, 2015

Bug fixes
--------------------
- Fixed a problem for transmitting science data in combination with ScienceAlert

General
--------------------
- KSP 1.0.4 update


Version 1.6.6
========================================
Released June 21, 2015

Bug fixes
--------------------
- Fixed an exception-Spamming for `HideGroundStationsBehindBody = true` with RSS
- Fixed the animation for Fasa's Explorer probe

General
--------------------
- Added CactEye probes (thx xZise)
- Added SignalProcessor to Fasa's Pioneer probe


Version 1.6.5
========================================
Released May 18, 2015
Expand Down
4 changes: 2 additions & 2 deletions GameData/RemoteTech/RemoteTech.version
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"VERSION":{
"MAJOR":1,
"MINOR":6,
"PATCH":5,
"PATCH":7,
"BUILD":0
},
"KSP_VERSION":{
Expand All @@ -28,6 +28,6 @@
"KSP_VERSION_MAX":{
"MAJOR":1,
"MINOR":0,
"PATCH":2
"PATCH":4
}
}
19 changes: 19 additions & 0 deletions GameData/RemoteTech/RemoteTech_CactEye_Probes.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Support for stock probe cores
// Original config by xZise

@PART[probeCoreSlim]:FOR[RemoteTech]
{
%MODULE[ModuleSPU] {
}

%MODULE[ModuleRTAntennaPassive] {
%TechRequired = unmannedTech
%OmniRange = 3000

%TRANSMITTER {
%PacketInterval = 0.3
%PacketSize = 2
%PacketResourceCost = 15.0
}
}
}
17 changes: 17 additions & 0 deletions GameData/RemoteTech/RemoteTech_FASA_Probes.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,23 @@
%MODULE[ModuleSPU] {
}

%MODULE[ModuleRTAntennaPassive] {
%TechRequired = unmannedTech
%OmniRange = 3000

%TRANSMITTER {
%PacketInterval = 0.3
%PacketSize = 2
%PacketResourceCost = 15.0
}
}
}

@PART[FASAPioneerProbe]:AFTER[FASA]:NEEDS[RemoteTech] // Pioneer probe
{
%MODULE[ModuleSPU] {
}

%MODULE[ModuleRTAntennaPassive] {
%TechRequired = unmannedTech
%OmniRange = 3000
Expand Down
2 changes: 1 addition & 1 deletion build.remotetech.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ then

if [[ ! -f dlls.zip ]]; then
echo "Need to get dependency .dll's"
wget -O dlls.zip "https://www.dropbox.com/s/o5iz71pdfi1fyf6/dll_1.00.2.zip?dl=1"
wget -O dlls.zip "https://www.dropbox.com/s/5j3bu46i3doub62/dll_1.04.zip?dl=1"
fi

if [ -z "$ZIPPASSWORD" ]; then
Expand Down
26 changes: 14 additions & 12 deletions src/RemoteTech/Modules/ModuleRTAntenna.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,20 @@ private void AddTransmitter()
part.AddModule(copy);
AddTransmitter();
RTLog.Notify("ModuleRTAntenna: Add TRANSMITTER success.");
// Trigger onVesselWasModified after adding a new transmitter
GameEvents.onVesselWasModified.Fire(this.part.vessel);
}
}

private void RemoveTransmitter()
{
RTLog.Notify("ModuleRTAntenna: Remove TRANSMITTER success.");
if (mTransmitter == null) return;

part.RemoveModule((PartModule) mTransmitter);
mTransmitter = null;
// Trigger onVesselWasModified after removing the transmitter
GameEvents.onVesselWasModified.Fire(this.part.vessel);
}

private State UpdateControlState()
Expand Down Expand Up @@ -508,19 +513,16 @@ private List<IScalarModule> FindFxModules(int[] indices, bool showUI)
{
var modules = new List<IScalarModule>();
if (indices == null) return modules;
foreach (int i in indices)

foreach (PartModule partModule in this.part.Modules)
{
var item = base.part.Modules[i] as IScalarModule;
if (item != null)
{
item.SetUIWrite(showUI);
item.SetUIRead(showUI);
modules.Add(item);
}
else
{
RTLog.Notify("ModuleRTAntenna: Part Module {0} doesn't implement IScalarModule", part.Modules[i].name);
}
var item = partModule as IScalarModule;
// skip this module if it has no IScalarModule
if (item == null) continue;

item.SetUIWrite(showUI);
item.SetUIRead(showUI);
modules.Add(item);
}
return modules;
}
Expand Down
3 changes: 3 additions & 0 deletions src/RemoteTech/Modules/ModuleRTAntennaPassive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ private void RemoveTransmitter()
mTransmitter = null;
}

/// <summary>
/// Deprecated?
/// </summary>
private List<IScalarModule> FindFxModules(int[] indices, bool showUI)
{
var modules = new List<IScalarModule>();
Expand Down
3 changes: 1 addition & 2 deletions src/RemoteTech/NetworkRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ public void OnGUI()

if (s is MissionControlSatellite && RTSettings.Instance.HideGroundStationsBehindBody)
{
CelestialBody kerbin = FlightGlobals.Bodies.Find(body => body.name == "Kerbin");
// Hide the current ISatellite if it is behind its body
if (IsOccluded(s.Position, kerbin))
if (IsOccluded(s.Position, s.Body))
showOnMapview = false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/RemoteTech/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// DLLs any time it changes. Breaking on a minor revision is probably acceptable - it's
// unlikely that there wouldn't be other breaking changes on a minor version change.
[assembly: AssemblyVersion("1.6")]
[assembly: AssemblyFileVersion("1.6.5")]
[assembly: AssemblyFileVersion("1.6.7")]

// Use KSPAssembly to allow other DLLs to make this DLL a dependency in a
// non-hacky way in KSP. Format is (AssemblyProduct, major, minor), and it
Expand Down

0 comments on commit 2482460

Please sign in to comment.