Skip to content

Commit

Permalink
Makes it backward compatible with previous LRTR
Browse files Browse the repository at this point in the history
  • Loading branch information
pehvbot committed Oct 22, 2021
1 parent e782c9e commit 86b3227
Show file tree
Hide file tree
Showing 9 changed files with 237 additions and 200 deletions.
Binary file modified GameData/KerbalismConfig/Parts/@thumbs/kerbalism-antenna_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 16 additions & 16 deletions GameData/KerbalismConfig/Profiles/LRTRSimple.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ Profile
maxAmount = #$/CrewCapacity$
@amount *= 0.25125 //1 hour
@maxAmount *= 0.25125 //1 hour
@amount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 1 day
@maxAmount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 1 day
@amount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 1 day
@maxAmount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 1 day
}
RESOURCE
{
Expand All @@ -400,8 +400,8 @@ Profile
maxAmount = #$/CrewCapacity$
@amount *= 0.165416666666667 // 1 hour
@maxAmount *= 0.165416666666667 // 1 hour
@amount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 1 day
@maxAmount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 1 day
@amount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 1 day
@maxAmount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 1 day
}
RESOURCE
{
Expand All @@ -410,8 +410,8 @@ Profile
maxAmount = #$/CrewCapacity$
@amount *= 49.86125 // 2 hours
@maxAmount *= 49.86125 // 2 hours
@amount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 2 days
@maxAmount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 2 days
@amount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 2 days
@maxAmount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 2 days
}
MODULE
Expand Down Expand Up @@ -513,8 +513,8 @@ Profile
maxAmount = #$/CrewCapacity$
@amount *= 13.804166666666667 // 5 hours
@maxAmount *= 13.804166666666667 // 5 hours
@amount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 5 days
@maxAmount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 5 days
@amount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 5 days
@maxAmount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 5 days
}
}
Expand Down Expand Up @@ -1210,8 +1210,8 @@ Profile
repair = Engineer
mtbf = 8 // in years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@HOMEWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@HOMEWORLDPARAMETERS/daysPerYear$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.2
}
Expand Down Expand Up @@ -1316,8 +1316,8 @@ Profile
repair = Engineer
mtbf = 8 // in years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@HOMEWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@HOMEWORLDPARAMETERS/daysPerYear$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.2
}
Expand Down Expand Up @@ -1382,8 +1382,8 @@ Profile
repair = Engineer
mtbf = 8 // in years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@HOMEWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@HOMEWORLDPARAMETERS/daysPerYear$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.2
}
Expand Down Expand Up @@ -1461,8 +1461,8 @@ Profile
repair = Engineer
mtbf = 8 // in years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@HOMEWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@HOMEWORLDPARAMETERS/daysPerYear$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.5
}
Expand Down
32 changes: 16 additions & 16 deletions GameData/KerbalismConfig/Profiles/LRTRStock.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ Profile
name = Food
@amount *= 0.25125 //1 hour
@maxAmount *= 0.25125 //1 hour
@amount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 1 day
@maxAmount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 1 day
@amount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 1 day
@maxAmount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 1 day
}
RESOURCE
{
Expand All @@ -486,8 +486,8 @@ Profile
maxAmount = #$/CrewCapacity$
@amount *= 0.165416666666667 // 1 hour
@maxAmount *= 0.165416666666667 // 1 hour
@amount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 1 day
@maxAmount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 1 day
@amount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 1 day
@maxAmount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 1 day
}
RESOURCE
{
Expand All @@ -496,8 +496,8 @@ Profile
maxAmount = #$/CrewCapacity$
@amount *= 49.86125 // 2 hours
@maxAmount *= 49.86125 // 2 hours
@amount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 2 days
@maxAmount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 2 days
@amount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 2 days
@maxAmount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 2 days
}
MODULE
Expand Down Expand Up @@ -608,8 +608,8 @@ Profile
maxAmount = #$/CrewCapacity$
@amount *= 13.804166666666667 // 5 hours
@maxAmount *= 13.804166666666667 // 5 hours
@amount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 5 days
@maxAmount *= #$@HOMEWORLDPARAMETERS/hoursPerDay$ // 5 days
@amount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 5 days
@maxAmount *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$ // 5 days
}
}
Expand Down Expand Up @@ -1495,8 +1495,8 @@ Profile
repair = Engineer
mtbf = 8 // in years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@HOMEWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@HOMEWORLDPARAMETERS/daysPerYear$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.2
}
Expand Down Expand Up @@ -1634,8 +1634,8 @@ Profile
repair = Engineer
mtbf = 8 // in years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@HOMEWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@HOMEWORLDPARAMETERS/daysPerYear$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.2
}
Expand Down Expand Up @@ -1763,8 +1763,8 @@ Profile
repair = Engineer
mtbf = 8 // in years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@HOMEWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@HOMEWORLDPARAMETERS/daysPerYear$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.2
}
Expand Down Expand Up @@ -1892,8 +1892,8 @@ Profile
repair = Engineer
mtbf = 8 // in years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@HOMEWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@HOMEWORLDPARAMETERS/daysPerYear$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.5
}
Expand Down
34 changes: 32 additions & 2 deletions GameData/KerbalismConfig/Profiles/LRTRshared.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,32 @@
// ============================================================================
// The LRTR Shared profile use for LRTRSimple and LRTRStock
// ============================================================================
//Loads parameters for the size of the world
//does it this way so it's backwards compatible
//with earlier versions of LRTR
KERBALISMWORLDPARAMETERS
{
hoursPerDay = 6
daysPerYear = 426
karmanAltitude = 70000
kctPresetShortName = LRTR_STOCK
}
@KERBALISMWORLDPARAMETERS:NEEDS[RealSolarSystem]:FIRST
{
@hoursPerDay = 24
@daysPerYear = 365
@karmanAltitude = 100000
@kctPresetShortName = LRTR_RSS
}
@KERBALISMWORLDPARAMETERS:NEEDS[KSRSS,SigmaDimensions]:FIRST
{
@hoursPerDay = 7.5
@daysPerYear = 566
@karmanAltitude = 76000
@kctPresetShortName = LRTR_25X
}
// ============================================================================
// Add Part Upgrade for upgradeable slots
Expand Down Expand Up @@ -143,7 +168,10 @@ PARTUPGRADE:NEEDS[ProfileLRTRSimple|ProfileLRTRStock]
title = Fuel Cell
redundancy = Power Generation
repair = Engineer
mtbf = 252288000
mtbf = 8 //8 years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.5
}
Expand Down Expand Up @@ -213,7 +241,9 @@ PARTUPGRADE:NEEDS[ProfileLRTRSimple|ProfileLRTRStock]
title = Fuel Cell
redundancy = Power Generation
repair = Engineer
mtbf = 252288000
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 1.0
extra_mass = 0.5
}
Expand Down
5 changes: 4 additions & 1 deletion GameData/KerbalismConfig/System/Comfort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@
type = Comfort
title = Treadmill
repair = Engineer
mtbf = 36288000
mtbf = 1 //1 years
@mtbf *= 3600 //seconds per hour
@mtbf *= #$@KERBALISMWORLDPARAMETERS/hoursPerDay$
@mtbf *= #$@KERBALISMWORLDPARAMETERS/daysPerYear$
extra_cost = 0.25
extra_mass = 0.05
}
Expand Down
Loading

0 comments on commit 86b3227

Please sign in to comment.