Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
billardm committed Jul 23, 2016
1 parent 163fccc commit f064eee
Show file tree
Hide file tree
Showing 57 changed files with 132 additions and 16 deletions.
1 change: 0 additions & 1 deletion DSEVUtils/DSEVUtils.csproj
Expand Up @@ -49,7 +49,6 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
Expand Down
Binary file added DSEVUtils/DSEVUtils.suo
Binary file not shown.
31 changes: 29 additions & 2 deletions DSEVUtils/ModuleHexTruss.cs
Expand Up @@ -57,7 +57,8 @@ public class ModuleHexTruss : WBIMeshHelper
string[] rackNames = null;
string[] bodyNames = null;
string centerVestibuleName = null;
WBIResourceSwitcher switcher;
WBIConvertibleStorage switcher = null;
PartModule resourceDistributor = null;

#region GUI
[KSPEvent(guiActiveEditor = true, guiActive = false, guiName = "Toggle center vestibule")]
Expand Down Expand Up @@ -180,7 +181,17 @@ public override void OnStart(StartState state)
int nextIndex = -1;

//Find the switch if any.
switcher = this.part.FindModuleImplementing<WBIResourceSwitcher>();
switcher = this.part.FindModuleImplementing<WBIConvertibleStorage>();

//Find the resource distributor if any
int totalCount = this.part.Modules.Count;
PartModule module;
for (int index = 0; index < totalCount; index++)
{
module = this.part.Modules[index];
if (module.moduleName == "WBIResourceDistributor")
resourceDistributor = module;
}

//Hide base GUI
Events["NextMesh"].guiActive = false;
Expand Down Expand Up @@ -295,13 +306,29 @@ public virtual void SetVisibleObjects()
{
if (fuelTankTransform.Contains(bodyNames[bodyIndex]))
{
switcher.isEnabled = true;
switcher.enabled = true;
switcher.SetGUIVisible(true);
if (resourceDistributor != null)
{
resourceDistributor.isEnabled = true;
resourceDistributor.enabled = true;
resourceDistributor.Events["ToggleDistributionMode"].guiActive = true;
resourceDistributor.Events["ToggleDistributionMode"].guiActiveEditor = true;
}
}
else
{
switcher.SetGUIVisible(false);
switcher.isEnabled = false;
switcher.enabled = false;
if (resourceDistributor != null)
{
resourceDistributor.isEnabled = false;
resourceDistributor.enabled = false;
resourceDistributor.Events["ToggleDistributionMode"].guiActive = false;
resourceDistributor.Events["ToggleDistributionMode"].guiActiveEditor = false;
}
}
}

Expand Down
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/Assembly-CSharp.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/Cooldown.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/DSEVUtils.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/DSEVUtils.pdb
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/KSPAssets.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/KSPUtil.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/Mono.Cecil.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/Mono.Security.dll
Binary file not shown.
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/TDx.TDxInput.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/TrackIRUnity.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/UnityEngine.UI.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/UnityEngine.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/Vectrosity.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/WildBlueTools.dll
Binary file not shown.
Binary file added DSEVUtils/bin/Debug/WildBlueTools.pdb
Binary file not shown.
Binary file not shown.
Binary file added DSEVUtils/obj/Debug/DSEVUtils.dll
Binary file not shown.
Binary file added DSEVUtils/obj/Debug/DSEVUtils.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added DSEVUtils/obj/Debug/NuclearEngines.dll
Binary file not shown.
Binary file added DSEVUtils/obj/Debug/NuclearEngines.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added DSEVUtils/obj/Release/NuclearEngines.dll
Binary file not shown.
Binary file added DSEVUtils/obj/Release/NuclearEngines.pdb
Binary file not shown.
Binary file added GameData/ModuleManager.2.6.25.dll
Binary file not shown.
Expand Up @@ -2,7 +2,7 @@ STORAGE_TEMPLATE
{
name = Konkrete
author = Angel-125
shortName = Slag
shortName = Konkrete
logoPanel = WildBlueIndustries/000WildBlueTools/CommonTemplates/Decals/Konkrete
glowPanel = WildBlueIndustries/000WildBlueTools/CommonTemplates/Decals/KonkreteGlow
description = This kit stores konkrete, the prime building material used in permanent dwellings.
Expand Down
Expand Up @@ -24,17 +24,17 @@ STORAGE_TEMPLATE:NEEDS[SimpleBoiloff]

STORAGE_TEMPLATE:NEEDS[SimpleBoiloff]
{
name = Cryo
name = Oxidizer
author = Angel-125
shortName = Cryo
shortName = Oxidizer
logoPanel = WildBlueIndustries/000WildBlueTools/CommonTemplates/Decals/LFO
glowPanel = WildBlueIndustries/000WildBlueTools/CommonTemplates/Decals/LFOGlow
description = This kit stores oxidizer.

RESOURCE
{
name = Oxidizer
amount = 5600
maxAmount = 5600
amount = 1800
maxAmount = 1800
}
}
Binary file not shown.
Binary file not shown.
9 changes: 9 additions & 0 deletions GameData/WildBlueIndustries/000WildBlueTools/Readme.txt
Expand Up @@ -6,6 +6,15 @@ A KSP mod that provides common functionality for mods by Wild Blue Industries.

Copy the contents of the mod's GameData directory into your GameData folder.

1.3.9
- Fixed an issue with the CryoFuels MM support to avoid duplicate templates.

1.3.8
- Fixed an issue with crew transfers not working after changing a part's crew capacity during a template switch.

1.3.7
- Fixed an issue with WBILight throwing NREs in the VAB/SPH.

1.3.6
- Minor bug fixes

Expand Down
Expand Up @@ -12,7 +12,7 @@
{
"MAJOR":1,
"MINOR":3,
"PATCH":6
"PATCH":9
},
"KSP_VERSION":
{
Expand Down
4 changes: 2 additions & 2 deletions GameData/WildBlueIndustries/DSEV/DSEV.version
Expand Up @@ -11,8 +11,8 @@
"VERSION":
{
"MAJOR":1,
"MINOR":1,
"PATCH":9
"MINOR":2,
"PATCH":0
},
"KSP_VERSION":
{
Expand Down
6 changes: 6 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM100.cfg
Expand Up @@ -87,4 +87,10 @@ MODULE
showDecals = true
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}


}
5 changes: 5 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM14400.cfg
Expand Up @@ -92,4 +92,9 @@ PART
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}

}
5 changes: 5 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM1600.cfg
Expand Up @@ -91,4 +91,9 @@ PART
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}

}
8 changes: 7 additions & 1 deletion GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM200.cfg
Expand Up @@ -79,6 +79,12 @@ PART
//Name of the logo panel transforms
logoPanelTransform = decalPanel001, decalPanel002, decalPanel003, decalPanel004
decalsVisible = false
}
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}


}
6 changes: 6 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM3200.cfg
Expand Up @@ -89,4 +89,10 @@ PART
logoPanelTransform = decalPanel001, decalPanel002, decalPanel003, decalPanel004
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}

}
5 changes: 5 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM3600.cfg
Expand Up @@ -91,4 +91,9 @@ PART
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}

}
6 changes: 6 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM400.cfg
Expand Up @@ -81,4 +81,10 @@ PART
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}


}
5 changes: 5 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM6400.cfg
Expand Up @@ -92,4 +92,9 @@ PART
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}

}
6 changes: 6 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM7200.cfg
Expand Up @@ -89,4 +89,10 @@ PART
logoPanelTransform = decalPanel001, decalPanel002, decalPanel003, decalPanel004
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}

}
5 changes: 5 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Parts/FuelTank/FLM800.cfg
Expand Up @@ -81,4 +81,9 @@ PART
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}

}
Expand Up @@ -57,7 +57,7 @@ PART

MODULE
{
name = WBIResourceSwitcher
name = WBIConvertibleStorage
enableLogging = True
showGUI = True

Expand Down Expand Up @@ -85,6 +85,11 @@ PART
decalsVisible = false
}
MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}
MODULE
{
name = ModuleHexTruss
Expand Down
Expand Up @@ -57,7 +57,7 @@ PART
MODULE
{
name = WBIResourceSwitcher
name = WBIConvertibleStorage
enableLogging = True
showGUI = True
Expand Down Expand Up @@ -85,6 +85,11 @@ PART
decalsVisible = false
}

MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}

MODULE
{
name = ModuleHexTruss
Expand Down
Expand Up @@ -57,7 +57,7 @@ PART

MODULE
{
name = WBIResourceSwitcher
name = WBIConvertibleStorage
enableLogging = True
showGUI = True

Expand Down Expand Up @@ -85,6 +85,11 @@ PART
decalsVisible = false
}
MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}
MODULE
{
name = ModuleHexTruss
Expand Down
Expand Up @@ -57,7 +57,7 @@ PART

MODULE
{
name = WBIResourceSwitcher
name = WBIConvertibleStorage
enableLogging = True
showGUI = True

Expand Down Expand Up @@ -85,6 +85,11 @@ PART
decalsVisible = false
}
MODULE:NEEDS[Pathfinder]
{
name = WBIResourceDistributor
}
MODULE
{
name = ModuleHexTruss
Expand Down
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions GameData/WildBlueIndustries/DSEV/Readme.txt
Expand Up @@ -18,6 +18,12 @@ Copy the WildBlueIndustries directory into your GameData folder.

---REVISION HISTORY---

1.2.0
- Fixed an issue where the Hex Trusses weren't providing the hollow truss configuration.
- Fixed an issue where the Hex Trusses weren't allowing you to reconfigure the fuel tanks in their fuel tank configuration.
- Hex Trusses now use the standard dialog for configuring resources.
- All fuel tanks and trusses can now participate in Pathfinder's resource distribution system.

1.1.9
- Recompiled for latest WBT.

Expand Down
Binary file added NuclearEngines.suo
Binary file not shown.

0 comments on commit f064eee

Please sign in to comment.