Jump to content

Sigma Binary


Sigma88

Recommended Posts

a little update:

I was able to iron out all the features I want a release of SigmaBinary to contain.

tonight I will add a github pre-release and give people a few days to test it, after that I will release version 1.5 (if no issues are reported I aim to release before the weekend)

@CaptRobau and @KillAshley if you plan to wait before updating your mods to the new SigmaBinary you can put a disclaimer and a temporary link to the 1.4 release on github so that players install the proper version

Link to comment
Share on other sites

16 minutes ago, eberkain said:

Does the update fix contracts being generated for the barycenters?

KSP doesn't give me much tools to avoid the generation of those contracts, the only thing I can do for now is avoid "ISRU" contracts from being generated for barycenters. Since now I have added a .dll I will look into the possibility of killing contracts from there, but iirc @nightingale already told me that it wasn't possible to do that in ksp.

this of course excludes contracts generated by his mod, contract configurator, because this mod already excludes barycenters from the list of bodies it uses when generating contracts

Link to comment
Share on other sites

3 hours ago, Sigma88 said:

KSP doesn't give me much tools to avoid the generation of those contracts, the only thing I can do for now is avoid "ISRU" contracts from being generated for barycenters. Since now I have added a .dll I will look into the possibility of killing contracts from there, but iirc @nightingale already told me that it wasn't possible to do that in ksp.

this of course excludes contracts generated by his mod, contract configurator, because this mod already excludes barycenters from the list of bodies it uses when generating contracts

Wait, did something change while I have been gone?

Link to comment
Share on other sites

1 minute ago, RA3236 said:

Wait, did something change while I have been gone?

well, I don't know when you "went" but it's a couple of weeks that a pre-release is available with an experimental SigmaBinary.dll plugin

 

Link to comment
Share on other sites

Just now, Sigma88 said:

well, I don't know when you "went" but it's a couple of weeks that a pre-release is available with an experimental SigmaBinary.dll plugin

 

When I went was probably just before you did that experimental version - I quit Kopernicus for a while.

And a .dll? That is certainly different.

Link to comment
Share on other sites

Just now, RA3236 said:

When I went was probably just before you did that experimental version - I quit Kopernicus for a while.

And a .dll? That is certainly different.

It was the next logical step to take, no more need for template.cfg files and a much more potential for the future of the mod.

Link to comment
Share on other sites

1 minute ago, Sigma88 said:

It was the next logical step to take, no more need for template.cfg files and a much more potential for the future of the mod.

So I'm gonna test this over the next few days, how does the mod work now? Do you add like, SigmaPrimary to the cfg of the primary or does it do it automatically?

Link to comment
Share on other sites

8 minutes ago, RA3236 said:

So I'm gonna test this over the next few days, how does the mod work now? Do you add like, SigmaPrimary to the cfg of the primary or does it do it automatically?

you just need to add an empty node called SigmaBinary to the secondary body.

so to get Duna-Ike binary the code would be:

@Kopernicus:AFTER[Kopernicus]
{
	@Body[Ike]
	{
		SigmaBinary {}
	}
}

there are other options available, I think I made a post a few days ago, you should find it in this or the previous page :)

Link to comment
Share on other sites

Sigma Binary v1.4.9.beta2 Pre-Release

The new Pre-Release is uploaded

https://github.com/Sigma88/Sigma-Binary/releases/tag/v1.4.9.beta2

 

This is basically the finished product, I will let it stay a pre-release for a couple of days just to make sure there are no issues, and then I will make a proper release.

 

-IMPORTANT-

this pre-release requires:

Kopernicus version 0.6.3 [forum thread]
ModuleManager version 2.6.20 [direct download] [forum thread]

Edited by Sigma88
Link to comment
Share on other sites

2 minutes ago, RA3236 said:

Kinda stupid question, but how do you add a barycenter to all moons around planets but not planets/stars around Kerbol in a single node?

KSP is not really designed to work with barycenters, so I wouldn't advise to add more that a barycenter per planet.

Also, if we are talking stock system, barycenters are useless basically anywhere except for duna-ike.

All the other moons are too light compared to their planets so you wouldn't even notice the difference.

 

If you still want to try, just for thr kick of it, I can pm you a cfg, but if everything breaks badly don't say I didn't warn you :D

Link to comment
Share on other sites

Sigma Binary v1.4.9 Release

The overhauled Sigma Binary is finally released officially :)

This will be the last KSP 1.0.5 compatible release, unless gamebreaking bugs are notified I will not work on SigmaBinary untill KSP 1.1 is released

 

-IMPORTANT-

this release requires:

KSP 1.0.5
Kopernicus version 0.6.3 [forum thread]
ModuleManager version 2.6.20 [direct download] [forum thread]

-VERY IMPORTANT-

Be aware that this release is not backward compatible and will not work well with mods that bundle the old template.cfg files

Edited by Sigma88
Link to comment
Share on other sites

Fixed some bugs and released

Sigma Binary v1.4.9.1

-IMPORTANT-

this release requires:

KSP 1.0.5
Kopernicus version 0.6.3 [forum thread]
ModuleManager version 2.6.20 [direct download] [forum thread]

-VERY IMPORTANT-

Be aware that this release is not backward compatible and will not work well with mods that bundle the old template.cfg files

Link to comment
Share on other sites

Hi again!

This loads with no errors but does nothing:

@Kopernicus:FINAL
{
	@Body[Gilly]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Eve and Gilly. Not much here...
			}
		}
	}
	@Body[Mun]
	{
		SigmaBinary
		{
			name = Kerbin Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Kerbin system. Not much here...
			}
		}
	}
	@Body[Minmus]
	{
		SigmaBinary
		{
			name = Minmus Barycenter
			redrawOrbit = true
			Properties
			{
				description = Just the Minmus-Kerbin barycenter.
			}
		}
	}
	@Body[Ike]
	{
		SigmaBinary
		{
			name = Duna Barycenter
			primaryLocked = true
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Duna system.
			}
		}
	}
	@Body[Tylo]
	{
		SigmaBinary
		{
			name = Jool System Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Jool system. WHY???
			}
		}
	}
	@Body[Laythe]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Laythe.
			}
		}
	}
	@Body[Vall]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Vall.
			}
		}
	}
	@Body[Pol]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Pol.
			}
		}
	}
	@Body[Bop]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Bop.
			}
		}
	}

with the final } at the end, but it didnt change anything.

Link to comment
Share on other sites

13 minutes ago, RA3236 said:

Hi again!

This loads with no errors but does nothing:


@Kopernicus:FINAL
{
	@Body[Gilly]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Eve and Gilly. Not much here...
			}
		}
	}
	@Body[Mun]
	{
		SigmaBinary
		{
			name = Kerbin Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Kerbin system. Not much here...
			}
		}
	}
	@Body[Minmus]
	{
		SigmaBinary
		{
			name = Minmus Barycenter
			redrawOrbit = true
			Properties
			{
				description = Just the Minmus-Kerbin barycenter.
			}
		}
	}
	@Body[Ike]
	{
		SigmaBinary
		{
			name = Duna Barycenter
			primaryLocked = true
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Duna system.
			}
		}
	}
	@Body[Tylo]
	{
		SigmaBinary
		{
			name = Jool System Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Jool system. WHY???
			}
		}
	}
	@Body[Laythe]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Laythe.
			}
		}
	}
	@Body[Vall]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Vall.
			}
		}
	}
	@Body[Pol]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Pol.
			}
		}
	}
	@Body[Bop]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Bop.
			}
		}
	}

with the final } at the end, but it didnt change anything.

Can you send me your modulemanager cache file?

And also the output.log file you can find in KSP_Data

Edited by Sigma88
Link to comment
Share on other sites

Just now, Sigma88 said:

Can you send me your modulemanager cache file?

Well I changed the cfg file a bit, which is here:

@Kopernicus:BEFORE[SigmaBinary]
{
	@Body[Gilly]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Eve and Gilly. Not much here...
			}
		}
	}
	@Body[Mun]
	{
		SigmaBinary
		{
			name = Kerbin Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Kerbin system. Not much here...
			}
		}
	}
	@Body[Minmus]
	{
		SigmaBinary
		{
			name = Minmus Barycenter
			redrawOrbit = true
			Properties
			{
				description = Just the Minmus-Kerbin barycenter.
			}
		}
	}
	@Body[Ike]
	{
		SigmaBinary
		{
			name = Duna Barycenter
			primaryLocked = true
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Duna system.
			}
		}
	}
	@Body[Tylo]
	{
		SigmaBinary
		{
			name = Jool System Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of the Jool system. WHY???
			}
		}
	}
	@Body[Laythe]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Laythe.
			}
		}
	}
	@Body[Vall]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Vall.
			}
		}
	}
	@Body[Pol]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Pol.
			}
		}
	}
	@Body[Bop]
	{
		SigmaBinary
		{
			name = Eve Barycenter
			redrawOrbit = true
			Properties
			{
				description = The barycenter of Jool and Bop.
			}
		}
	}
}

And in the output I got here:

Spoiler

NullReferenceException: Object reference not set to an instance of an object
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,System.Double].Add (System.String key, Double value) [0x00000] in <filename unknown>:0
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,System.Double].Add (System.String key, Double value) [0x00000] in <filename unknown>:0
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,System.Double].Add (System.String key, Double value) [0x00000] in <filename unknown>:0
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,System.Double].Add (System.String key, Double value) [0x00000] in <filename unknown>:0
  at SigmaBinaryPlugin.Components.SigmaBinary.Start () [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

 

Link to comment
Share on other sites

1 minute ago, Sigma88 said:

@RA3236

ok, first issue was that you were using :FINAL

using :BEFORE[SigmaBinary] is fine

 

for the rest I need to see the whole log and mm cache.

I changed it before you said that and got the error above, but now I am waiting on the damm browser to load the text for the cache. The error is there too.

Edited by RA3236
Link to comment
Share on other sites

1 minute ago, RA3236 said:

I changed it before you said that and got the error above, but now I am waiting on the damm browser to load the text for the cache. The error is there too.

please don't paste the whole thing in here :)

just put a dropbox / pastebin link or something like that 

Link to comment
Share on other sites

9 minutes ago, RA3236 said:

Okay will do :) 

ermm

I just noticed you have a ton of barycenters on the same primary body, that's not a good idea

try limiting the system to 1 barycenter for each primary

 

so basically, remove Minmus, and choose which one you want to keep between

the jool moons

Edited by Sigma88
Link to comment
Share on other sites

I have decided to open a KSP Mods related Twitter account

If you want news on the development of my mods, as well as cool screenshots I take when I am checking them, you can find those here:

Sigma88Mods&style=social

 

 

Edited by Sigma88
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...