Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
6 changes: 3 additions & 3 deletions Distribution/GameData/REPOSoftTech/Agencies/Agents.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
AGENT
{
name = REPOSoftTech

description = Experts in the field of cryogenics, ergonomics and electrical equipment, the kerbals at REPOSoftTech are trying hard to keep all space fairing kerbals alive and their missions successful.

title = #autoLOC_DF_00186 //REPOSoftTech
description = #autoLOC_DF_00198 //Experts in the field of cryogenics, ergonomics and electrical equipment, the kerbals at REPOSoftTech are trying hard to keep all space fairing kerbals alive and their missions successful.
logoURL = REPOSoftTech/Agencies/REPOSoftTech
logoScaledURL = REPOSoftTech/Agencies/REPOSoftTech_scaled

Expand Down
7 changes: 6 additions & 1 deletion Distribution/GameData/REPOSoftTech/DeepFreeze/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
V0.23.4.0
V0.23.5.0
Compile for KSP 1.3.0
Localization ready (but all in English) - Translation volunteers welcome. ;)
If Infinite EC is turned on DeepFreeze will not consume EC.
If in IVA/Internal camera view when you freeze the last kerbal will autmatically change the camera to flight view to avoid invalid camera reference.
V0.23.4.0
Fix issue with launching vessels with DeepFreeze parts with greater capacity than previously launched vessels would cause
null reference exceptions, lost DeepFreeze tracking and lost frozen kerbals. Thanks to Gnurfos who found the bug.
V0.23.3.0
Expand Down
1,290 changes: 1,290 additions & 0 deletions Distribution/GameData/REPOSoftTech/DeepFreeze/DFLocalization.cfg

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"NAME":"DeepFreeze Continued...",
"URL":"http://ksp-avc.cybutek.net/version.php?id=183",
"DOWNLOAD":"http://spacedock.info/mod/142/DeepFreeze%20Continued...",
"VERSION":{"MAJOR":0,"MINOR":23,"PATCH":4,"BUILD":0},
"KSP_VERSION":{"MAJOR":1,"MINOR":2,"PATCH":2},
"KSP_VERSION_MIN":{"MAJOR":1,"MINOR":2,"PATCH":2},
"KSP_VERSION_MAX":{"MAJOR":1,"MINOR":2,"PATCH":2}
"VERSION":{"MAJOR":0,"MINOR":23,"PATCH":5,"BUILD":0},
"KSP_VERSION":{"MAJOR":1,"MINOR":3,"PATCH":0),
"KSP_VERSION_MIN":{"MAJOR":1,"MINOR":3,"PATCH":0},
"KSP_VERSION_MAX":{"MAJOR":1,"MINOR":3,"PATCH":0}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ PART
cost = 4000
category = Utility
subcategory = 0
title = CRY-0300 Cryonic Freezing Chamber
manufacturer = REPOSoftTech
description = Designed for long term storage of 1 kerbal. The CRY-0300 uses Glykerol and ElectricCharge to freeze or thaw one Kerbal.
Please ensure you have enough ElectricCharge capacity on your ship. The CRY-0300 comes stocked with 10 units of Glykerol.
CAUTION: The CRY-0300 also requires ElectricCharge per minute per Kerbal to keep it's Monitoring Systems Functioning. If it cannot get this ElectricCharge
there is a risk of frozen Kerbals dying.
title = #autoLOC_DF_00185 //CRY-0300 Cryonic Freezing Chamber
manufacturer = #autoLOC_DF_00186 //REPOSoftTech
description = #autoLOC_DF_00187 //Designed for long term storage of 1 kerbal. The CRY-0300 uses Glykerol and ElectricCharge to freeze or thaw one Kerbal. Please ensure you have enough ElectricCharge capacity on your ship. The CRY-0300 comes stocked with 10 units of Glykerol. CAUTION: The CRY-0300 also requires ElectricCharge per minute per Kerbal to keep it's Monitoring Systems Functioning. If it cannot get this ElectricCharge there is a risk of frozen Kerbals dying.
attachRules = 1,0,1,1,0
mass = 1.5
dragModelType = default
Expand All @@ -37,7 +34,7 @@ there is a risk of frozen Kerbals dying.
vesselType = Ship
CrewCapacity = 1
bulkheadProfiles = size1
tags = deepfreeze cryogenic freezer
tags = #autoLOC_DF_00188 //deepfreeze cryogenic freezer
INTERNAL
{
name = Cry-0300Internals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ PART
cost = 4000
category = Utility
subcategory = 0
title = CRY-0300R Cryonic Freezing Chamber
manufacturer = REPOSoftTech
description = Designed for long term storage of 1 kerbal. The CRY-0300R uses Glykerol and ElectricCharge to freeze or thaw one Kerbal.
Please ensure you have enough ElectricCharge capacity on your ship. The CRY-0300R comes stocked with 10 units of Glykerol.
CAUTION: The CRY-0300R also requires ElectricCharge per minute per Kerbal to keep it's Monitoring Systems Functioning. If it cannot get this ElectricCharge
there is a risk of frozen Kerbals dying.
title = #autoLOC_DF_00189 //CRY-0300R Cryonic Freezing Chamber
manufacturer = #autoLOC_DF_00186 //REPOSoftTech
description = #autoLOC_DF_00190 //Designed for long term storage of 1 kerbal. The CRY-0300R uses Glykerol and ElectricCharge to freeze or thaw one Kerbal. Please ensure you have enough ElectricCharge capacity on your ship. The CRY-0300R comes stocked with 10 units of Glykerol. CAUTION: The CRY-0300R also requires ElectricCharge per minute per Kerbal to keep it's Monitoring Systems Functioning. If it cannot get this ElectricCharge there is a risk of frozen Kerbals dying.
attachRules = 1,1,0,1,1
mass = 0.75
dragModelType = default
Expand All @@ -51,7 +48,7 @@ there is a risk of frozen Kerbals dying.
vesselType = Ship
CrewCapacity = 1
bulkheadProfiles = size1
tags = deepfreeze cryogenic freezer
tags = #autoLOC_DF_00188 //deepfreeze cryogenic freezer

INTERNAL
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ PART
cost = 6000
category = Utility
subcategory = 0
title = CRY-1300 Cryonic Freezing Chamber
manufacturer = REPOSoftTech
description = Designed for long term storage of up to 3 Kerbals. The CRY-1300 uses Glykerol and ElectricCharge to freeze or thaw one Kerbal.
Please ensure you have enough ElectricCharge capacity on your ship. The CRY-1300 comes stocked with 15 units of Glykerol.
CAUTION: The CRY-1300 also requires ElectricCharge per minute per Kerbal to keep it's Monitoring Systems Functioning. If it cannot get this ElectricCharge
there is a risk of frozen Kerbals dying.
title = #autoLOC_DF_00191 //CRY-1300 Cryonic Freezing Chamber
manufacturer = #autoLOC_DF_00186 //REPOSoftTech
description = #autoLOC_DF_00192 //Designed for long term storage of up to 3 Kerbals. The CRY-1300 uses Glykerol and ElectricCharge to freeze or thaw one Kerbal. Please ensure you have enough ElectricCharge capacity on your ship. The CRY-1300 comes stocked with 15 units of Glykerol. CAUTION: The CRY-1300 also requires ElectricCharge per minute per Kerbal to keep it's Monitoring Systems Functioning. If it cannot get this ElectricCharge there is a risk of frozen Kerbals dying.
attachRules = 1,0,1,1,0
mass = 2.5
dragModelType = default
Expand All @@ -36,7 +33,7 @@ there is a risk of frozen Kerbals dying.
maxTemp = 2000 // = 2900
vesselType = Ship
bulkheadProfiles = size2
tags = deepfreeze cryogenic freezer
tags = #autoLOC_DF_00188 //deepfreeze cryogenic freezer

INTERNAL
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ PART
cost = 8000
category = Utility
subcategory = 0
title = CRY-2300 Cryonic Freezing Chamber
manufacturer = REPOSoftTech
description = Designed for long term storage of up to 10 Kerbals. The CRY-2300 uses Glykerol and ElectricCharge to freeze or thaw one Kerbal.
Please ensure you have enough ElectricCharge capacity on your ship. The CRY-2300 comes stocked with 50 units of Glykerol.
CAUTION: The CRY-2300 also requires ElectricCharge per minute per Kerbal to keep it's Monitoring Systems Functioning. If it cannot get this ElectricCharge
there is a risk of frozen Kerbals dying.

title = #autoLOC_DF_00193 //CRY-2300 Cryonic Freezing Chamber
manufacturer = #autoLOC_DF_00186 //REPOSoftTech
description = #autoLOC_DF_00194 //Designed for long term storage of up to 10 Kerbals. The CRY-2300 uses Glykerol and ElectricCharge to freeze or thaw one Kerbal. Please ensure you have enough ElectricCharge capacity on your ship. The CRY-2300 comes stocked with 50 units of Glykerol. CAUTION: The CRY-2300 also requires ElectricCharge per minute per Kerbal to keep it's Monitoring Systems Functioning. If it cannot get this ElectricCharge there is a risk of frozen Kerbals dying.
attachRules = 1,0,1,1,0

mass = 5.25
Expand All @@ -40,7 +36,7 @@ there is a risk of frozen Kerbals dying.

vesselType = Ship
bulkheadProfiles = size2
tags = deepfreeze cryogenic freezer
tags = #autoLOC_DF_00188 //deepfreeze cryogenic freezer

INTERNAL
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ PART
cost = 500
category = FuelTank
subcategory = 0
title = RS-X20R Glykerol Container
manufacturer = REPOSoftTech
description = The RS-X20R is a small-volume Radial Glykerol container, for all your Kerbal Freezing and Thawing needs. Brought to you by the good folks at REPOSoftTech. Warranty void if filled with Glykerol.
title = #autoLOC_DF_00195 //RS-X20R Glykerol Container
manufacturer = #autoLOC_DF_00186 //REPOSoftTech
description = #autoLOC_DF_00196 //The RS-X20R is a small-volume Radial Glykerol container, for all your Kerbal Freezing and Thawing needs. Brought to you by the good folks at REPOSoftTech. Warranty void if filled with Glykerol.
attachRules = 0,1,0,0,1
mass = 0.03143
dragModelType = default
Expand All @@ -27,7 +27,7 @@ PART
crashTolerance = 12
maxTemp = 2000 // = 2900
bulkheadProfiles = srf
tags = deepfreeze cryogenic freezer glykerol tank
tags = #autoLOC_DF_00197 //deepfreeze cryogenic freezer glykerol tank
RESOURCE
{
name = Glykerol
Expand Down
8 changes: 4 additions & 4 deletions Source/DFEditorFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using KSP.UI.Screens;
using RUI.Icons.Selectable;
using UnityEngine;
using KSP.Localization;

namespace DF
{
Expand All @@ -30,9 +31,8 @@ public class DFEditorFilter : MonoBehaviour
// and the GlykerolTankRadial.
private static List<AvailablePart> avPartItems = new List<AvailablePart>();
public static DFEditorFilter Instance;
internal string category = "Filter by Function";
internal string subCategoryTitle = "DeepFreeze Items";
internal string defaultTitle = "DF";
internal string category = "Filter by function";
internal string subCategoryTitle = "DeepFreeze Items";

//internal string iconName = "R&D_node_icon_evatech";
//create and the icons
Expand Down Expand Up @@ -156,7 +156,7 @@ private void SubCategories()
RemoveSubFilter();
Icon filterDeepFreeze = new Icon("DeepFreezeEditor", Textures.DeepFreeze_Editor, Textures.DeepFreeze_Editor, true);
PartCategorizer.Category Filter = PartCategorizer.Instance.filters.Find(f => f.button.categoryName == category);
PartCategorizer.AddCustomSubcategoryFilter(Filter, subCategoryTitle, filterDeepFreeze, p => EditorItemsFilter(p));
PartCategorizer.AddCustomSubcategoryFilter(Filter, subCategoryTitle, Localizer.Format("#autoLOC_DF_00107"), filterDeepFreeze, p => EditorItemsFilter(p));
}
}
}
7 changes: 4 additions & 3 deletions Source/DFIntMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using PreFlightTests;
using RSTUtils;
using UnityEngine;
using KSP.Localization;

namespace DF
{
Expand Down Expand Up @@ -313,7 +314,7 @@ private void Update()
// Set Top Left messages for FreezerCam mode

// See if there is a kerbal seated/frozen in that seat get their reference
IVAkerbalPod = new ScreenMessage("Pod:" + ActFrzrCams[lastFrzrCam].FrzrCamSeatIndex, 1, ScreenMessageStyle.UPPER_LEFT);
IVAkerbalPod = new ScreenMessage(Localizer.Format("autoLOC_DF_00071", ActFrzrCams[lastFrzrCam].FrzrCamSeatIndex), 1, ScreenMessageStyle.UPPER_LEFT); //autoLOC_DF_00071 = Pod:<<1>>
IVAkerbalPod.color = Color.white;
ScreenMessages.PostScreenMessage(IVAkerbalPod);
IVAkerbalPart = new ScreenMessage(ActFrzrCams[lastFrzrCam].FrzrCamPartName, 1, ScreenMessageStyle.UPPER_LEFT);
Expand Down Expand Up @@ -1120,7 +1121,7 @@ private void KAC_onAlarmStateChanged(KACWrapper.KACAPI.AlarmStateChangedEventArg

private void SwitchVslAlarmMsg(string vesselname)
{
ScreenMessages.PostScreenMessage("A DeepFreeze Alarm event has occurred. Please Switch to " + vesselname + " to execute.", 5.0f, ScreenMessageStyle.UPPER_CENTER);
ScreenMessages.PostScreenMessage(Localizer.Format("#autoLOC_DF_00109", vesselname), 5.0f, ScreenMessageStyle.UPPER_CENTER); //#autoLOC_DF_00109 = A DeepFreeze Alarm event has occurred. Please Switch to <<1>> to execute.
}

private void CheckKACAlarmsUpdate()
Expand Down Expand Up @@ -1158,7 +1159,7 @@ private void CheckKACAlarmsUpdate()
{
// we are all done. Delete the alarm. Do a message.
Utilities.Log_Debug("Execution of alarm for vessel " + entry.Value.Name + " is complete");
ScreenMessages.PostScreenMessage("DeepFreeze Alarm processing completed.", 5.0f, ScreenMessageStyle.UPPER_CENTER);
ScreenMessages.PostScreenMessage(Localizer.Format("#autoLOC_DF_00110"), 5.0f, ScreenMessageStyle.UPPER_CENTER); //#autoLOC_DF_00110 = DeepFreeze Alarm processing completed.
alarmstoDelete.Add(entry.Key);
continue;
}
Expand Down
17 changes: 9 additions & 8 deletions Source/DeepFreeze.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
using System.Linq;
using System.Reflection;
using RSTUtils;
using UnityEngine;
using UnityEngine;
using KSP.Localization;

namespace DF
{
Expand Down Expand Up @@ -237,7 +238,7 @@ protected void onVesselRecovered(ProtoVessel vessel, bool notSureWhatFor)
realkerbal.type = ProtoCrewMember.KerbalType.Unowned;
realkerbal.rosterStatus = ProtoCrewMember.RosterStatus.Dead;
Utilities.Log_Debug("Kerbal " + realkerbal.name + " " + realkerbal.type + " " + realkerbal.rosterStatus);
ScreenMessages.PostScreenMessage(key + " was stored frozen at KSC", 5.0f, ScreenMessageStyle.UPPER_LEFT);
ScreenMessages.PostScreenMessage(Localizer.Format("#autoLOC_DF_00049", key), 5.0f, ScreenMessageStyle.UPPER_LEFT);
}
}
}
Expand Down Expand Up @@ -338,7 +339,7 @@ internal void ThawFrozenCrew(String FrozenCrew, Guid vesselID)
else
{
Utilities.Log("Not enough funds to thaw kerbal");
ScreenMessages.PostScreenMessage("Insufficient funds to thaw " + kerbal.name + " at this time", 5.0f, ScreenMessageStyle.UPPER_LEFT);
ScreenMessages.PostScreenMessage(Localizer.Format("#autoLOC_DF_00050", kerbal.name), 5.0f, ScreenMessageStyle.UPPER_LEFT);
return;
}
}
Expand All @@ -350,18 +351,18 @@ internal void ThawFrozenCrew(String FrozenCrew, Guid vesselID)
Utilities.Log_Debug("Kerbal " + kerbal.name + " " + kerbal.type + " " + kerbal.rosterStatus);
if (!fundstaken)
{
ScreenMessages.PostScreenMessage(kerbal.name + " was found and thawed out", 5.0f, ScreenMessageStyle.UPPER_LEFT);
ScreenMessages.PostScreenMessage(Localizer.Format("#autoLOC_DF_00051", kerbal.name), 5.0f, ScreenMessageStyle.UPPER_LEFT);
}
else
{
ScreenMessages.PostScreenMessage(kerbal.name + " was found and thawed out " + DFsettings.KSCcostToThawKerbal.ToString("########0") + " funds deducted from account", 5.0f, ScreenMessageStyle.UPPER_CENTER);
ScreenMessages.PostScreenMessage(Localizer.Format("#autoLOC_DF_00052", kerbal.name, DFsettings.KSCcostToThawKerbal.ToString("########0")), 5.0f, ScreenMessageStyle.UPPER_CENTER);
}
DFgameSettings.KnownFrozenKerbals.Remove(kerbal.name);
}
else
{
Utilities.Log("Cannot thaw, vessel still exists " + vessel.situation + " at " + vessel.mainBody.bodyName);
ScreenMessages.PostScreenMessage("Cannot thaw " + kerbal.name + " vessel still exists " + vessel.situation + " at " + vessel.mainBody.bodyName, 5.0f, ScreenMessageStyle.UPPER_CENTER);
ScreenMessages.PostScreenMessage(Localizer.Format("#autoLOC_DF_00053", kerbal.name, vessel.SituationString, vessel.mainBody.displayName), 5.0f, ScreenMessageStyle.UPPER_CENTER);
}
}
}
Expand Down Expand Up @@ -421,12 +422,12 @@ internal bool setComatoseKerbal(Part part, ProtoCrewMember crew, ProtoCrewMember
crew.RegisterExperienceTraits(part);
DFGameEvents.onKerbalUnSetComatose.Fire(part, crew);
ScreenMessages.PostScreenMessage(
crew.name + " has recovered from emergency thaw and resumed normal duties.", 5.0f,
Localizer.Format("#autoLOC_DF_00001", crew.name), 5.0f,
ScreenMessageStyle.UPPER_CENTER);
}
else
{
ScreenMessages.PostScreenMessage(crew.name + " has been emergency thawed and cannot perform duties for " + Instance.DFsettings.comatoseTime / 60 + " minutes.", 5.0f, ScreenMessageStyle.UPPER_CENTER);
ScreenMessages.PostScreenMessage(Localizer.Format("#autoLOC_DF_00002", crew.name, Instance.DFsettings.comatoseTime / 60), 5.0f, ScreenMessageStyle.UPPER_CENTER);
}

return true;
Expand Down
8 changes: 4 additions & 4 deletions Source/DeepFreeze.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Assembly-CSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\KSPDLLs - 1.2\Assembly-CSharp.dll</HintPath>
<HintPath>..\..\KSPDLLs - 1.3\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -48,11 +48,11 @@
<Reference Include="System.Xml" />
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\KSPDLLs - 1.2\UnityEngine.dll</HintPath>
<HintPath>..\..\KSPDLLs - 1.3\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\KSPDLLs - 1.2\UnityEngine.UI.dll</HintPath>
<HintPath>..\..\KSPDLLs - 1.3\UnityEngine.UI.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Loading