Skip to content

Commit 24325c1

Browse files
authored
Merge pull request #21 from Sigma88/Development
Development
2 parents a99b88e + ddb95a1 commit 24325c1

File tree

5 files changed

+29
-22
lines changed

5 files changed

+29
-22
lines changed

Changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
**v1.5.3**
2+
3+
- Added some fail-safe measures to the code
4+
5+
16
**v1.5.2**
27

38
- Fixed science archives

GameData/Sigma/Binary/Configs/checkMaxDistance.cfg

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,44 @@
88
!Body:HAS[!Orbit:HAS[#referenceBody[Sun]]] {}
99
@Body:HAS[@Template[Dres]]
1010
{
11-
@Orbit:HAS[~eccentricity[*]]
11+
@Orbit
1212
{
13-
eccentricity = 0.145
13+
&eccentricity = 0.145
1414
}
1515
}
1616
@Body:HAS[@Template[Pol]]
1717
{
18-
@Orbit:HAS[~eccentricity[*]]
18+
@Orbit
1919
{
20-
eccentricity = 0.17085
20+
&eccentricity = 0.17085
2121
}
2222
}
2323
@Body:HAS[@Template[Moho]]
2424
{
25-
@Orbit:HAS[~eccentricity[*]]
25+
@Orbit
2626
{
27-
eccentricity = 0.200000002980232
27+
&eccentricity = 0.200000002980232
2828
}
2929
}
3030
@Body:HAS[@Template[Bop]]
3131
{
32-
@Orbit:HAS[~eccentricity[*]]
32+
@Orbit
3333
{
34-
eccentricity = 0.234999999403954
34+
&eccentricity = 0.234999999403954
3535
}
3636
}
3737
@Body:HAS[@Template[Eeloo]]
3838
{
39-
@Orbit:HAS[~eccentricity[*]]
39+
@Orbit
4040
{
41-
eccentricity = 0.26
41+
&eccentricity = 0.26
4242
}
4343
}
4444
@Body:HAS[@Template[Jool]]
4545
{
46-
@Orbit:HAS[~eccentricity[*]]
46+
@Orbit
4747
{
48-
eccentricity = 0.550000011920929
48+
&eccentricity = 0.550000011920929
4949
}
5050
}
5151
@Body,*
@@ -55,15 +55,17 @@
5555
@eccentricity += 1
5656
@semiMajorAxis *= #$eccentricity$
5757
}
58-
@Orbit
58+
!SBDistance,* {}
59+
SBDistance
5960
{
61+
semiMajorAxis = #$../Orbit/semiMajorAxis$
6062
@semiMajorAxis -= #$/sbMaxDistance$
6163
}
6264
}
63-
!Body:HAS[!Orbit:HAS[#semiMajorAxis[>0]]] {}
65+
!Body:HAS[!SBDistance:HAS[#semiMajorAxis[>0]]] {}
6466
@Body,*
6567
{
66-
@Orbit
68+
@SBDistance
6769
{
6870
@semiMajorAxis += #$/sbMaxDistance$
6971
}
@@ -73,20 +75,20 @@
7375
}
7476
@Kopernicus:HAS[@Kopernicus]:FOR[SigmaBinary]
7577
{
76-
@sbMaxDistance = #$Kopernicus/Body/Orbit/semiMajorAxis$
78+
@sbMaxDistance = #$Kopernicus/Body/SBDistance/semiMajorAxis$
7779
@Kopernicus
7880
{
7981
@Body,*
8082
{
81-
@Orbit
83+
@SBDistance
8284
{
8385
@semiMajorAxis -= #$/sbMaxDistance$
8486
}
8587
}
86-
!Body:HAS[!Orbit:HAS[#semiMajorAxis[>0]]] {}
88+
!Body:HAS[!SBDistance:HAS[#semiMajorAxis[>0]]] {}
8789
@Body,*
8890
{
89-
@Orbit
91+
@SBDistance
9092
{
9193
@semiMajorAxis += #$/sbMaxDistance$
9294
}

GameData/Sigma/Binary/Configs/generateBarycenters.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
fadeEnd = 0
5353
Material
5454
{
55-
color = 0,0,0,1
55+
color = 0,0,0,0
5656
shininess = 0
5757
}
5858
}

GameData/Sigma/Binary/Configs/generateOrbits.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
fadeEnd = 0
5555
Material
5656
{
57-
color = 0,0,0,1
57+
color = 0,0,0,0
5858
shininess = 0
5959
}
6060
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"NAME":"Sigma: Binary","URL":"http://ksp-avc.cybutek.net/version.php?id=188","DOWNLOAD":"http://forum.kerbalspaceprogram.com/threads/127820","CHANGE_LOG_URL":"https://github.com/Sigma88/Sigma-Binary/raw/master/Changelog.txt","VERSION":{"MAJOR":1,"MINOR":5,"PATCH":2,"BUILD":0},"KSP_VERSION":{"MAJOR":1,"MINOR":1,"PATCH":2}}
1+
{"NAME":"Sigma: Binary","URL":"http://ksp-avc.cybutek.net/version.php?id=188","DOWNLOAD":"http://forum.kerbalspaceprogram.com/threads/127820","CHANGE_LOG_URL":"https://github.com/Sigma88/Sigma-Binary/raw/master/Changelog.txt","VERSION":{"MAJOR":1,"MINOR":5,"PATCH":3,"BUILD":0},"KSP_VERSION":{"MAJOR":1,"MINOR":1,"PATCH":2}}

0 commit comments

Comments
 (0)