Jump to content

Kopernicus Question - Replacing Planets


Mangelhaft

Recommended Posts

I have been trying to figure out how Kopernicus replaces the stock planets in KSP.  I have compared .CFG files from RSS and planet packs, but am unable to identify the line that causes a replacement.  It appears to be a line under the "body" subheading or the "properties" subheading.

Any help would be greatly appreciated.
Thank you.

Link to comment
Share on other sites

I'm not sure exactly what you're trying to accomplish?  Would be helpful if you could state what you're trying to do.  e.g. "I want to create a mod that will <do thing> using Kopernicus".

In general, one of the best ways to figure out how to accomplish something is to look at another mod that's already doing that thing-- then you can see what the config looks like.

To take just one example:  one very popular solar-system mod is Galileo's Planet Pack:

This is a mod that replaces all the bodies in the Kerbin system with new bodies of its own.  Kerbin, Duna, Eve, all the rest-- all gone.  New planets and moons in their place.

If what you're trying to do is write a mod that replaces all of the stock bodies with new bodies of your own, then I expect that looking at the Galileo's Planet Pack configs (or those of any other planet pack that does similar things) would likely be highly educational.

If that's not quite what you're trying to do, could you explain a bit?

Link to comment
Share on other sites

Snark --->

I have already compared the Real Solar System (RSS) planets, particularly Earth, with a couple of other planets from other planet packs, and have not been able to determine what part of the config file actually causes Kopernicue to replace the stock planet.

What I am trying to accomplish is adding the planets of RSS to the Kerbin system: Not replacing the KErbin system.

Link to comment
Share on other sites

You have to first remove the bodies, and then redeclare new ones, ensuring you have a homeworld.

In JNSQ, you can see where they remove the bodies here:

https://github.com/Galileo88/JNSQ/blob/master/GameData/JNSQ/JNSQ_Configs/KopernicusSettings.cfg

Also, I'd advise you don't remove the Sun in general.  It's more trouble than it's worth working around some oddities.  Just edit it and don't touch the name either, edit the displayname instead.  That's just advice from my experience, not a hard rule, but it seems to have less potential for issues.

Edited by R-T-B
Link to comment
Share on other sites

  • 2 weeks later...

To anyone wondering about this, I have figured it out.

Firstly, one has to make sure that the Earth CFG file has the instruction "isHomeWorld = True" changed to "isHomeWorld = False".
Secondly, the RSS file " RSSKopernicusSettings.cfg" should not be used as it deletes all the default planets (!Body,* {}) and removes all the default launch sites.

I will be working on adding  the RSS launch sites, if possible, once I get all the planet CFG files sorted.  I can post an update, or start a detailed thread, if anyone is interested.

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...