Skip to content

Commit

Permalink
Added changes by KortexM.
Browse files Browse the repository at this point in the history
  • Loading branch information
e-dog committed Nov 8, 2016
1 parent 5c36351 commit 01ad72c
Show file tree
Hide file tree
Showing 27 changed files with 1,126 additions and 327 deletions.
Binary file modified GameData/ProceduralFairings/ProceduralFairings.dll
Binary file not shown.
44 changes: 40 additions & 4 deletions GameData/ProceduralFairings/adapter2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ scale = 1
rescaleFactor = 1

// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 2
node_stack_top = 0.0, 0.2, 0.0, 0.0, 1.0, 0.0, 2
node_stack_top1 = 0.0, 2.0, 0.0, 0.0, 1.0, 0.0, 2
node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1
node_stack_top = 0.0, 0.2, 0.0, 0.0, 1.0, 0.0, 1
node_stack_top1 = 0.0, 2.0, 0.0, 0.0, 1.0, 0.0, 1
node_stack_connect01 = -0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect02 = 0.0, 0.1, 0.5, 0.0, 1.0, 0.0, 0
node_stack_connect03 = 0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0
Expand All @@ -27,18 +27,39 @@ node_stack_connect06 = 0.0, 0.1, 0.5, 0.0, 1.0, 0.0, 0
node_stack_connect07 = 0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect08 = 0.0, 0.1, -0.5, 0.0, 1.0, 0.0, 0

node_stack_interstage01 = 0.0, 0.425, 0.0, 0.0, -1.0, 0.0, 0
node_stack_interstage01u = 0.0, 0.425, 0.0, 0.0, 1.0, 0.0, 0
node_stack_interstage02 = 0.0, 0.65, 0.0, 0.0, -1.0, 0.0, 0
node_stack_interstage02u = 0.0, 0.65, 0.0, 0.0, 1.0, 0.0, 0
node_stack_interstage03 = 0.0, 0.875, 0.0, 0.0, -1.0, 0.0, 0
node_stack_interstage03u = 0.0, 0.875, 0.0, 0.0, 1.0, 0.0, 0
node_stack_interstage04 = 0.0, 1.10, 0.0, 0.0, -1.0, 0.0, 0
node_stack_interstage04u = 0.0, 1.10, 0.0, 0.0, 1.0, 0.0, 0
node_stack_interstage05 = 0.0, 1.325, 0.0, 0.0, -1.0, 0.0, 0
node_stack_interstage05u = 0.0, 1.325, 0.0, 0.0, 1.0, 0.0, 0
node_stack_interstage06 = 0.0, 1.550, 0.0, 0.0, -1.0, 0.0, 0
node_stack_interstage06u = 0.0, 1.550, 0.0, 0.0, 1.0, 0.0, 0
node_stack_interstage07 = 0.0, 1.775, 0.0, 0.0, -1.0, 0.0, 0
node_stack_interstage07u = 0.0, 1.775, 0.0, 0.0, 1.0, 0.0, 0


stackSymmetry = 7

fx_gasBurst_white = 0.0, 0.3, 0.0, 0.0, 1.0, 0.0, decouple
sound_vent_large = decouple

TechRequired = advConstruction
cost = 100
entryCost = 4600
category = Aero
category = Payload
subcategory = 0
title = Interstage Fairing Adapter
manufacturer = Keramzit Engineering
description = Enables side fairings to hold the part at the top.
attachRules = 1,0,1,1,0

tags = procedural fairings

// --- standard part parameters ---
mass = 0
dragModelType = default
Expand Down Expand Up @@ -71,6 +92,7 @@ MODULE
specificBreakingForce =6050
specificBreakingTorque=6050
dragAreaScale = 1.5
topNodeDecouplesWhenFairingsGone = false
}

MODULE
Expand All @@ -97,11 +119,25 @@ MODULE
name = ModuleDecouple
ejectionForce = 0
explosiveNodeID = top1
stagingEnableText = Decoupler: Staging Disabled
stagingDisableText = Decoupler: Staging Enabled
menuName = Decouple TopNode
}

MODULE
{
name = KzFairingBaseShielding
}

MODULE
{
name = ModuleToggleCrossfeed
crossfeedStatus = false
toggleEditor = true
toggleFlight = true
enableText = Crossfeed: Disabled
disableText = Crossfeed: Enabled
}

}

39 changes: 37 additions & 2 deletions GameData/ProceduralFairings/base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,40 @@ node_stack_connect06 = 0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect07 = 0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect08 = 0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0

node_stack_interstage01 = 0.0, 1.20, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage01u = 0.0, 1.20, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage02 = 0.0, 1.90, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage02u = 0.0, 1.90, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage03 = 0.0, 2.60, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage03u = 0.0, 2.60, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage04 = 0.0, 3.30, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage04u = 0.0, 3.30, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage05 = 0.0, 4.00, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage05u = 0.0, 4.00, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage06 = 0.0, 4.70, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage06u = 0.0, 4.70, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage07 = 0.0, 5.40, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage07u = 0.0, 5.40, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage08 = 0.0, 6.10, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage08u = 0.0, 6.10, 0.0, 0.0, 1.0, 0.0, 1

stackSymmetry = 7

fx_gasBurst_white = 0.0, 0.3, 0.0, 0.0, 1.0, 0.0, deploy
sound_vent_large = deploy

TechRequired = aviation
cost = 100
entryCost = 4600
category = Aero
category = Payload
subcategory = 0
title = Fairing Base
manufacturer = Keramzit Engineering
description = Structural base for mounting side fairings and your payload. Decoupler sold separately. Raised surface can ease loading.
attachRules = 1,0,1,1,0

tags = procedural fairings

// --- standard part parameters ---
mass = 0
dragModelType = default
Expand All @@ -46,7 +68,6 @@ angularDrag = 2
crashTolerance = 12
maxTemp = 2600
explosionPotential = 0
fuelCrossFeed = False
thermalMassModifier = 2.0
skinMassPerArea = 4.0
skinInternalConductionMult = 0.25
Expand Down Expand Up @@ -89,4 +110,18 @@ MODULE
name = KzFairingBaseShielding
}



MODULE
{
name = ModuleToggleCrossfeed
crossfeedStatus = false
toggleEditor = true
toggleFlight = true
enableText = Crossfeed: Disabled
disableText = Crossfeed: Enabled
}


}

33 changes: 31 additions & 2 deletions GameData/ProceduralFairings/baseRing.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,37 @@ node_stack_connect06 = 0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect07 = 0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0
node_stack_connect08 = 0.5, 0.1, 0.0, 0.0, 1.0, 0.0, 0

node_stack_interstage01 = 0.0, 0.90, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage01u = 0.0, 0.90, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage02 = 0.0, 1.60, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage02u = 0.0, 1.60, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage03 = 0.0, 2.30, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage03u = 0.0, 2.30, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage04 = 0.0, 3.00, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage04u = 0.0, 3.00, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage05 = 0.0, 3.70, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage05u = 0.0, 3.70, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage06 = 0.0, 4.40, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage06u = 0.0, 4.40, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage07 = 0.0, 5.10, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage07u = 0.0, 5.10, 0.0, 0.0, 1.0, 0.0, 1
node_stack_interstage08 = 0.0, 5.80, 0.0, 0.0, -1.0, 0.0, 1
node_stack_interstage08u = 0.0, 5.80, 0.0, 0.0, 1.0, 0.0, 1

stackSymmetry = 7

TechRequired = aerodynamicSystems
cost = 100
entryCost = 4600
category = Aero
category = Payload
subcategory = 0
title = Fairing Base Ring
manufacturer = Keramzit Engineering
description = Structural base for mounting side fairings and your payload. Decoupler sold separately.
attachRules = 1,0,1,1,0

tags = procedural fairings

// --- standard part parameters ---
mass = 0
dragModelType = default
Expand All @@ -46,7 +65,6 @@ angularDrag = 2
crashTolerance = 12
maxTemp = 2600
explosionPotential = 0
fuelCrossFeed = False
thermalMassModifier = 2.0
skinMassPerArea = 4.0
skinInternalConductionMult = 0.25
Expand Down Expand Up @@ -89,4 +107,15 @@ MODULE
name = KzFairingBaseShielding
}

MODULE
{
name = ModuleToggleCrossfeed
crossfeedStatus = false
toggleEditor = true
toggleFlight = true
enableText = Crossfeed: Disabled
disableText = Crossfeed: Enabled
}

}

1 change: 1 addition & 0 deletions GameData/ProceduralFairings/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,4 @@ PART
category = none
manufacturer = Keramzit Engineering
}

5 changes: 4 additions & 1 deletion GameData/ProceduralFairings/fuselage1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ node_stack_connect = 0, 0.5, 0, 0, -1, 0, 0
TechRequired = advConstruction
cost = 100
entryCost = 2300
category = Structural
category = Payload
subcategory = 0
title = Egg-Shaped Fuselage Fairing
manufacturer = Keramzit Engineering
description = Lacks a decoupler. Useful for space bases, flying saucers, hiding things, and other unconventional projects.

attachRules = 1,0,0,1,1

tags = procedural fairings

mass = 0
dragModelType = default
maximum_drag = 0.2
Expand Down Expand Up @@ -66,3 +68,4 @@ MODULE
}

}

5 changes: 4 additions & 1 deletion GameData/ProceduralFairings/fuselage2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ node_stack_connect = 0, 0.5, 0, 0, -1, 0, 0
TechRequired = advConstruction
cost = 100
entryCost = 2300
category = Structural
category = Payload
subcategory = 0
title = Conic Fuselage Fairing
manufacturer = Keramzit Engineering
description = Lacks a decoupler. Useful for space bases, flying saucers, hiding things, and other unconventional projects.

attachRules = 1,0,0,1,1

tags = procedural fairings

mass = 0
dragModelType = default
maximum_drag = 0.2
Expand Down Expand Up @@ -64,3 +66,4 @@ MODULE
}

}

12 changes: 11 additions & 1 deletion GameData/ProceduralFairings/plate.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ angularDrag = 2
crashTolerance = 12
maxTemp = 2000
explosionPotential = 0
fuelCrossFeed = True
NoCrossFeedNodeKey = bottom
breakingForce = 2000
Expand Down Expand Up @@ -84,4 +83,15 @@ MODULE
maxSizeName = PROCROCKET_MAXDIAMETER
}
MODULE
{
name = ModuleToggleCrossfeed
crossfeedStatus = false
toggleEditor = true
toggleFlight = true
enableText = Crossfeed: Disabled
disableText = Crossfeed: Enabled
}
}
5 changes: 4 additions & 1 deletion GameData/ProceduralFairings/side1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ node_stack_connect = 0, 0.5, 0, 0, -1, 0, 0
TechRequired = aviation
cost = 100
entryCost = 4600
category = Aero
category = Payload
subcategory = 0
title = Egg-Shaped Fairing
manufacturer = Keramzit Engineering
description = Made from the finest materials found in the fields around the Space Center. Egg-shaped version.

attachRules = 1,0,0,1,1

tags = procedural fairings

mass = 0
dragModelType = default
maximum_drag = 0.1
Expand Down Expand Up @@ -74,3 +76,4 @@ MODULE
}

}

5 changes: 4 additions & 1 deletion GameData/ProceduralFairings/side2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ node_stack_connect = 0, 0.5, 0, 0, -1, 0, 0
TechRequired = aviation
cost = 100
entryCost = 4600
category = Aero
category = Payload
subcategory = 0
title = Conic Fairing
manufacturer = Keramzit Engineering
description = Made from the finest materials found in the fields around the Space Center. Conic version.

attachRules = 1,0,0,1,1

tags = procedural fairings

mass = 0
dragModelType = default
maximum_drag = 0.1
Expand Down Expand Up @@ -72,3 +74,4 @@ MODULE
}

}

1 change: 1 addition & 0 deletions Misc/addAlpha.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
aim=Image.open(afn)
im.putalpha(aim.convert('L'))
im.save(os.path.splitext(filename)[0][:-4]+'.png')

1 change: 1 addition & 0 deletions Misc/exportTex.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ def export_tex(fn, downscale=2, ext='.png'):

target_path="C:/games/KSPtest/GameData/ProceduralFairings/"
export_tex('fuselage1', 1, '.tga')

1 change: 1 addition & 0 deletions Misc/history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@

1.0
[*]Initial release.

3 changes: 2 additions & 1 deletion Misc/makezip.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@echo off
set name=C:\games\KSPtest\ProcFairings_3.17.zip
set name=C:\games\KSPtest\ProcFairings_3.20.zip
del %name%
7z a %name% readme.txt
cd ..
7z a %name% GameData

16 changes: 16 additions & 0 deletions Misc/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ Right-click parts and use tweakables.
Maximum (and minimum) part size is limited by tech. See GameData/ProceduralFairings/common.cfg for details.

--- Version history ---


3.20
- Added the following changes by KortexM:
- Ready for KSP 1.2 (recompiled, small changes to configs)
- Added Interstage Nodes (no trusses) to Fairings and Interstage Fairing, two connections possible on each node (up & down)
- A few code cleanups (foreach mostly)
- Fixed Fuel Crossfeed (be aware that flow to/from interstage nodes is affected too!)
- Fixed ghost nodes appearing when adding a new fairing base in the VAB/SPH
- Fixed blue ghost lines (invalid fairing outline) when having multiple fairing bases in VAB/SPH
- Fixed interstage nodes positions for Interstage Adapter when resized
- Some UI fixes
- Code cleanups (de-Linqed etc.)
- All other bugs/features untouched (hopefully..)

3.17
-Rebuilt for KSP 1.1.2.
-Fixed thermal issues with FAR (patch by NathanKell).
Expand Down Expand Up @@ -221,3 +236,4 @@ Maximum (and minimum) part size is limited by tech. See GameData/ProceduralFairi

1.0
-Initial release.

1 change: 1 addition & 0 deletions Misc/texTemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@

# im.show()
im.save('template.png')

Loading

0 comments on commit 01ad72c

Please sign in to comment.