Error with Customer Planets Mod: no character data is allowed by content model

I am trying to create a customer starting star system for my custom race.  Ive copied the PlanetDefs.xml, StarDefs.xml and StarSystems.XML over to my documents/mygames/GC3Crusade/Mods/ExampleMod/Game folder. 

I used Horemvore's append method.  I get the following errors for each of my modified .XML files in my mod folder:

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(10,3): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(11,3): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(12,3): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(13,5): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(15,5): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(21,3): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(22,5): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(24,5): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\PlanetDefs_Fed.xml(31,5): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\StarDefs_Fed.xml(13,3): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\StarSystemDefs_Fed.xml(10,5): error:
no character data is allowed by content model

C:\Users\Eric\Documents\My Games\GC3Crusade\Mods\Fed\Game\StarSystemDefs_Fed.xml(12,5): error:
no character data is allowed by content model

Has anyone experienced this or have a fix for it?

Thanks

 

 

10,506 views 5 replies
Reply #1 Top

At a guess (since you have not posted your code) you have a miss order of (or missing) information in your xml's. Thats what them errors are telling me.

Reply #2 Top

Thanks for the reply Horemvore.... I thought maybe someone could tell just by the error message... The .XML code (from the mod folders) is below (just the code from the very top to the bottom of what I modified, the rest of the vanilla XML is below in the mod files):

StarSystemDefs.XML:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<StarSystemList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/StarSystemDefs.xsd">
<!-- Created with the Gal Civ 3 Editor -->
<!-- StarSystemDefs.xml -->
 
  <!-- System Group -->
 
  <StarSystemGroup>
    <InternalName>FactionStart</InternalName>
 
  <StarSystem>
  <InternalName>DuneSystem</InternalName>
  <DisplayName>DuneSystem_Name</DisplayName>
  <Description>DuneSystem_Dec</Description>
  <OrbitLane>
    <LaneType>Star</LaneType>
    <Body>
   <BodyType>UnaryStar</BodyType>
   <BodyDef>DuneStar</BodyDef> 
    </Body>
  </OrbitLane>
  <OrbitLane>
    <LaneType>HabitableZone</LaneType>
    <Body>
   <BodyType>Planet</BodyType>
   <BodyDef>PlanetHarkonnen</BodyDef>
   <IsHomeworld>true</IsHomeworld>
   <Position>5</Position>
    </Body>
    <Body>
   <BodyType>Planet</BodyType>
   <BodyDef>PlanetAtreides</BodyDef>
    </Body>
    <Body>
   <BodyType>Planet</BodyType>
   <BodyDef>PlanetArrakis</BodyDef>
    </Body>
  </OrbitLane>
 </StarSystem> 

StarDefs.XML:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<StarList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/StarDefs.xsd">

  <!--Fixted System Stars-->

  <Star>
 <InternalName>DuneStar</InternalName>
 <DisplayName>DuneName</DisplayName>
 <ObjectType>Star</ObjectType>
 <Type>YellowStar</Type>
    <TypeDisplayName>YellowStarType_Label</TypeDisplayName>
 <ArtDefine>SunArt</ArtDefine>
     <SFXDefine>STAR_AMBIENT</SFXDefine>
  </Star>

PlanetDefs.XML:

?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<PlanetList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/PlanetDefs.xsd">

 <Planet>
  <InternalName>PlanetArrakis</InternalName>
  <DisplayName>Arrakis</DisplayName>
  <PlanetType>Habitable</PlanetType>        
  <PlanetClass>10</PlanetClass> 
  <PlanetTrait>GhostWorld</PlanetTrait>       
  <ArtDefine>MarsArt</ArtDefine>
   </Planet>

   <Planet>
  <InternalName>PlanetHarkonnen</InternalName>
  <DisplayName>Harkonnen</DisplayName>
  <PlanetType>Habitable</PlanetType>
  <PlanetClass>20</PlanetClass>
  <PlanetTrait>PrecursorShielded</PlanetTrait>         
  <ArtDefine>EarthArt</ArtDefine>
   </Planet>
    
   <Planet>
  <InternalName>PlanetAtreides</InternalName>
  <DisplayName>Atreides</DisplayName>
  <PlanetType>Habitable</PlanetType>
  <PlanetClass>16</PlanetClass>
  <PlanetTrait>BreadBasketWorld</PlanetTrait>
  <ArtDefine>SnathiPrimeArt</ArtDefine>
   </Planet>

Reply #3 Top

Post the files.

Reply #4 Top

How do I post files to this website?  I don't see an option to do so....

Reply #5 Top

The numbers in parentheses "(13,3)", "(10,5)", etc. point you to the lines and spaces where the XML errors are.

So line thirteen, third space/character, line ten, fifth space/character, and so on.

 

By post Horemvore probably means post a Dropbox or similar link to the files.  

It's difficult to cull the errors without being able to open the .xml in Notepad++.