Compare commits

..

13 Commits

Author SHA1 Message Date
5853781461 Merge branch '1-11-updates' 2021-01-13 13:53:22 -08:00
19762f5cf4 Fix entry cost 2020-12-25 01:48:46 -08:00
c8b46f394b Add rotated HG-20 2020-12-25 01:45:06 -08:00
52bc3a557a Add rotated HG-5 2020-12-24 15:16:07 -08:00
90bd2b220f ignore thumbnails folder 2020-12-24 15:03:42 -08:00
aaaa4d097a
Merge pull request #913 from taniwha/launchclamp_el_compat
Pre-rotate the anchor transform
2020-10-04 20:49:23 -07:00
2fbfe712b5
Asset Updates 2020-09-21 19:15:41 -07:00
b0caffd708
Update changelog 2020-09-21 19:13:23 -07:00
e1d3780d91
Fix attachment rules 2020-09-21 19:11:49 -07:00
fcd24b7c5c
Merge remote-tracking branch 'origin/master' into develop 2020-09-21 18:51:29 -07:00
a57ed98c17
Small LES config 2020-09-21 18:51:17 -07:00
b7b60bae91
LES assets 2020-09-15 19:52:12 -07:00
Bill Currie
7a29651f67 Pre-rotate the anchor transform
This is the launch clamp side of the fix for the EL-ReStock launch clamp
compatibility issue. The issue was reported in the EL thread and started
out as issues with getting the build cost but after fixing that, had
issues with the clamps extending properly when built at a survey site.
The bulk of the fix for that is (or will be) in EL, but this change is
for handling rotated clamps: it points the tower in the correct (editor)
direction prior to the tower being extended.
2020-09-13 15:41:09 +09:00
14 changed files with 439 additions and 4 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@ build-deploy/
bin/ bin/
obj/ obj/
*.swp *.swp
**/@thumbs
Distribution/Restock/GameData/ReStock/Spaces/**/*.png Distribution/Restock/GameData/ReStock/Spaces/**/*.png
Distribution/Restock/GameData/ReStock/Props/**/*.png Distribution/Restock/GameData/ReStock/Props/**/*.png

View File

@ -1,11 +1,94 @@
// Patches applying art changes to relay antennas // Patches applying art changes to relay antennas
// Contents: // Contents:
// - HG-5 High Gain Antenna (HighGainAntenna5) // - Legacy HG-5 High Gain Antenna (HighGainAntenna5)
// - HG-5 High Gain Antenna (HighGainAntenna5_v2)
// - RA-2 Relay Antenna (RelayAntenna5) // - RA-2 Relay Antenna (RelayAntenna5)
// - RA-15 Relay Antenna (RelayAntenna50) // - RA-15 Relay Antenna (RelayAntenna50)
// - RA-100 Relay Antenna (RelayAntenna100) // - RA-100 Relay Antenna (RelayAntenna100)
// HG-5 High Gain Antenna // HG-5 High Gain Antenna
@PART[HighGainAntenna5_v2]:HAS[~RestockIgnore[*]]:FOR[000_ReStock]
{
@author = Andrew Cassidy
!MODEL {}
MODEL
{
model = ReStock/Assets/Communication/restock-relay-radial-1
rotation = 0, 90, 0
}
@MODULE[ModuleDeployableAntenna]
{
@animationName = Deploy
@pivotName = lower pivot
}
MODULE
{
name = ModulePartVariants
baseVariant = Radial
VARIANT
{
name = Radial
displayName = #LOC_Restock_variant-antenna_radial
themeName = White
primaryColor = #ffffff
secondaryColor = #707070
GAMEOBJECTS
{
arm_radial = true
arm_radial_reverse = false
arm_axial = false
arm_axial_reverse = false
}
}
VARIANT
{
name = Radial_Reverse
displayName = #LOC_Restock_variant-antenna_radial_reverse
themeName = White
primaryColor = #ffffff
secondaryColor = #707070
GAMEOBJECTS
{
arm_radial = false
arm_radial_reverse = true
arm_axial = false
arm_axial_reverse = false
}
}
VARIANT
{
name = Axial
displayName = #LOC_Restock_variant-antenna_axial
themeName = White
primaryColor = #ffffff
secondaryColor = #707070
GAMEOBJECTS
{
arm_radial = false
arm_radial_reverse = false
arm_axial = true
arm_axial_reverse = false
}
}
VARIANT
{
name = Axial_Reverse
displayName = #LOC_Restock_variant-antenna_axial_reverse
themeName = White
primaryColor = #ffffff
secondaryColor = #707070
GAMEOBJECTS
{
arm_radial = false
arm_radial_reverse = false
arm_axial = false
arm_axial_reverse = true
}
}
}
}
// Legacy HG-5 High Gain Antenna
@PART[HighGainAntenna5]:HAS[~RestockIgnore[*]]:FOR[000_ReStock] @PART[HighGainAntenna5]:HAS[~RestockIgnore[*]]:FOR[000_ReStock]
{ {
@author = Andrew Cassidy @author = Andrew Cassidy

View File

@ -14,6 +14,7 @@ v1.3.0
- RV-1X RCS Block (Nertea): ported RCS models from Restock+ to support new model - RV-1X RCS Block (Nertea): ported RCS models from Restock+ to support new model
- PlaceAnywhere 1 Linear RCS thruster (Nertea): ported RCS model from Restock+ - PlaceAnywhere 1 Linear RCS thruster (Nertea): ported RCS model from Restock+
- Updates and fixes - Updates and fixes
- Rotated the HG-5 antenna model to match stock
- Updated old Mk1, Mk2 Illuminator models to use reflectivity on their lenses - Updated old Mk1, Mk2 Illuminator models to use reflectivity on their lenses
- Added White variant to Mk1, Mk2 Illuminators - Added White variant to Mk1, Mk2 Illuminators
- Added RCS nozzle glows to improve RCS effects - Added RCS nozzle glows to improve RCS effects

View File

@ -96,6 +96,10 @@ Localization
#LOC_RestockPlus_restock-engine-srb-striker_description = Discontinued due to component shortages. Extending the Mallet with additional segments can provide more boom than your integration team knows what to do with! #LOC_RestockPlus_restock-engine-srb-striker_description = Discontinued due to component shortages. Extending the Mallet with additional segments can provide more boom than your integration team knows what to do with!
#LOC_RestockPlus_restock-engine-srb-striker_tags = a moar (more motor rocket srb restock striker #LOC_RestockPlus_restock-engine-srb-striker_tags = a moar (more motor rocket srb restock striker
#LOC_RestockPlus_restock-engine-les-2_title = Launch Escape System Jr.
#LOC_RestockPlus_restock-engine-les-2_description = A smaller solid rocket tower for yeeting crew away from certain death.
#LOC_RestockPlus_restock-engine-les-2_tags = abort booster emergency explo ?les l.e.s malfunc ?rud safe solid surviv restock junior 625
// Radial // Radial
#LOC_RestockPlus_restock-engine-panda_title = RK-1 'Trash Panda' Vernier Engine #LOC_RestockPlus_restock-engine-panda_title = RK-1 'Trash Panda' Vernier Engine
#LOC_RestockPlus_restock-engine-panda_description = This small engine has a very large single axis gimbal mechanism which allows excellent control at all flight regimes. #LOC_RestockPlus_restock-engine-panda_description = This small engine has a very large single axis gimbal mechanism which allows excellent control at all flight regimes.

View File

@ -1,4 +1,5 @@
// 4x radial relay antenna // 4x radial relay antenna
// NOTE: Soft-deprecated as of KSP 1.11 update
PART PART
{ {
name = restock-relay-radial-2 name = restock-relay-radial-2
@ -14,9 +15,10 @@ PART
node_attach = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0 node_attach = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0
node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0 node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0
TechRequired = electrics TechRequired = electrics
entryCost = 2000 entryCost = 0
cost = 1000 cost = 1000
category = Communication category = none
TechHidden = True
title = #LOC_RestockPlus_restock-relay-radial-2_title //HG-20 High Gain Antenna title = #LOC_RestockPlus_restock-relay-radial-2_title //HG-20 High Gain Antenna
manufacturer = #autoLOC_501635 //#autoLOC_501635 = Ionic Symphonic Protonic Electronics manufacturer = #autoLOC_501635 //#autoLOC_501635 = Ionic Symphonic Protonic Electronics
description = #LOC_RestockPlus_restock-relay-radial-2_description description = #LOC_RestockPlus_restock-relay-radial-2_description

View File

@ -0,0 +1,124 @@
// 4x radial relay antenna
PART
{
name = restock-relay-radial-2_v2
module = Part
author = Andrew Cassidy
MODEL
{
model = ReStock/Assets/Communication/restock-relay-radial-2
rotation = 0, 90, 0
}
rescaleFactor = 1.0
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,1,0,0,0
node_attach = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0
node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0
TechRequired = electrics
entryCost = 2000
cost = 1000
category = Communication
title = #LOC_RestockPlus_restock-relay-radial-2_title //HG-20 High Gain Antenna
manufacturer = #autoLOC_501635 //#autoLOC_501635 = Ionic Symphonic Protonic Electronics
description = #LOC_RestockPlus_restock-relay-radial-2_description
// A longer range version of the HG-5 that can handle either direct communications or short range relays, using 4 different dishes.
mass = 0.18
dragModelType = default
maximum_drag = 0.3
minimum_drag = 0.3
angularDrag = 1
crashTolerance = 8
maxTemp = 2000
vesselType = Relay
bulkheadProfiles = srf
tags = #LOC_RestockPlus_restock-relay-radial-2_tags
MODULE
{
name = ModuleDeployableAntenna
showStatus = false
isTracking = false
pivotName = lower pivot
windResistance = 1
animationName = Deploy
extendActionName = #autoLOC_6002398 //#autoLOC_6002398 = Extend <<1>>
retractActionName = #autoLOC_6002399 //#autoLOC_6002399 = Retract <<1>>
extendpanelsActionName = #autoLOC_6002400 //#autoLOC_6002400 = Toggle <<1>>
}
MODULE
{
name = ModuleDataTransmitter
antennaType = RELAY
packetInterval = 0.35
packetSize = 2
packetResourceCost = 40.0
requiredResource = ElectricCharge
DeployFxModules = 0
antennaPower = 20000000
antennaCombinable = True
}
MODULE
{
name = ModulePartVariants
baseVariant = Radial
VARIANT
{
name = Radial
displayName = #LOC_Restock_variant-antenna_radial
themeName = White
primaryColor = #ffffff
secondaryColor = #707070
GAMEOBJECTS
{
arm_radial = true
arm_radial_reverse = false
arm_axial = false
arm_axial_reverse = false
}
}
VARIANT
{
name = Radial_Reverse
displayName = #LOC_Restock_variant-antenna_radial_reverse
themeName = White
primaryColor = #ffffff
secondaryColor = #707070
GAMEOBJECTS
{
arm_radial = false
arm_radial_reverse = true
arm_axial = false
arm_axial_reverse = false
}
}
VARIANT
{
name = Axial
displayName = #LOC_Restock_variant-antenna_axial
themeName = White
primaryColor = #ffffff
secondaryColor = #707070
GAMEOBJECTS
{
arm_radial = false
arm_radial_reverse = false
arm_axial = true
arm_axial_reverse = false
}
}
VARIANT
{
name = Axial_Reverse
displayName = #LOC_Restock_variant-antenna_axial_reverse
themeName = White
primaryColor = #ffffff
secondaryColor = #707070
GAMEOBJECTS
{
arm_radial = false
arm_radial_reverse = false
arm_axial = false
arm_axial_reverse = true
}
}
}
}

View File

@ -0,0 +1,200 @@
// ReStock+ 1.3.0
// 0.625m Launch Escape System
PART
{
name = restock-engine-les-2
module = Part
author = Andrew Cassidy
MODEL
{
model = ReStockPlus/Assets/Engine/restock-engine-les-2
scale = 1.0, 1.0, 1.0
}
scale = 1
rescaleFactor = 1
// Attachment
node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0
attachRules = 1,1,1,1,0
// Tech
TechRequired = landing
entryCost = 2400
// Info
cost = 400
category = Utility
title = #LOC_RestockPlus_restock-engine-les-2_title // Launch Escape System Jr.
manufacturer = #autoLOC_501638 //#autoLOC_501638 = Kerbodyne
description = #LOC_RestockPlus_restock-engine-les-2_description
// A smaller solid rocket tower for yeeting crew away from certain death.
tags = #LOC_RestockPlus_restock-engine-les-2_tags
// abort booster emergency explo ?les l.e.s malfunc ?rud safe solid surviv restock junior 625
bulkheadProfiles = size0
// Parameters
mass = 0.5
CoMOffset = 0.0, 2.1, 0.0
CoPOffset = 0.1, 1.8, 0.0
dragModelType = default
maximum_drag = 0.3
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 15
breakingTorque = 30
breakingForce = 30
maxTemp = 2700 // = 3900
emissiveConstant = 0.95
stagingIcon = SOLID_BOOSTER
bulkheadProfiles = size0
EFFECTS
{
engage
{
AUDIO
{
channel = Ship
clip = sound_vent_medium
volume = 1.0
pitch = 2.0
loop = false
}
}
flameout
{
AUDIO
{
channel = Ship
clip = sound_explosion_low
volume = 1.0
pitch = 2.0
loop = false
}
}
fx-les-running
{
AUDIO
{
channel = Ship
clip = sound_rocket_hard
volume = 0.0 0.0
volume = 0.01 0.4
volume = 1.0 1.0
pitch = 0.0 0.2
pitch = 0.01 0.6
pitch = 1.0 1.8
loop = true
}
MODEL_MULTI_PARTICLE
{
name = core
modelName = ReStock/FX/restock-fx-srb-tiny-core-1
transformName = fxTransform
emission = 0.0 0.0
emission = 0.01 0.1
emission = 0.075 0.25
emission = 1.0 1.0
speed = 0.0 0.35
speed = 1.0 1.0
}
PREFAB_PARTICLE
{
prefabName = fx_smokeTrail_light
transformName = fxSmoke
emission = 0.0 0.0
emission = 0.05 0.0
emission = 0.075 0.25
emission = 1.0 1.25
speed = 0.0 0.25
speed = 1.0 1.0
localOffset = 0, 0, 0
}
}
}
MODULE
{
name = ModuleEnginesFX
engineID = LES
runningEffectName = fx-les-running
thrustVectorTransformName = thrustTransform
exhaustDamage = False
throttleLocked = True
ignitionThreshold = 0.1
minThrust = 0
maxThrust = 200
heatProduction = 300
fxOffset = 0, 0, 0.25
EngineType = SolidBooster
PROPELLANT
{
name = SolidFuel
ratio = 1.0
DrawGauge = True
}
atmosphereCurve
{
key = 0 180
key = 1 160
key = 8 0.001
}
}
RESOURCE
{
name = SolidFuel
amount = 25
maxAmount = 25
}
MODULE
{
name = FXModuleAnimateThrottle
animationName = restock-srb-les-heat-2
responseSpeed = 0.5
dependOnEngineState = True
dependOnThrottle = True
}
fx_gasBurst_white = 0.0, -1.372544, 0.0, 0.0, -1.0, 0.0, decouple
sound_decoupler_fire = decouple
MODULE
{
name = ModuleDecouple
ejectionForce = 40
explosiveNodeID = bottom
}
MODULE
{
name = ModulePartVariants
baseVariant = White
VARIANT
{
name = White
displayName = #autoLOC_8007116 // White
themeName = White
primaryColor = #ffffff
secondaryColor = #E8DB27
GAMEOBJECTS
{
LES_Red = false
LES_White = true
}
}
VARIANT
{
name = Red
displayName = #autoLOC_8007117 // Dark
themeName = Dark
primaryColor = #723333
secondaryColor = #404040
GAMEOBJECTS
{
LES_Red = true
LES_White = false
}
}
}
}

View File

@ -3,10 +3,13 @@ v1.3.0
- KSP 1.11 - KSP 1.11
- Updated French localization (vinix38) - Updated French localization (vinix38)
- Removed Light Adjustement patch, replaced with new stock functionality as part of base Restock - Removed Light Adjustement patch, replaced with new stock functionality as part of base Restock
- Added a new version of the HG-20 High Gain Antenna matching the orientation of the stock HG-5. The old version has been soft-deprecated.
- Soft-deprecated all various RV-series and RC-series RCS blocks - Soft-deprecated all various RV-series and RC-series RCS blocks
- New RCS parts: - New RCS parts:
- RV-105-A RCS Thruster Block : RCS block with 45 degree canted nozzles, available in 5x, 4x, 3x, 2x variants - RV-105-A RCS Thruster Block : RCS block with 45 degree canted nozzles, available in 5x, 4x, 3x, 2x variants
- RV-1X-A RCS Thruster Block : Micro RCS block with 45 degree canted nozzles, available in 5x, 4x, 3x, 2x variants - RV-1X-A RCS Thruster Block : Micro RCS block with 45 degree canted nozzles, available in 5x, 4x, 3x, 2x variants
- New Engine parts:
- Launch Escape System Jr. (Andrew Cassidy): 0.625m Escape Tower with white and red/black variants.
v1.2.1 v1.2.1
------ ------

View File

@ -22,6 +22,7 @@ namespace Restock
public LaunchClampGirderFactory girderFactory; public LaunchClampGirderFactory girderFactory;
private int _girderSegments; private int _girderSegments;
private Quaternion towerRot;
private Material _girderMaterial; private Material _girderMaterial;
private Matrix4x4[] _girderMatrices; private Matrix4x4[] _girderMatrices;
@ -63,12 +64,28 @@ namespace Restock
girderFactory.Initialize(girderMesh, girderSegmentHeight, maxSegments); girderFactory.Initialize(girderMesh, girderSegmentHeight, maxSegments);
} }
} }
if (node.HasValue ("towerRot"))
{
string rot = node.GetValue ("towerRot");
towerRot = KSPUtil.ParseQuaternion (rot);
}
_girderSegments = 1; _girderSegments = 1;
base.OnLoad(node); base.OnLoad(node);
} }
public void RotateTower ()
{
// transforms found in OnLoad
float height = Vector3.Distance (towerAnchor.position, towerStretch.position);
//Debug.Log($"[ModuleRestockLaunchClamp] RotateTower: {height} {towerRot}");
towerPivot.localRotation = towerRot;
towerAnchor.localRotation = towerRot;
towerAnchor.position = towerStretch.position - towerStretch.up * height;
}
public override void OnStart(StartState state) public override void OnStart(StartState state)
{ {
base.OnStart(state); base.OnStart(state);
@ -144,4 +161,4 @@ namespace Restock
girderMeshFilter.mesh = girderFactory.makeGirder(girderSegments); girderMeshFilter.mesh = girderFactory.makeGirder(girderSegments);
} }
} }
} }