Jump to content

Sigma Binary


Sigma88

Recommended Posts

Sigma-Binary.svg KSP-1.3.0-orange.svg dev.version-%40GitHub-lightgrey.svg total.svg Sigma88Mods&style=social

 

Sigma Binary

 

This mod will let you turn custom and/or stock bodies into binary systems,

without the need to do all the calculations yourself.

This also will allow any user to decide between playing with or without binary systems.

 


6r0ejKf.png
                                                                                                                                                            Double Duna image for illustrative purposes only.

 

 

Required Mods

Supported Mods

Supported by

Downloads

 Latest Release
a7Abccw.png
@GitHub

If you want to contribute to my caffeine addiction:
iSFDI5f.png r8916yD.png
Don't expect anything in return other than my sincere gratitude. :)

 

Changelog

Spoiler

v1.6.4

- Updated to Kopernicus 1.3.0-4


v1.6.3

- Updated to KSP 1.3.0 and Kopernicus 1.3.0-1


v1.6.2

- Updated to KSP 1.2.2 and Kopernicus 1.2.2-1


v1.6.1

- Fixed Kopernicus compatibility (again)
- Fixed KSP-AVC compatibility


v1.6.0

- Updated to KSP 1.2.1 and Kopernicus 1.2.1-1
- Fixed tracking station bug that made planets go off their orbits
- Fixed science archives so that barycenter bodies are not shown
- Removed compatibility with parameter 'selectable' for barycenters
- Added automatic Kerbin reparenting when needed
- Added compatibility with Kopernicus new feature 'PostSpawnOrbit'
- Added compatibility with parameter 'iconColor' for barycenters
- Added time dependent easter eggs
- Added option to disable easter eggs (only for who hates fun)


v1.5.5

- Updated to KSP 1.1.3 and Kopernicus 1.1.2
- Fixed custom orbit color loading for barycenters


v1.5.4

- Minor bug fix


v1.5.3

- Added some fail-safe measures to the code


v1.5.2

- Fixed science archives


v1.5.1

- Updated to KSP 1.1.2 and Kopernicus 1.0.3
- Fixed a bug with binary systems outside the orbit of Jool


v1.5.0

- Updated to KSP 1.1 and Kopernicus 1.0
- Fixed a bug that sometimes occurred while exiting the Primary SoI


v1.4.9.2

- Fixed an issue with bodies using cbNameLater


v1.4.9.1

- Fixed removal of bodies from the science archives
- Changed mass displayed for the barycenter
- Fixed a bug that prevented some of the options to load correctly


v1.4.9

- Reworked all cfg files
- Removed the need of template.cfg files
- Moved the majority of features into SigmaBinary.dll
- Barycenters now do not show up into the science archives
- Added the option to choose the name of the barycenter
- Added the option to choose the description of the barycenter
- Added the option to choose the orbit color of the barycenter
- Added the option to tidally lock the primary to the secondary
- Added the option to disable the redrawn orbits for secondary bodies


v1.4.0

- Barycenter name now accounts for cbNameLater
- Secondary orbit line is now drawn relative to the barycenter
- template.cfg now deactivates if there are missing bodies
- Fixed calculation of minimum SphereOfInfluence
- Fixed calculations when finalizeOrbit is used
- Moved clean-up of temp values from :FINAL to :FOR[SigmaCleanUp]
- Fixed names of config files to account for linux case sensitivity


v1.3.3

- Added conversion of meanAnomalyAtEpochD (deg) to meanAnomalyAtEpoch (rad)


v1.3.2

- Fixed mass calculation from gravParameter
- Barycenters doesn't generate cache files
- Fix for stars used as Primary bodies


v1.3.1

- Added compatibility with templateless planets
- Added code to remove duplicate values


v1.3.0

- Now Requires KSP 1.0.5
- Now Requires Kopernicus Beta 0.5
- Template.cfg and DunaIke.cfg are now in separate downloads
- Folder structure changed
- Overhauled the code to reflect Kopernicus changes


v1.2.1

- Bug Hotfix


v1.2.0

- Improved definition of template parameters
- Improved calculation of mass for planets
- Improved compatibility with GalacticNeighborhood


v1.1.1

- Improved compatibility with planet packs


v1.1.0

- Now Requires Kopernicus 0.4
- Refined RSS compatibility
- Added compatibility with finalizeOrbits
- Removed useless code from StockFix.cfg
- Fixed tidal lock issue in StockFix.cfg
- Increased barycenters radius to 61m to solve a Tracking Station Bug
- Renamed the folder from "BinaryExpansion" to "Binary"


v1.0.2

- Hotfix updating .version file for KSP-AVC compatibility


v1.0.1

- Hotfix for RSS compatibility


v1.0.0

- First Release (non beta)
- Added compatibility with RSS and other Rescale Mods not 100% compatible yet
- Added an exception for ISRU contracts on barycenters
- Other minor changes to the code


v0.2.4

- removed kopernicus cache file generation for barycenters


v0.2.3

- changed the calculation of sphereOfInfluence for every body in the binary system
- added a check to make sure the SoI of the secondary body never reaches the primary's surface


v0.2.2

- added code to calculate mass from gravParameter if both mass and geeASL are not set
- changed the value of G (universal gravitational constant) from 6.67384e-11 to 6.674e-11


v0.2.1

- Fixed mass calculation from geeASL+radius (for reals this time)


v0.2.0

- Fixed mass calculation from geeASL+radius
- Fixed a bug which didn't allow for the use of more than one template.cfg file
- Added an example for the Kopernicus feature "baryCenter"
- template.cfg was changed, old versions won't work with this release
- removed "baryCenter = true" parameter from barycenters


v0.1.0

- Fixed the calculation of:
    Sphere Of Influence
    Planet rotationPeriod
    Orbital Parameters
- Added "baryCenter = true" parameter to barycenters
- Removed calculation of "flightGlobalIndex" since it's useless


v0.0.4

- First Beta Release

 

 

Info and FAQs

Config Structure

Spoiler

@Kopernicus:BEFORE[SigmaBinary]
{
    @Body[Ike]
    {
        SigmaBinary
        {
            name = x
            primaryLocked = true
            redrawOrbit = true
            Properties
            {
                description = x
            }
            Orbit
            {
                mode = x
                icon = x
                color = r,g,b,a
                iconColor = r,g,b,a
            }
        }
    }
}

You only need to add the SigmaBinary {} node to the Secondary Body of your system. All the other settings are optional.

How to install this mod

  1. Download the mod (link found in the "Downloads" section)
  2. If you have an old installation delete the folder "Binary" found in GameData\Sigma\
  3. Install the mod by merging the GameData folder from the archive with the one in your KSP install.

If you want to add this to your mod

  1. Add the node "SigmaBinary" to the secondary body of your binary system.
  2. Put a link to this mod into your thread so people may choose to download this mod if they want binary systems.

 

Other Questions

- Can I move the Sun?
No.

- Will this mod mess up Stock Planets?
No. This mod doesn't add any binary system at all.

- Can I bundle SigmaBinary into my mod?
You are free to (= I encourage you to) make your mod compatible with SigmaBinary, however I would rather if you didn't redistribute my work.

- Is it possible to create ternary systems?
You can create some multiple systems but it's a little harder to set up, feel free to ask for more info in the thread. 

- Is this mod compatible with RSS?
Yes, RSS has had built in SigmaBinary support for a while.


I'll put in here any frequent question I receive.
If you have any question about the mod feel free to post down here or PM me.

 

 

Credits

 

 

License

All Rights Reserved

Edited by Sigma88
Link to comment
Share on other sites

Sigma Binary[v0.2.4] is now available

Download

[TABLE=width: 100]

[TR]

[TD]

2I2mqzY.png

@KERBALSTUFF

[/TD]

[/TR]

[/TABLE]

ChangeLog

[TABLE=width: 700]

[TR]

[TD]


[B]v0.2.4[/B]
- removed kopernicus cache file generation for barycenters

[/TD]

[/TR]

[/TABLE]

Link to comment
Share on other sites

looks like there is a problem with time warp and those planets not following the orbits, but I can't say much from that image :D

any chance you can pm me the configs of those bodies and the template you used to make the system binary?

Link to comment
Share on other sites

Just something whacky I noticed while trying to understand Kopernicus - it is likely just this timewarp issue that occurs from time to time for no apparent reason, I did not even manage to reproduce it. I have seen something similar at least with OPM, so you are completely innocent :P

Link to comment
Share on other sites

I had similar bugs all the time when developing pluron-khato.

There are a couple of things you may try:

1- if you used hyperedit to move your vessel to that planet, once you are there quick-save and quick-load.

This is to prevent an hyperedit bug

2- if in the settings for the planets there is anything negative (like longitudeofascendingnode or inclination or whatever) that may be causing issues

I usually use kittopia to save the bodies stats after they are loaded on ksp. If you this make sure you remove the files generated in the saveload folder otherwise they'll bug your game

Link to comment
Share on other sites

Cool binary system! I would love to see that in a mod.

I don't know which bodies are those in Tellion's pics,

I've made a Pluto-Charon analogue which you can download here.

my skills in designing planets are not that great tho.

that's why I decided to make this mod, so that people can make binaries with almost zero effort :D

have you tried the Duna-Ike binary config?

Link to comment
Share on other sites

Some custom planets I made the last two days to get some basic knowledge of Kopernicus. They are rather generic space engine clones and the forum is littered with those anyway, so they will not be released - the screenshots are the flattering ones too. Using EVE layers to fake a nice atmosphere from space and ground usually comes with some nasty side effects while transitioning between the two that I have not been able to get rid of. Scatterer will make this approach obsolete anyway...

I just posted because I was delighted that this mod saved me doing all the math myself, and doing it over and over again everytime I wanted to create something similar :)

Link to comment
Share on other sites

Some custom planets I made the last two days to get some basic knowledge of Kopernicus. They are rather generic space engine clones and the forum is littered with those anyway, so they will not be released - the screenshots are the flattering ones too. Using EVE layers to fake a nice atmosphere from space and ground usually comes with some nasty side effects while transitioning between the two that I have not been able to get rid of. Scatterer will make this approach obsolete anyway...

I just posted because I was delighted that this mod saved me doing all the math myself, and doing it over and over again everytime I wanted to create something similar :)

I agree on the zero effort part. Combine that with Windows 10 and Cortana, I have no excuse to leave my room.

This is exactly what I was aiming for: easy to use for both players and modders.

players can turn every planet-moon combination into a binary system and modders can implement binaries without forcing players to play on a binary if they don't feel like it.

I haven't tried it with every existing planets pack, but as far as I know this should be compatible with all of them.

So if you enjoy a specific planet pack and want them to add binaries, make sure they know about this mod ;)

Edited by Sigma88
Link to comment
Share on other sites

I don't know which bodies are those in Tellion's pics,

I've made a Pluto-Charon analogue which you can download here.

my skills in designing planets are not that great tho.

that's why I decided to make this mod, so that people can make binaries with almost zero effort :D

have you tried the Duna-Ike binary config?

Yes, though Duna-Ike is kinda glitchy for me though :/

I was just telling Tellion that his binary system looked cool.

Link to comment
Share on other sites

Yes, though Duna-Ike is kinda glitchy for me though :/

I was just telling Tellion that his binary system looked cool.

what is glitchy about it? works fine for me

- - - Updated - - -

can you make it so there can be more then 2 bodys orbiting around the barrycentre eg: the joolian system

I'm not sure what you mean by Joolian system.

If you mean Jool with it's 5 moons, the mass of Jool is so high that you probably wouldn't notice the difference between stock ksp and everything around a barycenter.

Anyways, KSP has some limitation that make doing weird stuff not that easy. So if you want to make a system with 5 planets of the same mass, you will have a lot of problems flying in there since KSP don't handles sphere of influence very well for those bodies.

Edited by Sigma88
Link to comment
Share on other sites

Poor Sigma, so many offtopic comments :D

Coming to the rescue: Is the secondary always at the same distance from the barycenter?

damn tellion, I never read this comment :D

to answer your question:

the distance will be fixed only if the eccentricity of the secondary is equal to 0

otherwise you will have a different distance between the primary and the secondary depending on which point of their orbit they are.

what will never change is the ratio between the primary distance from the barycenter and the secondary distance from the barycenter

since that's defined by the mass ratio of the two bodies (which is fixed of course)

source

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...