Jump to content

[1.2] Galileo's Planet Pack (development thread) [v0.9]


Galileo

Recommended Posts

49 minutes ago, Jiraiyah said:

by the way, i can't say how much i am grateful for your help, take a look at this final chart :D i hope it's solid rocket science now :D

5783f4c1375a4a49880f85c638f82dcf.png

That looks good except for one tiny thing.  The destination orbit altitude should be 2863.3329 km.  Remember that that changed when you computed Gael's precise sidereal rotation period.

 

49 minutes ago, Jiraiyah said:

Now i can go to sleep (1 AM here)m i am planning on developing a mod doing all this crazy math very soon, that is if i can find a way to get my hands on planets, their needed info, the moons the same blah blah, anyone know the api for it?

You can get what you need using KittopiaTech.  Just select a body, click the "Save Body" button, and it will generate a .cfg file in the folder GameDate/KittopiaTech/Confg.  At least the old version did that.  I just tried it using the KSP-1.2 version and it didn't work.

The .cfg files for the stock planets are also available online, though the files are 11 months old.  I don't know if anything has changed or not.

https://github.com/Sigma88/Sigma-Dimensions/tree/master/GameData/Sigma/Dimensions/Configs/Bodies/KittopiaExports

If you need the data for a mod, you should be able to find what you need in the mod's Kopernicus configuration files.  Those files should look similar to the ones above.

Link to comment
Share on other sites

39 minutes ago, OhioBob said:

You can get what you need using KittopiaTech.  Just select a body, click the "Save Body" button, and it will generate a .cfg file in the folder GameDate/KittopiaTech/Confg.  At least the old version did that.  I just tried it using the KSP-1.2 version and it didn't work.

 

Kittopia updated a few days ago as did kopernicus. The dev didn't update the version  number because it was just a few minor fixes.  You can export the cfgs again though

Edited by Galileo
Link to comment
Share on other sites

4 hours ago, Galileo said:

Kittopia updated a few days ago as did kopernicus. The dev didn't update the version  number because it was just a few minor fixes.  You can export the cfgs again though

Those newer versions aren't working for me either, but then I've had a whole lot of weirdness going with my installation (you may have read some of the discussion in the Kopernicus thread).  I just noticed that KSP 1.2.1 is now available; I'm downloading it now.  I'm going to delete all my old installations and start fresh.  Maybe that will clear up my problems.

 

Link to comment
Share on other sites

23 minutes ago, OhioBob said:

Those newer versions aren't working for me either, but then I've had a whole lot of weirdness going with my installation (you may have read some of the discussion in the Kopernicus thread).  I just noticed that KSP 1.2.1 is now available; I'm downloading it now.  I'm going to delete all my old installations and start fresh.  Maybe that will clear up my problems.

 

1.2.1 breaks kopernicus.... Getting pretty fed up with the constant updates :mad:

Edited by Galileo
Link to comment
Share on other sites

2 hours ago, Galileo said:

1.2.1 breaks kopernicus.... Getting pretty fed up with the constant updates :mad:

well this update was unavoidable with the gui flashing bug, but i wonder why did it brake kopernicus, it looked like it would be only bug fixing !

 

8 hours ago, OhioBob said:

That looks good except for one tiny thing.  The destination orbit altitude should be 2863.3329 km.  Remember that that changed when you computed Gael's precise sidereal rotation period.

 

You can get what you need using KittopiaTech.  Just select a body, click the "Save Body" button, and it will generate a .cfg file in the folder GameDate/KittopiaTech/Confg.  At least the old version did that.  I just tried it using the KSP-1.2 version and it didn't work.

The .cfg files for the stock planets are also available online, though the files are 11 months old.  I don't know if anything has changed or not.

https://github.com/Sigma88/Sigma-Dimensions/tree/master/GameData/Sigma/Dimensions/Configs/Bodies/KittopiaExports

If you need the data for a mod, you should be able to find what you need in the mod's Kopernicus configuration files.  Those files should look similar to the ones above.

in that sheet every cell that is not greenish color is an input field, those numbers where there just for testing and that decimal section is almost nothing when the calculations where done.

and about the mod, well, i don't want my mod to be dependent of configs, i will look into the source to see how the kittopia is getting it's data to be exported, that is a better approach, because, for example, what if someone adds extra sollar mod and wants to take a look at these calculations for a planet from that pack? then? i would have config after config for every one of them, but being able to list bodies from inside the game and get data from the game would minimal the effort both for developing and maintaining the mod later :wink:

Link to comment
Share on other sites

5 minutes ago, Phineas Freak said:

It is not broken. It is version locked (down to the revision number) because of user spam complains (using an older Kopernicus version with a newer KSP version).

so it will work but we get warning about version compatibility?

Link to comment
Share on other sites

1 minute ago, Phineas Freak said:

No, it won't work at all. You would have to change the revision number and do a recomplile for it to work.

sigh, damn, well, donno why people would hard code the version dependency but i am new to ksp modding, so~ :P

Link to comment
Share on other sites

13 minutes ago, Jiraiyah said:

sigh, damn, well, donno why people would hard code the version dependency but i am new to ksp modding, so~ :P

Publish a major popular mod (which might be the base for many other mods) and wait. I bet you a good amount of money you will sooner or later come to such measures. 

Link to comment
Share on other sites

9 minutes ago, Theysen said:

Publish a major popular mod (which might be the base for many other mods) and wait. I bet you a good amount of money you will sooner or later come to such measures. 

true, but doing so means more maintenance with every single sub version updates, for example, right now 1.2.1 did nothing to break kopernicus, if i was the developer, i would look for major updates and ignore sub versions, that would at least solve situations like this one

Link to comment
Share on other sites

Even the tiniest update to the game can break mods. Even a drop of Mercury can poison an entire reservoir of drinking water. @Jiraiyah

You won't be able to ignore minor versions for long. Something will break when that build number changes. And someone will beg for a fix or compatibility update.

Also, to you and @OhioBob I just saw this in the official changelog thread. You guys might have to un-revise all your math formulae. :(

8 hours ago, TriggerAu said:

The Celestial Bodies have a GeeASL value that was based on the value of gee for before 1.2, in 1.2 these changed which meant things like the geostationary orbit heights, etc all moved a bit, and things were in slightly diffn places in the sky. This put them back at the right place with the right values.

 

5 hours ago, Galileo said:

1.2.1 breaks kopernicus.... Getting pretty fed up with the constant updates :mad:

......Oh heck no.

Link to comment
Share on other sites

1 hour ago, Jiraiyah said:

right now 1.2.1 did nothing to break kopernicus

At least the G ASL (and probaly the gravitational constant) value have changed according to the KSP 1.2.1 release notes:

* Fix CBs being in different places in 1.2 by adjusting GeeASL.

So Kopernicus would be a bit broken if it worked in KSP 1.2.1 right now.

Link to comment
Share on other sites

1 hour ago, JadeOfMaar said:

Even the tiniest update to the game can break mods. Even a drop of Mercury can poison an entire reservoir of drinking water. @Jiraiyah

You won't be able to ignore minor versions for long. Something will break when that build number changes. And someone will beg for a fix or compatibility update.

Also, to you and @OhioBob I just saw this in the official changelog thread. You guys might have to un-revise all your math formulae. :(

 

......Oh heck no.

I saw that they made more precision to g but thought it was for 1.2 and was correctec back to 1.2.1. so what should i do in sheet to change the whole thing? just change the g for gael and to what?

Link to comment
Share on other sites

I had missed the fact that the value of go (standard gravity) was changed in 1.2.  In prior versions go = 9.81 m/s2, but now they've made it the correct value of go = 9.80655 m/s2.  Since the gravitational parameter is computed internally from surface gravity (measured in gees) and the value of go, all the gravitational parameters in the game changed.  This changed things like orbital periods, spheres of influence, geosynchronous distances, etc.  In order to keep gravitational parameters the same as they were prior to 1.2, in version 1.2.1 they have changed all the surface gravities by a factor of 9.81/9.80665 to cancel out the effect of the prior change.

Take Kerbin for instance, prior to version 1.2 it had a surface gravity of 1 g, where 1 g was defined as 9.81 m/s2.  Therefore its gravitational parameter was,

μ = 9.81 * 1 * 6000002 = 3.5316E+12 m3/s2

Now they've redefined 1 g to be equal to 9.80665 m/s2, but they've made Kerbin's surface gravity equal to, 9.81/9.80665 = 1.00034160493135 g.  Therefore Kerbin gravitational parameter is now the same as it was prior to version 1.2,

μ = 9.80665 * 1.00034160493135 * 6000002 = 3.5316E+12 m3/s2

Therefore things like orbital periods, spheres of influence, geosynchronous distances, etc. have returned to their pre-1.2 values.

Note that they also changed the value of the gravitational constant from G = 6.674E-11 Nm2/kg2 prior to v1.2, to G = 6.67408E-11 Nm2/kg2 now.  That will change the masses of the celestial bodies, but I don't think mass is really used directly in any significant calculations.  I think this is likely more of a cosmetic change (i.e. mass is shown in the info box in the Tracking Station).


What implications does this have for GPP?  Since we're still in beta and GPP has only been played by a small number of testers, I certainly see no reason to apply a patch to force everything to return to their pre-1.2 values.  So the gravitational parameters are 0.034% smaller than we initially thought they were, big deal.  I say leave everything as is.  However, this will change some of the values in my tables of properties, which I'll have to revise.  And for @JadeOfMaar, this means you'll likely will have to make some revisions to your celestial body dossiers (I'll have revised numbers later).  @Galileo, there will also be some small changes to at least a couple planet cfgs.  For instance, right now I can tell you that the rotational periods of Icarus and Gratian will have to change.  I can't think of any other cfg changes at the moment, but if I do, I while certainly let you know.  @Jiraiyah, I think your spreadsheets might be OK provided you change 9.81 to 9.80665 in your equations (we can check later to see if any other unforeseen errors have crept in).

The only planet for which I can see possibly changing the surface gravity is Gael.  As far as it's physically properties are concerned, we've made Gael an identical twin of Kerbin.  If we want to keep Gael an identical twin, we would need to change its surface gravity to 1.00034160493135 g.  My personal opinion, screw it, leave Gael's gravity at 1 g (9.80665 m/s2).  Gael is not Kerbin, so if it differs a little bit, I'm OK with it.  There are already some small differences between Gael and Kerbin regardless of what we do, for instance, the sphere of influence distance.  This is not because of any difference in the physical properties of Gael and Kerbin, but because of differences between Ciro and Kerbol.  Also Gael is a little farther from Ciro than Kerbin is from Kerbol.  Since there are already a few small differences, I don't think it's a big deal to add a few more.

Opinions, comments?
 

Edited by OhioBob
Link to comment
Share on other sites

33 minutes ago, OhioBob said:

I had missed the fact that the value of go (standard gravity) was changed in 1.2.  In prior versions go = 9.81 m/s2, but now they've made it the correct value of go = 9.80655 m/s2.  Since the gravitational parameter is computed internally from surface gravity (measured in gees) and the value of go, all the gravitational parameters in the game changed.  This changed things like orbital periods, spheres of influence, geosynchronous distances, etc.  In order to keep gravitational parameters the same as they were prior to 1.2, in version 1.2.1 they have changed all the surface gravities by a factor of 9.81/9.80665 to cancel out the effect of the prior change.

Take Kerbin for instance, prior to version 1.2 it had a surface gravity of 1 g, where 1 g was defined as 9.81 m/s2.  Therefore its gravitational parameter was,

μ = 9.81 * 1 * 6000002 = 3.5316E+12 m3/s2

Now they've redefined 1 g to be equal to 9.80665 m/s2, but they've made Kerbin's surface gravity equal to, 9.81/9.80665 = 1.00034160493135 g.  Therefore Kerbin gravitational parameter is now the same as it was prior to 1.2,

μ = 9.80665 * 1.00034160493135 * 6000002 = 3.5316E+12 m3/s2

Therefore things like orbital periods, spheres of influence, geosynchronous distances, etc. have returned to their pre-1.2 values were.

Note that they also changed the value of the gravitational constant from G = 6.674E-11 Nm2/kg2 prior to v1.2, to G = 6.67408E-11 Nm2/kg2 now.  That will change the masses of the celestial bodies, but I don't think mass is really used directly in any significant calculations.  I think this is likely more of a cosmetic change (i.e. mass is shown in the info box in the Tracking Station).


What implications does this have for GPP?  Since we're still in beta and GPP has only been played by a small number of testers, I certainly see no reason to apply a patch to force everything to return to their pre-1.2 values.  So the gravitational parameters are 0.034% smaller than we initially thought they were, big deal.  I say leave everything as is.  However, this will change some of the values in my tables of properties, which I'll have to revise.  And for @JadeOfMaar, this means you'll likely will have to make some revisions to your celestial body dossiers (I'll have revised numbers later).  @Galileo, there will also be some small changes to at least a couple planet cfgs.  For instance, right now I can tell you that the rotational periods of Icarus and Gratian will have to change.  I can't think of any other cfg changes at the moment, but if I do, I while certainly let you know.  @Jiraiyah, I think your spreadsheets might be OK provided you change 9.81 to 9.80665 in your equations (we can check later to see if any other unforeseen errors have crept in).

The only planet for which I can see possibly changing the surface gravity is Gael.  As far as it's physically properties are concerned, we've made Gael an identical twin of Kerbin.  If we want to keep Gael an identical twin, we would need to change its surface gravity to 1.00034160493135 g.  My personal opinion, screw it, leave Gael's gravity at 1 g (9.80665 m/s2).  Gael is not Kerbin, so if it differs a little bit, I'm OK with it.  There are already some small differences between Gael and Kerbin regardless of what we do, for instance, the sphere of influence distance.  This is not because of any difference in the physical properties of Gael and Kerbin, but because of differences between Ciro and Kerbol.  Also Gael is a little farther from Ciro than Kerbin is from Kerbol.  Since there are already a few same differences, I don't think it's a big deal to add a few more.

Opinions, comments?
 

What if we change both the 9.81 to the accurate one and the surface gravity? wouldn't that make everything 100 % accurate? because if that would effect stationary orbit, a trip to jool and back and you may need to baby sit orbital com coverage

look at the result of changing 9.81 to the accurate value

63e09904c7f64535853e069609507160.png

now with the additional change on g to be the new accurate one :

88db88b27faa4029b4cba64385ee9127.png

long story short, i think for a good orbits, you may need both values, now the question is, would we need to change other g values on other planets or not?

as a side note, take a look at accurate calculations for every body :

0db17666d8ad4befa7edea8ebbc3dba0.png

as you see, with the rounding you have in the pdf, only ciro and gael get benefit of these changes so up to you

Edited by Jiraiyah
Link to comment
Share on other sites

2 minutes ago, Jiraiyah said:

What if we change both the 9.81 to the accurate one and the surface gravity? wouldn't that make everything 100 % accurate? because if that would effect stationary orbit, a trip to jool and back and you may need to baby sit orbital com coverage

Changing both go and surface gravity is what Squad has done with stock KSP (versions 1.2 and 1.2.1 respectively).  But that's a game that's been out for years and has been played by thousands of people.  Users have gotten use to certain values that Squad apparently wanted to keep in place.  GPP is a new mod still in development that hasn't seen wide circulation yet.  So to what are we being 100% accurate?  To so made up numbers that we have the freedom to change at will?   It's true that things like geosynchronous distances are a smidgeon different now than they were when we started out in KSP 1.1.3, but that doesn't mean either value is better than the other.  The difference is insignificant and it will have virtually no affect on gameplay.  I just know that when I look at the info panel in the Tracking Station I'd rather see that Gael's gravity equals 1 g then see that it equals 1.00034160493135 g.  The difference that makes in the geosynchronous distance is less than 400 meters.

Link to comment
Share on other sites

It won't be an issue for me to update my dossier images. In total I've only made 9 of 27, and only some of that 9 have to change.

I like that Gael has all these more subtle differences from Kerbin and that there's no dire need to apply the suggested patch since this mod's userbase is quite small--there's no large userbase here yet to possibly upset by changing something or leaving it alone. I also agree to leave Gael's gravity at exactly 1, and that it could be unsightly to see 1.xxxx in that info panel.

In my dossiers, though, will I have to change "Kerbin masses" for all of them, even rename the field to "Gael masses"?

Link to comment
Share on other sites

5 minutes ago, JadeOfMaar said:

It won't be an issue for me to update my dossier images. In total I've only made 9 of 27, and only some of that 9 have to change.

I like that Gael has all these more subtle differences from Kerbin and that there's no dire need to apply the suggested patch since this mod's userbase is quite small--there's no large userbase here yet to possibly upset by changing something or leaving it alone. I also agree to leave Gael's gravity at exactly 1, and that it could be unsightly to see 1.xxxx in that info panel.

Good, I'm glad changing the dossier images is not a big issue (I was worried about that).  I should have the tables of properties updated later today.  I think a lot more of the numbers are going to change than what I originally thought.  Sorry about that.

I too like the subtle differences between Gael and Kerbin.  I'm glad they're very similar so that it's easy to make the switch from Stock to GPP, but they're not the same planet so I welcome small differences.  I also think the change in the location and orientation of KSC has a far greater impact on gameplay than any small physical differences between the planets.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...