Custom Solar System

I've tried 'appending' a custom solar system, but I can't get it to work.  I've run into the same issue outlined in this post, under number 3.

 

Any guidance would be greatly appreciated.

 

In short the only way I was able to make it work, was to copy the StarSystemDefs.xml to my mod directory, and then to just add my custom solar system. (Overwriting the default), which really wasn't what I was shooting for.

 

Thanks in advance.

17,675 views 3 replies
Reply #1 Top

Are you trying to create a system with existing planet names? (i.e. Earth, Mars, etc.) or a brand new system? If you are creating a new system the best thing to do would be after copying StarSystemDefs.xml to the mod directory to rename it to something like "StarSystemDefs_TestMod1.xml" so the game doesn't override the existing default system data.

It's also a good idea once the file is renamed to remove all the extraneous entries except for the new system you would like to add. You can do this by editing the StarSystemDefs you copied over to look something like this:

Code: xml
  1. <StarSystemGroup>
  2. <InternalName>FactionStart</InternalName>
  3. <StarSystem>
  4. <InternalName>SolSystem</InternalName>
  5. <DisplayName>SolSystem_Name</DisplayName>
  6. <Description>SolSystem_Dec</Description>
  7. <OrbitLane>
  8. <LaneType>Star</LaneType>
  9. <Body>
  10. <BodyType>UnaryStar</BodyType>
  11. <BodyDef>SolStar</BodyDef>
  12. </Body>
  13. </OrbitLane>
  14. <OrbitLane>
  15. <LaneType>DeadZone</LaneType>
  16. <Body>
  17. <BodyType>Planet</BodyType>
  18. <BodyDef>PlanetMercury</BodyDef>
  19. </Body>
  20. </OrbitLane>
  21. <OrbitLane>
  22. <LaneType>HabitableZone</LaneType>
  23. <Body>
  24. <BodyType>Planet</BodyType>
  25. <BodyDef>PlanetEarth</BodyDef>
  26. <IsHomeworld>true</IsHomeworld>
  27. <Position>5</Position>
  28. </Body>
  29. <Body>
  30. <BodyType>Planet</BodyType>
  31. <BodyDef>PlanetMars</BodyDef>
  32. </Body>
  33. </OrbitLane>
  34. <OrbitLane>
  35. <LaneType>NoRandom</LaneType>
  36. <Body>
  37. <BodyType>Asteroid</BodyType>
  38. <BodyDef>NormalAsteroid</BodyDef>
  39. <Position>0</Position>
  40. </Body>
  41. <Body>
  42. <BodyType>Planet</BodyType>
  43. <BodyDef>PlanetJupiter</BodyDef>
  44. </Body>
  45. <Body>
  46. <BodyType>Planet</BodyType>
  47. <BodyDef>PlanetSaturn</BodyDef>
  48. </Body>
  49. </OrbitLane>
  50. </StarSystem>
  51. </StarSystemGroup>
  52. </StarSystemList>

 

From here you will want to change any specific planet data accordingly, but you may need to also make edits to PlanetDefs.xml (in the same way you have appended StarSytemDefs) to add/change any planets.

Reply #2 Top

Thats exactly what I tried, but it didn't work.

 

I'll mess with it again, and double check that I had renamed everything.

Reply #3 Top

Have you checked that you don't need to mod other related files, could be it expects to find some of your tags in other XML files like the internal name. Certainly some of the text labels and strings could be under text/language.

 

+1 Loading…