R-T-B Posted December 25, 2024 Author Share Posted December 25, 2024 On 12/23/2024 at 6:07 PM, Professor K said: Just to satisfy my curiosity, what is the formula for calculating the mass from the radius and GeeASL? 23 hours ago, OhioBob said: Yes, but not exactly. For that formula to work, gravity must be in m/s2, not gees. So you have to multiply geeASL by 9.80665 to convert. Thanks OhioBob, I was about to point him to you but you had already replied, lol. Quote Link to comment Share on other sites More sharing options...
OhioBob Posted December 25, 2024 Share Posted December 25, 2024 (edited) 18 hours ago, Professor K said: I was just coming to post that the Google formula did not quite provide results that matched the stock planets, but your update fixed that. With the shift to G in m/s the formula produces very close to stock results. I have my formula! : ) Thank you! -K Body Wiki Mass Calculated Mass GeeASL Radius G in m/s Moho 2.5263314000E+21 2.5255594512E+21 0.275 250000 2.69682875 Eve 1.2243980000E+23 1.2240238678E+23 1.700 700000 16.67130500 Gilly 1.2420363000E+17 1.2416568647E+17 0.005 13000 0.04903325 Kerbin 5.2915158000E+22 5.2898990686E+22 1.000 600000 9.80665000 Mun 9.7599066000E+20 9.7569249488E+20 0.166 200000 1.62790390 Minmus 2.6457580000E+19 2.6449495343E+19 0.050 60000 0.49033250 Duna 4.5154270000E+21 4.5140472052E+21 0.300 320000 2.94199500 Ike 2.7821615000E+20 2.7813113770E+20 0.112 130000 1.09834480 Dres 3.2190937000E+20 3.2181100984E+20 0.115 138000 1.12776475 Jool 4.2330000000E+24 4.2319192549E+24 0.800 6000000 7.84532000 Laythe 2.9397311000E+22 2.9388328159E+22 0.800 500000 7.84532000 Vall 3.1087655000E+21 3.1078157028E+21 0.235 300000 2.30456275 Tylo 4.2332127000E+22 4.2319192549E+22 0.800 600000 7.84532000 Bop 3.7261090000E+19 3.7249705941E+19 0.060 65000 0.58839900 Pol 1.0813507000E+19 1.0810202630E+19 0.038 44000 0.37265270 Eeloo 1.1149224000E+21 1.1145817338E+21 0.172 210000 1.68674380 There are a couple reasons for the small differences. First, those aren't the correct geeASL values. The actual values are weird fractions. For example, Moho's geeASL is actually 0.27509394... not 0.275. The reason for this is because years ago Squad changed the value of 1 standard gee from 9.81 (which was used in the beta versions) to 9.80665 m/s2. Because of this they mulitplied all the original geeASL values by 9.81/9.80665. You're using the original pre-converted geeASL values, so to account for this you either have to change all those to the current numbers, or (much easier) just mulitple the values you have by 9.81 instead of 9.80665. The second thing is the value of the gravitational constant used in KSP is 6.67408E-11 (looks like you're using 6.67384E-11). If you make these two changes you should be exact. Edited December 25, 2024 by OhioBob Quote Link to comment Share on other sites More sharing options...
Professor K Posted December 26, 2024 Share Posted December 26, 2024 8 hours ago, OhioBob said: There are a couple reasons for the small differences. First, those aren't the correct geeASL values. The actual values are weird fractions. For example, Moho's geeASL is actually 0.27509394... not 0.275. The reason for this is because years ago Squad changed the value of 1 standard gee from 9.81 (which was used in the beta versions) to 9.80665 m/s2. Because of this they multiplied all the original geeASL values by 9.81/9.80665. You're using the original pre-converted geeASL values, so to account for this you either have to change all those to the current numbers, or (much easier) just multiply the values you have by 9.81 instead of 9.80665. The second thing is the value of the gravitational constant used in KSP is 6.67408E-11 (looks like you're using 6.67384E-11). If you make these two changes you should be exact. Thank you! I got the geeASL numbers from a chart on the KSP Wiki, but I have noticed that a lot of numbers there appear to have been truncated so it doesn't surprise me. And the GC I had gotten from the KOS online documentation and a couple of forum and Reddit posts. I'm not actually doing anything with the stock planets, I just used them to test the formula against bodies I had the mass for to verify it was working but I'll definitely update my formula/patches with the correct GC. Is there an online source for the more precises geeASL numbers? -K Quote Link to comment Share on other sites More sharing options...
OhioBob Posted December 26, 2024 Share Posted December 26, 2024 19 hours ago, Professor K said: Is there an online source for the more precises geeASL numbers? You can get all that information from here: kittopia-dumps/Configs at master · Kopernicus/kittopia-dumps · GitHub The actual geeASL numbers should be the geeASL numbers from your table times 9.81/9.80665. From the Kittopis dumps, this works out to be exact for Kerbin (geeASL = 1.00034160493135). But for the other bodies there's a slight error and I don't know why. For instance, for Moho the Kittopia dump gives the value, geeASL = 0.275093947318621 But the computed value is, geeASL = 0.275 * 9.81/9.80665 = 0.275093941356121 I can't explain the difference, but being off only only 6 parts in a billion I think is close enough. Quote Link to comment Share on other sites More sharing options...
R-T-B Posted December 29, 2024 Author Share Posted December 29, 2024 New in this latest version release-220: 1.) A small hotfix for the light intensity on setting "KSCLightsAlwaysOn." previously they were only roughly "50% on" in brightness, now they are fully on. See Known Bugs & Caveats for known bugs. Quote Link to comment Share on other sites More sharing options...
DareMightyThingsJPL Posted January 6 Share Posted January 6 Hello! I have a curiosity about the lack of comets in the Kopernicus Asteriod Generator (you have to change to the stock generator in the Kopernicus_Config.cfg). What's the reason comets only work with the stock generator? Thanks in advance Quote Link to comment Share on other sites More sharing options...
Professor K Posted January 10 Share Posted January 10 Is there a PQS mod that can generate a polyhedral shaped planet? I was thinking it might be possible with a properly done heightmap, but I'm not sure how sharp an edge you could get that way. -K Quote Link to comment Share on other sites More sharing options...
R-T-B Posted January 13 Author Share Posted January 13 (edited) On 1/6/2025 at 3:15 PM, DareMightyThingsJPL said: Hello! I have a curiosity about the lack of comets in the Kopernicus Asteriod Generator (you have to change to the stock generator in the Kopernicus_Config.cfg). What's the reason comets only work with the stock generator? Thanks in advance Honestly? Laziness. I tried years ago to add comets to the Kopernicus Generator and it beat me up so now I am afraid/too lazy to try again. I'm actually considering trying again this February, so stand by and see if I get brave enough, lol. On 1/10/2025 at 5:47 AM, Professor K said: Is there a PQS mod that can generate a polyhedral shaped planet? I was thinking it might be possible with a properly done heightmap, but I'm not sure how sharp an edge you could get that way. -K Not that I know of... but people have done some crazy things by importing premade models as cache files. Not entirely sure of the specifics there. Edited January 13 by R-T-B Quote Link to comment Share on other sites More sharing options...
DareMightyThingsJPL Posted January 13 Share Posted January 13 17 hours ago, R-T-B said: Honestly? Laziness. I tried years ago to add comets to the Kopernicus Generator and it beat me up so now I am afraid/too lazy to try again. I'm actually considering trying again this February, so stand by and see if I get brave enough, lol. Oh! I always thought that it was a technical issue, seeing as (far as i know) no other asteroid generator mod has comet support. Quote Link to comment Share on other sites More sharing options...
Professor K Posted January 13 Share Posted January 13 18 hours ago, R-T-B said: Honestly? Laziness. I tried years ago to add comets to the Kopernicus Generator and it beat me up so now I am afraid/too lazy to try again. I'm actually considering trying again this February, so stand by and see if I get brave enough, lol. I'd definitely like to see that. You can do it! We believe in you! -K Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted January 28 Share Posted January 28 (edited) Looking for some help. I'm trying to look at the Techno's Stock Planet revamp mod, but it keeps giving this error: [LOG 17:59:03]: [Kopernicus]: Configuration.Loader: Failed to load Body: Squad/Eve: Value cannot be null. Parameter name: type I looked at the file and saw that the ScaledVersion stanza sdidn't have a type statement, so I added: type = Atmospheric but that didn't seem to help. When I removed the Eve config, I got the same error on the Mun: [LOG 18:07:37]: [Kopernicus]: Configuration.Loader: Failed to load Body: Squad/Mun: Value cannot be null. Parameter name: type Would someone have any idea what to do , or what this even means? Thanks Edited January 28 by linuxgurugamer Quote Link to comment Share on other sites More sharing options...
darthgently Posted January 28 Share Posted January 28 7 minutes ago, linuxgurugamer said: Looking for some help. I'm trying to look at the Techno's Stock Planet revamp mod, but it keeps giving this error: [LOG 17:59:03]: [Kopernicus]: Configuration.Loader: Failed to load Body: Squad/Eve: Value cannot be null. Parameter name: type I looked at the file and saw that the ScaledVersion stanza sdidn't have a type statement, so I added: type = Atmospheric but that didn't seem to help. When I removed the Eve config, I got the same error on the Mun: [LOG 18:07:37]: [Kopernicus]: Configuration.Loader: Failed to load Body: Squad/Mun: Value cannot be null. Parameter name: type Would someone have any idea what to do , or what this even means? Thanks Shotgunning completely from your message here and nothing else but is the Mun record also missing a “type” field? Are there any other field names in the Body records that look like they may have replaced “type” or similar (bodyType etc), like maybe the mod is correct for an older version of those records or something? The error is for a parameter so the literal “type” may not line up exactly with a field name in the file but is maybe just the name of the parameter in the function that is failing . Again, I’m just looking at problem patterns and have no specific knowledge about this, sorry I’m not more help. Normally I’d wait until no one else responded for awhile before throwing random guesses in, please forgive me Quote Link to comment Share on other sites More sharing options...
Svm420 Posted January 28 Share Posted January 28 34 minutes ago, linuxgurugamer said: Looking for some help. I'm trying to look at the Techno's Stock Planet revamp mod, but it keeps giving this error: [LOG 17:59:03]: [Kopernicus]: Configuration.Loader: Failed to load Body: Squad/Eve: Value cannot be null. Parameter name: type I looked at the file and saw that the ScaledVersion stanza sdidn't have a type statement, so I added: type = Atmospheric but that didn't seem to help. When I removed the Eve config, I got the same error on the Mun: [LOG 18:07:37]: [Kopernicus]: Configuration.Loader: Failed to load Body: Squad/Mun: Value cannot be null. Parameter name: type Would someone have any idea what to do , or what this even means? Thanks You were correct in you initial assessment of the missing field, but i believe the config for Eve is also missing a Atmosphere node for the planet and is probably the source of the second issue even with the correct type variable. The config for Mun is also missing a type field, although it should be type = Vacuum. From looking at the files the mod seems very incomplete. Eve also has no Ocean node though i can not judge the intention of that. Maybe the author intends for the config to be usable as is, but I don't think the are complete enough for general use YMMV. Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted January 29 Share Posted January 29 22 minutes ago, Svm420 said: You were correct in you initial assessment of the missing field, but i believe the config for Eve is also missing a Atmosphere node for the planet and is probably the source of the second issue even with the correct type variable. The config for Mun is also missing a type field, although it should be type = Vacuum. From looking at the files the mod seems very incomplete. Eve also has no Ocean node though i can not judge the intention of that. Maybe the author intends for the config to be usable as is, but I don't think the are complete enough for general use YMMV. Strange, this supposadly used to work. Thanks for the replies Quote Link to comment Share on other sites More sharing options...
Professor K Posted January 29 Share Posted January 29 3 hours ago, linuxgurugamer said: Strange, this supposadly used to work. Thanks for the replies Where did you get the mod? I ask because there is a note on the SpaceDock page for it that says that version is outdated and to get the current version from the GitHub page. https://github.com/TechoTheSequel/Techos-stock-Planet-Revamp -K Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted January 29 Share Posted January 29 (edited) 10 hours ago, Professor K said: Where did you get the mod? I ask because there is a note on the SpaceDock page for it that says that version is outdated and to get the current version from the GitHub page. https://github.com/TechoTheSequel/Techos-stock-Planet-Revamp -K I am using the github page to get the mod Edited January 29 by linuxgurugamer Quote Link to comment Share on other sites More sharing options...
Professor K Posted Thursday at 10:55 PM Share Posted Thursday at 10:55 PM On 1/29/2025 at 9:46 AM, linuxgurugamer said: I am using the github page to get the mod Ah, well, so much for that idea. Sorry. -K Quote Link to comment Share on other sites More sharing options...
R-T-B Posted Sunday at 11:14 PM Author Share Posted Sunday at 11:14 PM (edited) Yeah, sorry LGG, all I can really say here is "reach out to the author" because that sounds like a basic config error. Been herding comets btw, hence my quasi-silence here. Expect a report soon. Edited Sunday at 11:14 PM by R-T-B Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.