Skip to content

Commit

Permalink
Merge pull request #54 from post-kerbin-mining-corporation/dev
Browse files Browse the repository at this point in the history
Release 0.5.1
  • Loading branch information
ChrisAdderley authored Aug 14, 2024
2 parents e19de2b + 06d94cf commit 829f8be
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/// Adds the parts added to a new VABOrganizer category
@PART[spacedust-atmosphere-processor-25-1,spacedust-atmosphere-processor-125-1]:FOR[SystemHeat]:NEEDS[VABOrganizer]
{
%VABORGANIZER
{
%organizerSubcategory = resources
}
}
@PART[spacedust-gas-analyzer-1,spacedust-spectrometer-1,spacedust-telescope-1]:FOR[SystemHeat]:NEEDS[VABOrganizer]
{
%VABORGANIZER
{
%organizerSubcategory = resourceScanners
}
}
Binary file modified GameData/SpaceDust/Plugins/SpaceDust.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion GameData/SpaceDust/Versioning/SpaceDust.version
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"MAJOR":0,
"MINOR":5,
"PATCH":0,
"PATCH":1,
"BUILD":0
},
"KSP_VERSION":
Expand Down
10 changes: 5 additions & 5 deletions Source/SpaceDust/Modules/ModuleSpaceDustHarvester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,10 @@ void DoFocusedHarvesting(double scale)

if (resourceSample > resources[i].MinHarvestValue)
{
double resAmt = (resourceSample * intakeVolume) * (1d / resources[i].density) * resources[i].BaseEfficiency * scale;
ScoopUI += "\n ";
double resAmt = (resourceSample * intakeVolume) * resources[i].BaseEfficiency * scale;
ScoopUI += "\n ";
ScoopUI += Localizer.Format("#LOC_SpaceDust_ModuleSpaceDustHarvester_Field_Scoop_Resource", resources[i].Name, resAmt.ToString("G5"));
part.RequestResource(resources[i].Name, -resAmt * resources[i].density * TimeWarp.fixedDeltaTime, ResourceFlowMode.ALL_VESSEL, false);
part.RequestResource(resources[i].Name, -resAmt * (1d / resources[i].density) * TimeWarp.fixedDeltaTime, ResourceFlowMode.ALL_VESSEL, false);
}

}
Expand Down Expand Up @@ -515,13 +515,13 @@ void DoFocusedHarvesting(double scale)
// $"speedstatic {IntakeSpeedStatic}," +
// $"worldvel {worldVelocity.magnitude}");

double resAmt = resourceSample * intakeVolume * 1d / resources[i].density * resources[i].BaseEfficiency * scale;
double resAmt = resourceSample * intakeVolume * resources[i].BaseEfficiency * scale;
if (ScoopUI != "")
ScoopUI += "\n";
ScoopUI += Localizer.Format("#LOC_SpaceDust_ModuleSpaceDustHarvester_Field_Scoop_Resource", resources[i].Name, resAmt.ToString("G3"));

//Utils.Log($"[SpaceDustHarveste] sampled {resources[i].Name} @ {resourceSample}. Harvesting {resAmt * TimeWarp.fixedDeltaTime} at step {TimeWarp.fixedDeltaTime}");
part.RequestResource(resources[i].Name, -resAmt * TimeWarp.fixedDeltaTime, ResourceFlowMode.ALL_VESSEL, false);
part.RequestResource(resources[i].Name, -resAmt * (1d / resources[i].density) * TimeWarp.fixedDeltaTime, ResourceFlowMode.ALL_VESSEL, false);
}

}
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.5.1
------
- Fixed an issue with density calculations that was not included in the previous release
- VABOrganizer support

v0.5.0
------
- Updated bundled MM to latest version
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
================
SPACE DUST 0.5.0
SPACE DUST 0.5.1
================

This is a KSP mod designed to overhaul the atmospheric and exospheric mining experience in KSP. It functions both as a framework, providing part modules and distributions to others, and an actual gameplay mod designed to provide a set of parts focused around atmospheric ISRU in the stock system.
Expand Down

0 comments on commit 829f8be

Please sign in to comment.