Created
April 3, 2018 15:31
-
-
Save swavkulinski/76b08c81ba0681f7e6699a12e086f42e to your computer and use it in GitHub Desktop.
Tantares LV TweakScale generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final matrix = {'ALV_1_Engine_1':2.5, | |
'ALV_1_Engine_2':2.5, | |
'ALV_2_Engine_1':2.5, | |
'ALV_LFO_A':2.5, | |
'ALV_3_Engine_1':2.5, | |
'ALV_3_LFO_1':2.5, | |
'Castor_Decoupler_1_N':0.625, | |
'Castor_Decoupler_1_O':0.9375, | |
'Castor_Decoupler_1_P':1.25, | |
'Castor_Decoupler_1_Q':1.875, | |
'Castor_Decoupler_1_R':2.5, | |
'CLV_1_Engine_1':1.25, | |
'CLV_1_LFO_1':1.25, | |
'CLV_1_LFO_2':1.25, | |
'CLV_2_Engine_1':1.25, | |
'CLV_2_LFO_1':1.25, | |
'CLV_2_LFO_2':1.25, | |
'LLV_A_Decoupler_1':5.0, | |
'LLV_A_Engine_1':6.25, | |
'LLV_A_LFO_1':6.25, | |
'LLV_B_Decoupler_1':3.75, | |
'LLV_B_Engine_1':3.75, | |
'LLV_B_Fairing_1':3.75, | |
'LLV_E_Decoupler_1':1.25, | |
'LLV_E_Fairing_1':1.25, | |
'LLV_G_Decoupler_1':1.875, | |
'LLV_G_Engine_1':1.875, | |
'LLV_G_Fairing_1':1.875, | |
'LLV_G_LFO_1':1.875, | |
'LLV_G_LFO_2':1.875, | |
'LLV_G_LFO_3':1.875, | |
'LLV_H_Decoupler_1':0.625, | |
'LLV_O_Decoupler_1':0.9375, | |
'LLV_V_Decoupler_1':2.5, | |
'LLV_V_Engine_1':2.5, | |
'LLV_V_Fairing_1':2.5, | |
'SUS_Engine_1':1.25, | |
'SUS_LFO_1':0.9375, | |
'TLV_0_Engine_1':1.875, | |
'TLV_0_Fin_1':0.0, | |
'TLV_0_LFO_1':1.875, | |
'TLV_1_Decoupler_1':1.25, | |
'TLV_1_Engine_1':1.25, | |
'TLV_1_LFO_1':1.25, | |
'TLV_1_LFO_2':1.25, | |
'TLV_2_Engine_1':1.25, | |
'TLV_2_Fairing_1':1.25, | |
'TLV_2_LFO_1':1.25, | |
'TUS_Engine_1':0.9375, | |
'TUS_LFO_1':0.9375,}; | |
final template = ''' | |
@PART[__NAME__] | |
{ | |
%MODULE[TweakScale] | |
{ | |
type = stack | |
defaultScale = __SCALE__ | |
} | |
} | |
'''; | |
matrix.forEach((name,scale)=> print(template.replaceAll('__NAME__',name).replaceAll('__SCALE__','$scale'))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment