[BUG] unable to append starsystemdefs,.xml

when adding a new starting system for a very custom faction, you are unable to append just your new stuff to StarSystemDefs.xml .   Unless it's named StarSystemDefs.xml bad stuff happens, specifically:

  • just having the new stuff in SyntheticStarSystemDefs.xml gives a duplicate entry starsystemgroupdef error with no linenum.
  • ust having the new stuff and core stuff in SyntheticStarSystemDefs.xml fails with duplicate everything but the new stuff.

 

This is problematic because if a mod includes a new system, players would need to manually merge it with any other mod they have that does the same

edit:oops wrong subforum

9,375 views 4 replies
Reply #1 Top

Make your own Star System group?

Reply #2 Top

Quoting Horemvore, reply 1

Make your own Star System group?

 

Yea, it's one of the three places you need to put stuff (StarDefs.xml, PlanetArtDefs.xml, & StarSystemDefs.xml).  The first two work fine for append with modFileName.xml, StarSystemDefs.xml  only works if it has that name & uses replace.  errors encountered trying to append noted in OP

Reply #3 Top

No, he means don't put your custom system inside <factionstart>. That isn't a tag, it's a group, and you can't append inside of it. It would be like trying to append additional stats to a ship components.

90% sure this is the kind of issue you're having.

Reply #4 Top

Quoting exelsis, reply 3

No, he means don't put your custom system inside <factionstart>. That isn't a tag, it's a group, and you can't append inside of it. It would be like trying to append additional stats to a ship components.

90% sure this is the kind of issue you're having.

This.

<StarSystemGroup>
    <InternalName>FactionStart</InternalName> <--- Is not appendable because its a sub table within a Table.

</StarSystemGroup>

You have to make your own sub table to append the StarSystemDefs.xml, or use the replace method.

<StarSystemGroup>
    <InternalName>MyYorFactionStart</InternalName>

</StarSystemGroup>