Hello,
I've recently been attempting something along the lines of modding, and have run into some problems. I have created the following faction mod and am attempting to get it to work in game:
Code: xml
- ?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <FactionList
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="../Schema/FactionDefs.xsd">
- <!-- Custom_FactionDefs.xml -->
- <Faction>
- <InternalName>VERETITE</InternalName>
- <DisplayName>Veretites</DisplayName>
- <DisplayNameShort>Veretite</DisplayNameShort>
- <LeaderName>Tizabea</LeaderName>
- <Description>Nothing Here.</Description>
- <LeaderDescription>Nothing Here.</LeaderDescription>
- <RaceType>Major</RaceType>
- <PersonalityTraits>Trader</PersonalityTraits>
- <PersonalityTraits>Aggressive</PersonalityTraits>
- <PersonalityTraits>Diplomatic</PersonalityTraits>
- <PersonalityTraits>Cultural</PersonalityTraits>
- <PersonalityTraits>Neutral</PersonalityTraits>
- <RaceTraits>PatrioticAbility</RaceTraits>
- <RaceTraits>StarfaringAbility</RaceTraits>
- <RaceTraits>Influential3</RaceTraits>
- <RaceTraits>Economical2</RaceTraits>
- <RaceTraits>Content2</RaceTraits>
- <RaceTraits>Fertile4</RaceTraits>
- <RaceTraits>Militant3</RaceTraits>
- <RequiresHomeworld>true</RequiresHomeworld>
- <HomeStarSystem>MinorSystem</HomeStarSystem>
- <TechTree>TerranTechTree</TechTree>
- <ShipCallsign>V.R.T.</ShipCallsign>
- <LogoImage>RaceLogo09.png</LogoImage>
- <LeaderThumbnail>Brainbot_Small.png</LeaderThumbnail>
- <LeaderImageFG>Brainbot_FG.png</LeaderImageFG>
- <LeaderImageBG>Terran_BG.png</LeaderImageBG>
- <NewsRobotMovie_Approach>Generic_Newsbot_Idle.bk2</NewsRobotMovie_Approach>
- <NewsRobotMovie_Idle>Generic_Newsbot_Idle.bk2</NewsRobotMovie_Idle>
- <StartupTraitsDescription>Nothing</StartupTraitsDescription>
- <MapColorDef>DrenginMapColors</MapColorDef>
- <Material1>GC3_Missile_Material_02</Material1>
- <Material2>Onyx_Material_01</Material2>
- <Surface1>GC3_Default_Surface_13</Surface1>
- <Surface2>GC3_Default_Surface_20</Surface2>
- <Appearance>GC3_Drengin_Appearance_R</Appearance>
- <ShipStyleSet>TerranShipStyleSet</ShipStyleSet>
- <CreditsInit>5000</CreditsInit>
- <WarEnduranceInit>80</WarEnduranceInit>
- <DefaultResistance>0.9</DefaultResistance>
- <InfluenceTallyInit>10</InfluenceTallyInit>
- <StartingColonyPopulation>11</StartingColonyPopulation>
- <AICategoryWeight>
- <Military>10</Military>
- <Growth>15</Growth>
- <Tech>20</Tech>
- <Diplomacy>15</Diplomacy>
- <Expansion>15</Expansion>
- <Wealth>5</Wealth>
- <Influence>5</Influence>
- <Fortification>15</Fortification>
- </AICategoryWeight>
- </Faction>
- </FactionList>
This is essentially identical to any major faction xml definition, so I am failing to see where the problem is. A couple things to note:
- I had played around with adding a CustomPlanetDef.xml to define a custom homeworld, and a CustomStarSystemDef.xml to include said homeworld in a system. When I had these files along side my custom faction definition, the map would load up until it reached around 1.4-1.6GB of memory, and then completely stopped loading from there. Galciv3 would not crash, it simply would spin infinitely while nothing happened, demanding a forced shutdown.
- I removed the custom planet definitions and system defs, because I believed they were the cause of the problem and too ambitious currently. Now with ONLY the faction definition in my mod installation, the game does not even spin on load, it simply crashed to desktop within a second or two of initiating map generation.
- My mod is installed correctly, the xml file is inside My Games/GalCiv3/Mods/MyCivMod/Game/Custom_FactionDefs.xml.
I would really appreciate any assistance on my troubles with this system. Its starting to drive me crazy because I believe I have this right. I would love if someone came along and pointed out my idiocy with a syntax error, that would make it so simple, but I cant seem to find anything wrong with my file.