Skip to content

Commit

Permalink
First Attempts at getting Folding Solar Panels to Work (THEY DON'T)
Browse files Browse the repository at this point in the history
  • Loading branch information
pap1723 committed Dec 20, 2019
1 parent f5b0496 commit f6e24e7
Show file tree
Hide file tree
Showing 17 changed files with 186 additions and 0 deletions.
Binary file added GameData/ROSolar/Assets/ReStock/SolarPanel1x6.mu
Binary file not shown.
Binary file not shown.
Binary file added GameData/ROSolar/Assets/ReStock/SolarPanel3x2.mu
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
83 changes: 83 additions & 0 deletions GameData/ROSolar/Data/Models/ModelData-Folding.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
ROL_MODEL
{
name = Stock-1x6
title = 1x6
description = 1x6 Panel Folding Solar Panel from Stock
modelName = Squad/Parts/Electrical/1x6SolarPanels/model
orientation = CENTRAL
rotationOffset = 0, 0, 0
diameter = 0.233
upperDiameter = 0.233
lowerDiameter = 0.233
minVerticalScale = 0.0001
maxVerticalScale = 999
height = 0.292
mass = 0.014336
cost = 1024
panelLength = 2.4
panelWidth = 0.4
panelArea = 0.96
secondaryTransformName = panel3
animationName = solarpanels4
pivotName = sunPivot
surfaceNodeX = 0.0
surfaceNodeY = 0.146
surfaceNodeZ = 0.0
lengthWidth = false
}

ROL_MODEL
{
name = ReStock-1x6
title = 1x6
description = 1x6 Panel Folding Solar Panel from ReStock
modelName = ROSolar/Assets/ReStock/SolarPanel1x6
orientation = CENTRAL
rotationOffset = 0, 0, 0
diameter = 0.233
upperDiameter = 0.233
lowerDiameter = 0.233
minVerticalScale = 0.0001
maxVerticalScale = 999
height = 0.292
mass = 0.014336
cost = 1024
panelLength = 2.4
panelWidth = 0.4
panelArea = 0.96
secondaryTransformName = panel6
animationName = solarpanels4
pivotName = sunPivot
surfaceNodeX = 0.0
surfaceNodeY = 0.146
surfaceNodeZ = 0.0
lengthWidth = false
}

ROL_MODEL
{
name = ReStock-3x2
title = 3x2
description = 3x2 Panel Folding Solar Panel from ReStock
modelName = ROSolar/Assets/ReStock/SolarPanel3x2
orientation = CENTRAL
rotationOffset = 0, 0, 0
diameter = 0.233
upperDiameter = 0.233
lowerDiameter = 0.233
minVerticalScale = 0.0001
maxVerticalScale = 999
height = 0.292
mass = 0.014336
cost = 1024
panelLength = 0.8
panelWidth = 1.2
panelArea = 0.96
secondaryTransformName = solar6
animationName = altsolarpanelbase
pivotName = sunPivot
surfaceNodeX = 0.0
surfaceNodeY = 0.146
surfaceNodeZ = 0.0
lengthWidth = false
}
103 changes: 103 additions & 0 deletions GameData/ROSolar/Parts/ROS-FoldingSolarPanel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
// ===========================================================================
// All work here was originally from Shadowmage and SSTU. I have adapted their
// work to be more usable for our purposes in Realism Overhaul, but all credit
// should be given to Shadowmage for the great work!
// ===========================================================================

PART
{
module = Part
name = ROS-FoldingSolarPanel
author = Pap, Shadowmage, Beale

RSSROConfig = true

// ============================================================================
// Model and Dimensions
// ============================================================================

MODEL
{
model = ROLib/Assets/EmptyProxyModel
}

scale = 1.0
rescaleFactor = 1.0
node_attach = 0,0,0,0,0,1,0

// stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,0,0

// ============================================================================
// Title, Description, Category, Techs
// ============================================================================

title = Folding Solar Panel
manufacturer = Generic
description = This folding solar panel allows you to choose different shapes, resize the panel and select the level of solar panel.

tags = proc, procedural, solar, power, folding

mass = 0.0

category = Electrical

TechRequired = start
cost = 50
entryCost = 1

// ============================================================================
// DO NOT CHANGE (Normally)
// ============================================================================

maxTemp = 773.15
skinMaxTemp = 873.15
crashTolerance = 5
breakingForce = 250
breakingTorque = 250
fuelCrossFeed = false
subcategory = 0
emissiveConstant = 0.85
thermalMassModifier = 1.0
skinMassPerArea = 2.0
buoyancy = 0.95

// ============================================================================
// Modules and Resources
// ============================================================================

MODULE
{
name = ModuleROSolar

// ModuleROSolar Fields
currentVariant = Stock
currentCore = Stock-1x6
panelLength = 1.0
panelWidth = 1.0
panelScale = 1.0
area = 1.0
solarPanelType = folded
fullScale = true
coreNodeNames = none

CORE
{
variant = Stock
model = Stock-1x6
model = ReStock-1x6
model = ReStock-3x2
}

// Normal ModuleDeployableSolarPanel Fields
//secondaryTransformName = panel3
animationName = solarpanels4
isTracking = false
retractable = false
resourceName = ElectricCharge
chargeRate = 0.081
extendActionName = #autoLOC_6001805 //#autoLOC_6001805 = Extend <<1>>
retractActionName = #autoLOC_6001806 //#autoLOC_6001806 = Retract <<1>>
extendpanelsActionName = #autoLOC_6001807 //#autoLOC_6001807 = Toggle <<1>>
}
}

0 comments on commit f6e24e7

Please sign in to comment.