Skip to content

Commit

Permalink
Initial checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
jsolson committed Mar 4, 2016
1 parent 6e20ad3 commit 68617d5
Show file tree
Hide file tree
Showing 15 changed files with 264 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

*.zip
*.bak
14 changes: 14 additions & 0 deletions GameData/Firespitter/Firespitter.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"NAME": "Firespitter",
"URL": "https://raw.githubusercontent.com/snjo/Firespitter/master/For%20release/Firespitter/Firespitter.version",
"VERSION": {
"MAJOR": 7,
"MINOR": 1,
"PATCH": 4
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 0,
"PATCH": 4
}
}
14 changes: 14 additions & 0 deletions GameData/Firespitter/Plugins/FSfuelSwitchTweakscale.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@TWEAKSCALEEXPONENTS[FSfuelSwitch]:NEEDS[TweakScale]
{
@tankList
{
@resources
{
@amount = 3
@maxAmount = 3
}
}
%basePartMass = 3
weightList = 3
tankCostList = 3
}
Binary file added GameData/Firespitter/Plugins/Firespitter.dll
Binary file not shown.
Binary file added GameData/Jso/Bdb/PF/bdb_Etoh.dds
Binary file not shown.
Binary file added GameData/Jso/Bdb/PF/bdb_Etoh_test.dds
Binary file not shown.
Binary file added GameData/Jso/Bdb/PF/bdb_Titanfairing.dds
Binary file not shown.
Binary file added GameData/Jso/Bdb/PF/bdb_fairing.dds
Binary file not shown.
126 changes: 126 additions & 0 deletions GameData/Jso/Bdb/PF/bdb_pf.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
@PART[bluedog*,Bluedog*]:HAS[@MODULE[ModuleProceduralFairing]]:First:NEEDS[ProceduralFairings]
{
%extraNodeShift = 0.0
}

@PART[bluedog_ableFairing]:BEFORE[Jso_Bdb_PF]:NEEDS[ProceduralFairings]
{
@extraNodeShift = -0.0171605
}
@PART[bluedog_ablestarFairing]:BEFORE[Jso_Bdb_PF]:NEEDS[ProceduralFairings]
{
@extraNodeShift = -0.050
}
@PART[bluedog_DeltaK_FairingTank]:BEFORE[Jso_Bdb_PF]:NEEDS[ProceduralFairings]
{
@extraNodeShift = -0.380
}
@PART[bluedog_centaurFairing]:BEFORE[Jso_Bdb_PF]:NEEDS[ProceduralFairings]
{
@extraNodeShift = -0.129
}

+PART[bluedog*,Bluedog*]:HAS[@MODULE[ModuleProceduralFairing]]:FOR[Jso_Bdb_PF]:NEEDS[ProceduralFairings]
{
@name ^= :$:_PF:
@title ^= :$: (PF):

// Modifier for the base size to account for PF shrinking
// the part by the fairing wall width.
// Fairing wall width: 0.04 * scale size
%extraBaseRadius = #$MODULE[ModuleProceduralFairing]/baseRadius$
@extraBaseRadius *= 2
@extraBaseRadius *= 0.04

// Hold the original fairing diameter in tempBaseSize, and set scale
// to the scale needed to get to 1 meter. PF expects a 1 meter part.
// Scale is adjusted to account for fairing wall.
%tempBaseSize = #$MODULE[ModuleProceduralFairing]/baseRadius$
%tempScaleSize = #$tempBaseSize$
@tempScaleSize += #$extraBaseRadius$
@tempScaleSize *= 2
@tempBaseSize *= 2
@tempScaleSize /= #$tempBaseSize$
%scale = #$tempScaleSize$
@scale /= #$tempBaseSize$
%rescaleFactor = 1

// Scale the node positions
@node_stack_top[1,,] *= #$scale$
@node_stack_bottom[1,,] *= #$scale$

// Save the top node position. Everything will shift by this amount
// to move the top node to position 0. PF starts the fairing
// at height 0.
%tempShift = #$node_stack_top[1,,]$
// Part specific adjustment
@tempShift += #$extraNodeShift$

// Scale and adjust model position
@MODEL
{
%position = 0.0, 0.0, 0.0
@position[1,,] -= #$../tempShift$
%scale = #$../scale$, $../scale$, $../scale$
}

// Adjust node positions
@node_stack_top[1,,] -= #$tempShift$
@node_stack_bottom[1,,] -= #$tempShift$

node_stack_connect01 = 0.5, 0.000, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect02 = 0.5, 0.000, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect03 = 0.5, 0.000, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect04 = 0.5, 0.000, 0.0, 0.0, 1.0, 0.0, 0

MODULE
{
name = ProceduralFairingBase
// baseSize = 1.15
// sideThickness = 0.05
// verticalStep = 0.1
}

MODULE
{
name = KzNodeNumberTweaker
nodePrefix = connect
maxNumber = 4
numNodes = 2
// radius = 0.625
shouldResizeNodes = False
}

MODULE
{
name = KzFairingBaseResizer
size = #$../tempBaseSize$
costPerTonne = 1000
specificMass = 0.0070, 0.0260, 0.0100, 0
specificBreakingForce = 1280
specificBreakingTorque = 1280
dragAreaScale = 1.5
}

MODULE
{
name = KzFairingBaseShielding
}

!MODULE[ModuleProceduralFairing] {}
!MODULE[ModuleCargoBay] {}
}

@PART[bluedog*,Bluedog*]:HAS[@MODULE[ModuleProceduralFairing]]:AFTER[Jso_Bdb_PF]:NEEDS[ProceduralFairings]
{
!extraNodeShift = delete
}

@PART[bluedog*,Bluedog*]:HAS[@MODULE[ProceduralFairingBase]]:FOR[Jso_Bdb_PF]:NEEDS[ProceduralFairings]
{
!extraNodeShift = delete
!extraBaseRadius = delete
!tempBaseSize = delete
!tempScaleSize = delete
!tempShift = delete
}
73 changes: 73 additions & 0 deletions GameData/Jso/Bdb/PF/bdb_pf_side.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
+PART[KzProcFairingSide1]:NEEDS[Firespitter]
{
@name = bluedog_ProcFairingSide1
@title = Bluedog Procedural Egg-Shaped Fairing
@MODEL
{
%texture = fairing1, Jso/Bdb/PF/bdb_fairing
}
MODULE
{
name = FStextureSwitch2
objectNames = model
textureRootFolder = Jso/Bdb/PF/
textureNames = bdb_fairing;bdb_Titanfairing;bdb_Etoh;bdb_Etoh_test
textureDisplayNames = Bdb;Bdb Titan;Bdb Etoh;Bdb Etoh Test

switchableInFlight = false
updateSymmetry = true
showListButton = false
}
}

+PART[KzProcFairingSide2]:NEEDS[Firespitter]
{
@name = bluedog_ProcFairingSide2
@title = Bluedog Procedural Conic Fairing
@MODEL
{
%texture = fairing1, Jso/Bdb/PF/bdb_fairing
}
MODULE
{
name = FStextureSwitch2
objectNames = model
textureRootFolder = #$@PART[bluedog_ProcFairingSide1]/MODULE[FStextureSwitch2]/textureRootFolder$
textureNames = #$@PART[bluedog_ProcFairingSide1]/MODULE[FStextureSwitch2]/textureNames$
textureDisplayNames = #$@PART[bluedog_ProcFairingSide1]/MODULE[FStextureSwitch2]/textureDisplayNames$

switchableInFlight = false
updateSymmetry = true
showListButton = false
}
}

+PART[KzProcFairingSide1]:NEEDS[Firespitter]
{
@name = bluedog_ProcFairingSide3
@title = Bluedog Procedural Blunt Fairing
@MODEL
{
%texture = fairing1, Jso/Bdb/PF/bdb_fairing
}
@MODULE[ProceduralFairingSide]
{
//@noseConeShape=0.5, 0.0, 0.7, 0.35
@noseConeShape=0.5, 0.0, 0.6, 0.0
@baseConeShape=0.3, 0.3, 0.7, 0.7
@baseConeSegments=3
@noseHeightRatio=2
}
MODULE
{
name = FStextureSwitch2
objectNames = model
textureRootFolder = #$@PART[bluedog_ProcFairingSide1]/MODULE[FStextureSwitch2]/textureRootFolder$
textureNames = #$@PART[bluedog_ProcFairingSide1]/MODULE[FStextureSwitch2]/textureNames$
textureDisplayNames = #$@PART[bluedog_ProcFairingSide1]/MODULE[FStextureSwitch2]/textureDisplayNames$

switchableInFlight = false
updateSymmetry = true
showListButton = false
}
}
Binary file added GameData/ModuleManager.2.6.18.dll
Binary file not shown.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# BDB-ProceduralFairings
Procedural fairings for Bluedog Design Bureau
Procedural fairings for CobaltWolf's Bluedog Design Bureau.

Converts all BDB fairing bases to work with procedural fairings.
Included side textures:
Bluedog default
Bluedog Titan
Etoh
Etoh Test

Dependencies
Procedural Fairings
Firespitter Core
Module Manager

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
Binary file added Source/bdb_Etoh.xcf
Binary file not shown.
Binary file added Source/bdb_Titanfairing.xcf
Binary file not shown.
Binary file added Source/bdb_fairing.xcf
Binary file not shown.

0 comments on commit 68617d5

Please sign in to comment.