CariElf CariElf

A Modding Guide

Along with the code changes that I made for 1.2, I also made a guide to help with modding galciv2. It covers all of the data files that you can mod in GalCiv2, although it occurs to me now that I did not cover screens.  However, there are docs out there for DesktopX, and those would cover most of what you need to know. 

Anyway, have fun, and please e-mail feedback on the modding docs to [email protected].  

https://www.galciv2.com/mods/gc2modsdoc.htm

242,023 views 85 replies | Pinned
Reply #76 Top
For people who need a more up to date guide, go to wiki.i-mod-productions.com where they are currently cataloging all of the xml tags and propeties! they're creating the ultimate guide with their xml reference project!

-Dave
Reply #77 Top
Wow very nice and boomarked...cant wait to start reading it!! Wait...why am i posting when I should be reading....
Reply #78 Top
I made a few Borg style Bik files for movies, and placed them in the mods directory movies file.


You made new bik movie files?! I've been trying to do same for >1 month now! Do you have a special program or something?
Reply #80 Top
lol. look at reply #1...my reply :LOL:

For people who need a more up to date guide, go to wiki.i-mod-productions.com where they are currently cataloging all of the xml tags and propeties! they're creating the ultimate guide with their xml reference project!-Dave


-Dave
Reply #81 Top

OK, here's a wierd one for you: the Basecolor and Trimcolor RGB fields in the raceconfig.xml for the Terrans (just the Terrans!) has four values. WHY, and what happens if I change or delete the fourth one?

Reply #82 Top

At first, i thought this was meant to be the usual Alpha-Channel ratio or a diffuse gimmick for the whole UV layers and_or materials - so, i tested a Zero (maximum "dark") value instead of 255 without any perceivable effect.

Otherwise, the slot color itself must have a purpose but i'm presently dumbfounded about the exact point of having it there for any races or specific features; just imagine how powerful this simple transparency factor could get for a number of ship components including (somehow) an invisible engine exhaust, etc.

Reply #83 Top

They are RGBA, the Alpha value just isn't actually used, AFAIK. It does need to be present though.

Reply #84 Top

Well then, here goes MrKorx design steps for his IDE stuff (currently in beta & to which i'm actively participating too!), since the actual 4th value is not "consistantly" used for ALL major races or value tag lines, last i checked into the valid but installed v2.01 RC.xml files anyway.

 

EDIT: After some verification, indeed it looks like only the Terran & Arcean use this extra 255-Alpha 4th_RGBA tag for BaseHull+Trim color slots -- in TotA but not in DA or DL. Right?

Reply #85 Top

Custom mods also have the suposed "alpha" colour. But for all colours!? Ooohh! I know! Maybe it alters the races genes!! XD

@kryo+Zyxpsilon

The guide does actually need *SLIGHTLY* changing for TotA. Especially the Custom race thingy:

Theirs:

<Race Name="Barbian Empire">

            <DisplayName>Barbian Empire</DisplayName>

            <Alignment>50</Alignment>

            <ShortEmpireName>Barbian Empire</ShortEmpireName>

            <RaceLeader>Barbie</RaceLeader>

            <Homeworld>Barbie World</Homeworld>

            <Homestar>Barbie Star</Homestar>

            <Description>I'm a Barbie girl, in a Barbie world...</Description>

            <Portrait>Gfx\Race\RaceImage_GaladrielBarbie.png</Portrait>

            <DefaultTradePortrait>Gfx\Race\RaceImage_GaladrielBarbie.png</DefaultTradePortrait>

            <Logo>Gfx\Race\Logos\RaceLogo_Barbie.png</Logo>

            <PoliticalParty>6</PoliticalParty>

            <RaceColor>255,165,165</RaceColor>

            <ShadowColor>41,0,0</ShadowColor>

            <UndefendedStarColor>253,114,167</UndefendedStarColor>

            <DefendedStarColor>253,114,167</DefendedStarColor>

            <SectorColor>255,165,165</SectorColor>

            <BaseColor>255,255,255</BaseColor>

            <TrimColor>253,114,167</TrimColor>

            <EngineColor>0,204,255</EngineColor>

            <InterfaceColor>250,0,124</InterfaceColor>

            <ShipStyle>0</ShipStyle>

            <ModuleStyle>0</ModuleStyle>

            <Tech>HyperDrive</Tech>

            <Tech>UniversalTranslator</Tech>

            <Tech>Xeno Communications</Tech>

            <Tech>Xeno Engineering</Tech>

            <Tech>StellarCartography</Tech>

            <Tech>XenoResearch</Tech>

            <ECONOMICS>20</ECONOMICS>

            <WEAPONS>0</WEAPONS>

            <DEFENSE>0</DEFENSE>

            <SPEED>0</SPEED>

            <MORALE>0</MORALE>

            <POPULATIONGROWTH>0</POPULATIONGROWTH>

            <SOCIALPRODUCTION>0</SOCIALPRODUCTION>

            <MILITARYPRODUCTION>0</MILITARYPRODUCTION>

            <RESEARCH>10</RESEARCH>

            <INFLUENCE>15</INFLUENCE>

            <TRADE>10</TRADE>

            <DIPLOMACY>0</DIPLOMACY>

            <HITPOINTS>0</HITPOINTS>

            <REPAIR>0</REPAIR>

            <SENSORS>0</SENSORS>

            <ESPIONAGE>0</ESPIONAGE>

            <SOLDIERING>0</SOLDIERING>

            <INTERESTRATES>0</INTERESTRATES>

            <PLANETQUALITY>0</PLANETQUALITY>

            <TRADEROUTES>0</TRADEROUTES>

            <CRIME>0</CRIME>

            <CABINET>0</CABINET>

            <RANGE>0</RANGE>

            <LUCK>0</LUCK>

            <COURAGE>0</COURAGE>

            <CREATIVITY>0</CREATIVITY>

            <GOVERNMENT>0</GOVERNMENT>

            <LOYALTY>0</LOYALTY>

            <LOGISTICS>6</LOGISTICS>

            <MINIATURIZATION>0</MINIATURIZATION>

</Race>

 

My favourite Custom 1:

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<Races>
    <DataChecksum NoParse="1">
        <Ignore>FileID,DisplayName,Description,Homeworld,Homestar,RaceLeader,ShortEmpireName,Portrait,DefaultTradePortrait,DefaultTradeMovie,FriendlyTradeMovie,UnfriendlyTradeMovie,UnitedPlanetsMovie,Logo,SmallLogo,RaceColor,ShadowColor,UndefendedStarColor,DefendedStarColor,SectorColor,BaseColor,TrimColor,EngineColor,InterfaceColor,ShipStyle,ModuleStyle</Ignore>
    </DataChecksum>
    <Race Name="White Confederacy">
        <ConfigVersion>27</ConfigVersion>
        <RaceID>3</RaceID>
        <CivType>4</CivType>
        <DisplayName>White Confederacy</DisplayName>
        <Alignment>99</Alignment>
        <ShortEmpireName>White Confederacy</ShortEmpireName>
        <RaceLeader>Lord Ona</RaceLeader>
        <Homeworld>Home Of Light</Homeworld>
        <Homestar>Sia'ul</Homestar>
        <GeneratedDescription>0</GeneratedDescription>
        <Description>A Confederacy founded by the Ascended Arcean, Mage.</Description>
        <AIPersonality>11</AIPersonality>
        <DialogueTag>Generic</DialogueTag>
        <Portrait>C:\Program Files\Kalypso\GalCiv2EU\Gfx\Race\RaceImage33.png</Portrait>
        <DefaultTradePortrait>C:\Program Files\Kalypso\GalCiv2EU\Gfx\Race\RaceImage33_Trade.png</DefaultTradePortrait>
        <DefaultTradeMovie>RaceImage33_neutral.bik</DefaultTradeMovie>
        <FriendlyTradeMovie>RaceImage33_happy.bik</FriendlyTradeMovie>
        <UnfriendlyTradeMovie>RaceImage33_angry.bik</UnfriendlyTradeMovie>
        <UnitedPlanetsMovie>RaceImage33_Small.bik</UnitedPlanetsMovie>
        <RobotMovie>NewsRobot_Alien_Good</RobotMovie>
        <RobotImage>gfx\Message_AlienGood</RobotImage>
        <RaceMusic>Race03</RaceMusic>
        <Logo>C:\Program Files\Kalypso\GalCiv2EU\Mods\Ultima Mod\Gfx\Race\Logos\RepublicoftheSphere.png</Logo>
        <PoliticalParty>14</PoliticalParty>
        <RaceColor>163,251,0,255</RaceColor>
        <ShadowColor>41,0,0,255</ShadowColor>
        <UndefendedStarColor>210,206,0,255</UndefendedStarColor>
        <DefendedStarColor>210,206,0,255</DefendedStarColor>
        <SectorColor>163,251,0,255</SectorColor>
        <BaseColor>250,230,69,255</BaseColor>
        <TrimColor>155,255,255,255</TrimColor>
        <EngineColor>255,255,0,255</EngineColor>
        <InterfaceColor>210,206,0,255</InterfaceColor>
        <ShipStyle>Arcean Empire Style</ShipStyle>
        <ModuleStyle>0</ModuleStyle>
        <TechTree>Torian_TechTree</TechTree>
        <Tech>UniversalTranslator</Tech>
        <Tech>Xeno Communications</Tech>
        <Tech>Concepts of Righteousness</Tech>
        <Tech>Galactic Warfare</Tech>
        <Tech>FusionReactors</Tech>
        <Tech>ArtificialGravity</Tech>
        <Tech>CulturalEnlightenment</Tech>
        <Tech>Inherited Technology</Tech>
        <AIAbilities>50</AIAbilities>
        <Aggression>25</Aggression>
        <FinancialResources>100</FinancialResources>
        <CPUUsage>100</CPUUsage>
        <AbilitiesDescription>+ Population Growth

- Military</AbilitiesDescription>
        <SuperAbility>4</SuperAbility>
        <ResearchAdvantage>Culture</ResearchAdvantage>
        <ECONOMICS>0</ECONOMICS>
        <Ability0>0</Ability0>
        <WEAPONS>-5</WEAPONS>
        <Ability1>0</Ability1>
        <DEFENSE>-5</DEFENSE>
        <Ability2>0</Ability2>
        <SPEED>1</SPEED>
        <Ability3>0</Ability3>
        <MORALE>5</MORALE>
        <Ability4>15</Ability4>
        <POPULATIONGROWTH>10</POPULATIONGROWTH>
        <Ability5>0</Ability5>
        <SOCIALPRODUCTION>5</SOCIALPRODUCTION>
        <Ability6>0</Ability6>
        <MILITARYPRODUCTION>-5</MILITARYPRODUCTION>
        <Ability7>0</Ability7>
        <RESEARCH>0</RESEARCH>
        <Ability8>0</Ability8>
        <INFLUENCE>5</INFLUENCE>
        <Ability9>0</Ability9>
        <TRADE>5</TRADE>
        <Ability10>0</Ability10>
        <DIPLOMACY>5</DIPLOMACY>
        <Ability11>0</Ability11>
        <HITPOINTS>-1</HITPOINTS>
        <Ability12>0</Ability12>
        <REPAIR>0</REPAIR>
        <Ability13>0</Ability13>
        <SENSORS>0</SENSORS>
        <Ability14>0</Ability14>
        <ESPIONAGE>0</ESPIONAGE>
        <Ability15>0</Ability15>
        <SOLDIERING>-5</SOLDIERING>
        <Ability16>0</Ability16>
        <INTERESTRATES>0</INTERESTRATES>
        <Ability17>0</Ability17>
        <PLANETQUALITY>5</PLANETQUALITY>
        <Ability18>20</Ability18>
        <TRADEROUTES>0</TRADEROUTES>
        <Ability19>0</Ability19>
        <CRIME>0</CRIME>
        <Ability20>0</Ability20>
        <CABINET>0</CABINET>
        <Ability21>0</Ability21>
        <RANGE>0</RANGE>
        <Ability22>0</Ability22>
        <LUCK>0</LUCK>
        <Ability23>0</Ability23>
        <COURAGE>0</COURAGE>
        <Ability24>0</Ability24>
        <CREATIVITY>0</CREATIVITY>
        <Ability25>0</Ability25>
        <GOVERNMENT>0</GOVERNMENT>
        <Ability26>0</Ability26>
        <LOYALTY>0</LOYALTY>
        <Ability27>0</Ability27>
        <LOGISTICS>6</LOGISTICS>
        <Ability28>0</Ability28>
        <MINIATURIZATION>0</MINIATURIZATION>
        <Ability29>0</Ability29>
        <HOMEPLANETQUALITY>0</HOMEPLANETQUALITY>
        <Ability30>0</Ability30>
        <COLONIZEHEAVYGRAVITY>0</COLONIZEHEAVYGRAVITY>
        <Ability31>0</Ability31>
        <COLONIZEWATERWORLD>0</COLONIZEWATERWORLD>
        <Ability32>0</Ability32>
        <COLONIZETOXIC>0</COLONIZETOXIC>
        <Ability33>0</Ability33>
        <COLONIZEBARREN>0</COLONIZEBARREN>
        <Ability34>0</Ability34>
        <COLONIZERADIOACTIVE>0</COLONIZERADIOACTIVE>
        <Ability35>0</Ability35>
        <WARPROFITEERING>0</WARPROFITEERING>
        <Ability36>0</Ability36>
        <PERSISTENTTRADEROUTES>0</PERSISTENTTRADEROUTES>
        <Ability37>0</Ability37>
    </Race>
</Races>
I'm sure you can see the difference.

Also, how do I get around Hardcoding on PNG files? (If possible)

 

&, My race above has the ID set at 3 so it should replace the Arceans Right? Well it doesnt! Help!

 

Finally, where are the raceconfigxml files kept for the premade races?