Skip to content

Commit

Permalink
Merge pull request #16 from Sigma88/Development
Browse files Browse the repository at this point in the history
Last version compatible with KSP 1.0.5
  • Loading branch information
Sigma88 committed Apr 23, 2016
2 parents 47a24da + 7314790 commit f5e5341
Show file tree
Hide file tree
Showing 15 changed files with 140 additions and 70 deletions.
11 changes: 11 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
**v0.4.3**

- Fixed Kerbin Rotation
- Fixed AtmosphereFromGround rescaling
- Added SCANsat compatibility
- Added KerbalKonstructs compatibility
- Added ISP Fix when changing atmosphere pressure ASL
- Fixed bug with LandControl Rescaling
- First steps towards Physics.cfg rescale


**v0.4.2**

- Tweaked Atmosphere Visuals
Expand Down
8 changes: 8 additions & 0 deletions GameData/Sigma/Dimensions/Configs/Bodies/AllowUserDefined.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
{
@Body,*
{
@Template
{
@removeAtmosphere ^= :t:T:
@removeAtmosphere ^= :R:r:
@removeAtmosphere ^= :U:u:
@removeAtmosphere ^= :E:e:
}
%Properties
{
inverseRotThresholdAltitude = 100000
Expand All @@ -27,6 +34,7 @@
%userDefined = 1
@landClasses,*
{
%userDefined = 1
@Class,*
{
%userDefined = 1
Expand Down
16 changes: 7 additions & 9 deletions GameData/Sigma/Dimensions/Configs/Bodies/Duna.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -74,28 +74,26 @@
atmosphereDepth = 11500
SigmaDimensions = 1
}
%LandControl
%LandControl {}
@LandControl,*
{
vHeightMax = 3500
SigmaDimensions = 1
}
@LandControl:HAS[!landClasses]
{
landClasses {}
}
@LandControl
{
%SigmaDimensions = 1
%landClasses {}
@landClasses:HAS[!Class[Ice?Caps]]
{
%SigmaDimensions = 1
Class
{
name = Ice Caps
%SigmaDimensions = 1
}
}
@landClasses
{
@Class[Ice?Caps]
{
%SigmaDimensions = 1
alterApparentHeight = 100
alterRealHeight = 100
}
Expand Down
37 changes: 11 additions & 26 deletions GameData/Sigma/Dimensions/Configs/Bodies/Kerbin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
%Properties
{
rotationPeriod = 21549.4251830898
rotationPeriod = 21600
inverseRotThresholdAltitude = 100000
timewarpAltitudeLimits = 0 30000 30000 60000 120000 240000 480000 600000
%ScienceValues
Expand Down Expand Up @@ -44,40 +44,25 @@
simplexHeightStart = 0
SigmaDimensions = 1
}
%LandControl
%LandControl {}
@LandControl,*
{
vHeightMax = 3500
SigmaDimensions = 1
}
@LandControl:HAS[!landClasses]
{
landClasses {}
}
@LandControl
{
@landClasses:HAS[!Class[DesertMountains]]
{
Class
{
name = DesertMountains
}
}
@landClasses:HAS[!Class[IceCaps]]
{
Class
{
name = IceCaps
}
}
%SigmaDimensions = 1

%landClasses {}
@landClasses
{
@Class[DesertMountains]
%SigmaDimensions = 1
%Class[DesertMountains]
{
%SigmaDimensions = 1
alterApparentHeight = -0.8
alterRealHeight = 0
}
@Class[IceCaps]
%Class[IceCaps]
{
%SigmaDimensions = 1
alterApparentHeight = 100
alterRealHeight = 10
}
Expand Down
24 changes: 7 additions & 17 deletions GameData/Sigma/Dimensions/Configs/Bodies/Laythe.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,18 @@
deactivateAltitude = 160000
%Mods
{
%LandControl
%LandControl {}
@LandControl,*
{
vHeightMax = 6000
SigmaDimensions = 1
}
@LandControl:HAS[!landClasses]
{
landClasses {}
}
@LandControl
{
@landClasses:HAS[!Class[IceCaps]]
{
Class
{
name = IceCaps
}
}
%SigmaDimensions = 1
%landClasses {}
@landClasses
{
@Class[IceCaps]
%SigmaDimensions = 1
%Class[IceCaps]
{
%SigmaDimensions = 1
alterApparentHeight = 100
alterRealHeight = 10
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
@removeAllPQSMods ^= :R:r:
@removeAllPQSMods ^= :U:u:
@removeAllPQSMods ^= :E:e:

@removeAtmosphere ^= :t:T:
@removeAtmosphere ^= :R:r:
@removeAtmosphere ^= :U:u:
@removeAtmosphere ^= :E:e:
}
@Properties
{
Expand Down
2 changes: 1 addition & 1 deletion GameData/Sigma/Dimensions/Configs/General/massFix.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@
epoch = 0
}
}
@Body:HAS[@Template:HAS[#name[Sun]]]:NEEDS[!GalacticNeighborhood]
@Body:HAS[@Template:HAS[#name[Sun]]]
{
@Properties
{
Expand Down
13 changes: 11 additions & 2 deletions GameData/Sigma/Dimensions/Configs/General/removePQSMods.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
!MapDecalTangent:HAS[#SigmaDimensions[1],~userDefined[1]] {}
!MapDecal:HAS[#SigmaDimensions[1],~userDefined[1]] {}
!FlattenOcean:HAS[#SigmaDimensions[1],~userDefined[1]] {}
@LandControl,*
@LandControl:HAS[#SigmaDimensions[1]]
{
@landClasses,*
!landClasses:HAS[#SigmaDimensions[1],~userDefined[1]] {}
@landClasses:HAS[#SigmaDimensions[1]]
{
!Class:HAS[#SigmaDimensions[1],~userDefined[1]] {}
}
Expand Down Expand Up @@ -80,6 +81,14 @@
@Mods
{
!LandControl:HAS[#SigmaDimensions[1],~userDefined[1]] {}
@LandControl:HAS[#SigmaDimensions[1]]
{
!landClasses:HAS[#SigmaDimensions[1],~userDefined[1]] {}
@landClasses:HAS[#SigmaDimensions[1]]
{
!Class:HAS[#SigmaDimensions[1],~userDefined[1]] {}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Check for missing and invalid variables

%SigmaDimensions {}

@SigmaDimensions:HAS[~Resize[<1],~Resize[>1]]:AFTER[SigDim]
{
%Resize = 1
Expand Down Expand Up @@ -50,6 +48,10 @@
{
%tempASL = 1
}
@SigmaDimensions:HAS[~reEntryHeat[>0]]:AFTER[SigDim]
{
%reEntryHeat = 1
}

// Create PlanetDimensions parameter

Expand Down
24 changes: 18 additions & 6 deletions GameData/Sigma/Dimensions/Configs/ReDimension/atmoScale.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
%AtmosphereFromGround
{
innerRadiusMult = 0.999375
innerRadiusMult = 0.975
}
}
@Atmosphere:HAS[!AtmosphereFromGround:HAS[#outerRadius[*]]]
Expand Down Expand Up @@ -37,16 +37,16 @@
@altitude *= #$../PlanetDimensions[2]$
@atmosphereDepth *= #$../PlanetDimensions[2]$
%AtmosphereFromGround {}
@AtmosphereFromGround:HAS[~innerRadius[*]]
{
innerRadius = #$../../Properties/radius$
@innerRadius *= #$innerRadiusMult$
}
@AtmosphereFromGround:HAS[~outerRadius[*]]
{
outerRadius = #$../../Properties/radius$
@outerRadius *= #$outerRadiusMult$
}
@AtmosphereFromGround:HAS[~innerRadius[*]]
{
innerRadius = #$outerRadius$
@innerRadius *= #$innerRadiusMult$
}
@AtmosphereFromGround:HAS[~sunAtmo[True]]
{
// inner radius
Expand Down Expand Up @@ -148,4 +148,16 @@
}
}
}
@Body[Kerbin]
{
@Atmosphere
{
// ISP fix
@pressureCurve
{
@key,*[0, ] += 0.0001
key = 0 101.325
}
}
}
}
12 changes: 12 additions & 0 deletions GameData/Sigma/Dimensions/Configs/ReDimension/physicsModifier.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@SigmaDimensions:FOR[SigDim2]
{
%heatMulti = #$Resize$
@heatMulti != #$@PHYSICSGLOBALS/machTemperatureVelocityExponent$
@heatMulti != -0.5
@reEntryHeat *= #$heatMulti$
!heatMulti = DEL
}
@PHYSICSGLOBALS:FOR[SigDim2]
{
@machTemperatureScalar *= #$@SigmaDimensions/reEntryHeat$
}
39 changes: 39 additions & 0 deletions GameData/Sigma/Dimensions/Configs/ReDimension/rescaleSCANsat.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@PART:FOR[SigDim2]
{
@MODULE:HAS[#name[ModuleSCANresourceScanner]]
{
@min_alt *= #$@SigmaDimensions/Resize$
@max_alt *= #$@SigmaDimensions/Resize$
@best_alt *= #$@SigmaDimensions/Resize$
}
@MODULE:HAS[#name[SCANsat]]
{
@min_alt *= #$@SigmaDimensions/Resize$
@max_alt *= #$@SigmaDimensions/Resize$
@best_alt *= #$@SigmaDimensions/Resize$
}
@MODULE:HAS[#name[ModuleResourceScanner]]
{
@MaxAbundanceAltitude *= #$@SigmaDimensions/Resize$
}
@MODULE:HAS[#name[ModuleOrbitalSurveyor]]
{
@minThreshold *= #$@SigmaDimensions/Resize$
@maxThreshold *= #$@SigmaDimensions/Resize$
}
}
@SCAN_Color_Config:FOR[SigDim2]
{
@defaultMinHeightRange *= #$@SigmaDimensions/Resize$
@defaultMaxHeightRange *= #$@SigmaDimensions/Resize$
@rangeAboveMaxHeight *= #$@SigmaDimensions/Resize$
@rangeBelowMinHeight *= #$@SigmaDimensions/Resize$
@SCANsat_Altimetry,*
{
@Item,*
{
@minHeightRange *= #$@SigmaDimensions/Resize$
@maxHeightRange *= #$@SigmaDimensions/Resize$
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@STATIC:FOR[SigDim2]
{
@Instances,*
{
@RadiusOffset *= #$@SigmaDimensions/Resize$
@RadiusOffset *= #$@SigmaDimensions/landscape$
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
@Properties
{
@timewarpAltitudeLimits,0[*, ] *= #$../PlanetDimensions[2]$
@inverseRotThresholdAltitude *= #$../PlanetDimensions[2]$
}
}
@Body:HAS[!Atmosphere]
{
@Properties
{
@timewarpAltitudeLimits,0[*, ] *= #$../PlanetDimensions[0]$
@inverseRotThresholdAltitude *= #$../PlanetDimensions[0]$
}
}
@Body,*
Expand All @@ -30,7 +32,6 @@
@mass *= #$../PlanetDimensions[0]$
@mass *= #$../PlanetDimensions[4]$
@rotationPeriod *= #$../PlanetDimensions[3]$
@inverseRotThresholdAltitude *= #$../PlanetDimensions[0]$
@sphereOfInfluence *= #$../PlanetDimensions[8]$
@ScienceValues
{
Expand Down
2 changes: 1 addition & 1 deletion GameData/Sigma/Dimensions/Configs/Sigma-Dimensions.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"NAME":"Sigma Dimensions","URL":"http://ksp-avc.cybutek.net/version.php?id=235","DOWNLOAD":"http://forum.kerbalspaceprogram.com/threads/140687","CHANGE_LOG_URL":"https://github.com/Sigma88/Sigma-Dimensions/raw/master/Changelog.txt","VERSION":{"MAJOR":0,"MINOR":4,"PATCH":2,"BUILD":0},"KSP_VERSION":{"MAJOR":1,"MINOR":0,"PATCH":5}}
{"NAME":"Sigma Dimensions","URL":"http://ksp-avc.cybutek.net/version.php?id=235","DOWNLOAD":"http://forum.kerbalspaceprogram.com/threads/140687","CHANGE_LOG_URL":"https://github.com/Sigma88/Sigma-Dimensions/raw/master/Changelog.txt","VERSION":{"MAJOR":0,"MINOR":4,"PATCH":3,"BUILD":0},"KSP_VERSION":{"MAJOR":1,"MINOR":0,"PATCH":5}}

0 comments on commit f5e5341

Please sign in to comment.