Hi everybody.
I already ask to rav8 about my problem, but I'm sharing it with you to know if somebody else could help me.
I'm trying to create my own Battlestar Galactica mod with Dark Avatar. Most of the things works fine:
For
both races I could use my hulls in the game, each race has a ship style
that use the BSG hulls, I can see my initial colony, flagship and
SpaceMiner use the ship that I had predefined in GC2Ships. I tried both race and it works fine.
The only one
thing that is still causing me problems is that the AI ships is invisible. As well the
initials ships and the one that he's building. I'm stuck at this point
for a long time and I want your advise. I don't think it's a model problem because I could play both races and I saw my ship. It's always the opponent ships that are invisible.
I will resume what I've made
yet:
1- Use rav8 models, rename them with s99 prefix and put them in mods\BSG\Gfx\Models
2- Created my Hulls file. (located in mods\BSG\Data\ShipComponents\Colonials Hulls and Cylons Hulls.xml)
Here's a sample of a Hulls xml:
<Hull Name="BattlestarGalacticaHull">
<DisplayName>Battlestar Class Galactica</DisplayName>
<Description>Huge hulls are for true capital ships. They use 10 logistical points.</Description>
<Cost>320</Cost>
<Size>150</Size>
<SensorRange>4</SensorRange>
<HP>84</HP>
<Model>BSG_Galactica</Model> <!-- refer to GFX\Models\s99_BSG_Galactica.x -->
<Thumbnail>BSG_Galactica</Thumbnail> <!-- I don't have any thumbnail -->
<Speed>1</Speed>
<Category>Huge</Category>
<Logistics>10</Logistics>
</Hull>
3- Created my RaceConfig. (located in mods\BSG\Data)
I
had some problems with this one. I figure out that we must define at
least 20 or 21 races of it crashes. I add Human and Cylon and leave the
others there, but with the <Ignore>1</Ignore> node.
Here's a sample of my race (sorry, I write down everything to be sure that we didn't miss the problem):
<Race Name="Human">
<DisplayName>Human</DisplayName>
<RaceID>0</RaceID>
<Alignment>50</Alignment>
<ShortEmpireName>Human</ShortEmpireName>
<RaceLeader>Laura Roslin</RaceLeader>
<Homeworld>Earth</Homeworld>
<Homestar>Sun</Homestar>
<Description>The twelve colony reunited</Description>
<Portrait>Gfx\Race\Colonial_Laura.png</Portrait>
<DefaultTradePortrait>Gfx\Race\TradePortraits\Colonial_Laura.png</DefaultTradePortrait>
<Logo>Gfx\Race\Logos\colonial-fleet.png</Logo>
<SmallLogo>Gfx\Race\Logos\colonial-fleet.png</SmallLogo>
<PoliticalParty>6</PoliticalParty>
<RaceColor>12,12,255</RaceColor>
<ShadowColor>0,5,41</ShadowColor>
<UndefendedStarColor>64,64,192</UndefendedStarColor>
<DefendedStarColor>128,128,255</DefendedStarColor>
<SectorColor>12,12,255</SectorColor>
<BaseColor>241,251,220</BaseColor>
<TrimColor>0,64,128</TrimColor>
<EngineColor>0,255,255</EngineColor>
<InterfaceColor>0,200,255</InterfaceColor>
<ShipStyle>Human Alliance Style</ShipStyle> <!-- Refer to to Ship Style name -->
<ModuleStyle>0</ModuleStyle> <!-- I'm not sure of this one -->
<ECONOMICS>0</ECONOMICS>
<WEAPONS>0</WEAPONS>
<DEFENSE>0</DEFENSE>
<SPEED>0</SPEED>
<MORALE>0</MORALE>
<POPULATIONGROWTH>0</POPULATIONGROWTH>
<SOCIALPRODUCTION>0</SOCIALPRODUCTION>
<MILITARYPRODUCTION>0</MILITARYPRODUCTION>
<RESEARCH>0</RESEARCH>
<INFLUENCE>0</INFLUENCE>
<TRADE>0</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>
4- Create the many templates (located in mods\BSG\Data\ShipTemplates). One xml by template.
<ShipTemplate Name="CylonAttackerTemplate_t">
<Component>RaiderHull</Component> <!-- refer the the Hull name-->
<DisplayName>Cylon Attacker Template</DisplayName>
<Model>Raider</Model> <!-- Refer the name of the shipcfg -->
</ShipTemplate>
5- Create the shipcfg (located in mods\BSG\Data\ShipCfg). Named like Prefix_ModelName.shipcfg
Sample
Human_Galactica.shipcfg
[HULL]
BASE_HULL=s99_BSG_Galactica.x
6-
Create ShipStyles for Human and Cylons. I suspect that my problem may
be there. Does each style needs to contains each AI type?. Anyway I
leave them all there and reuse the same template.
Here's my Human Alliance Style:
<ShipStyle Name="Human Alliance Style">
<AIAttacker1>HumanAttackerTemplate_t</AIAttacker1>
<AIAttacker2>HumanAttackerTemplate2_t</AIAttacker2>
<AIAttacker3>HumanAttackerTemplate_t</AIAttacker3>
<AIBattleship1>HumanBattleshipTemplate_t</AIBattleship1>
<AIBattleship2>HumanBattleshipTemplate2_t</AIBattleship2>
<AIBattleship3>HumanBattleshipTemplate_t</AIBattleship3>
<AIColonyShip1>HumanColonyShipTemplate_t</AIColonyShip1>
<AIConstructor1>HumanConstructorTemplate_t</AIConstructor1>
<AIDefender1>HumanDefenderTemplate_t</AIDefender1>
<AIDreadnought1>HumanDreadnoughtTemplate_t</AIDreadnought1>
<AIDreadnought2>HumanDreadnoughtTemplate2_t</AIDreadnought2>
<AIDreadnought3>HumanDreadnoughtTemplate_t</AIDreadnought3>
<AIFighter1>HumanFighterTemplate_t</AIFighter1>
<AIFighter2>HumanFighterTemplate_t</AIFighter2>
<AIFighter3>HumanFighterTemplate_t</AIFighter3>
<AIFreighter1>HumanFreighterTemplate_t</AIFreighter1>
<AIFrigate1>HumanFrigateTemplate_t</AIFrigate1>
<AIFrigate2>HumanFrigateTemplate2_t</AIFrigate2>
<AIFrigate3>HumanFrigateTemplate_t</AIFrigate3>
<AIHeavyFighter1>HumanHvyFtrTemplate_t</AIHeavyFighter1>
<AIHeavyFighter2>HumanHvyFtrTemplate_t</AIHeavyFighter2>
<AIHeavyFighter3>HumanHvyFtrTemplate_t</AIHeavyFighter3>
<AISpaceMiner1>HumanSpaceMinerTemplate_t</AISpaceMiner1>
<AISpore1>HumanSporeShipTemplate_t</AISpore1>
<AISurvey1>HumanSurveyTemplate_t</AISurvey1>
<AITransport1>HumanTransportTemplate_t</AITransport1>
<DisplayName>Human Alliance Style</DisplayName>
<Hidden>0</Hidden>
<Prefix>Human</Prefix> <!-- Prefix used in shipcfg -->
<ModuleStyle>0</ModuleStyle> <!-- Again I'm not sure about this one -->
</ShipStyle>
7-
Create GC2Ships with predefined colony, survey, freighter... etc.
ships. I think that somes ships are necessary. Like ColonyShip,
SurveyShip... etc.
<Ship Name="ColonyShip">
<DisplayName>Colony Ship</DisplayName>
<Model>ColonyShip</Model>
<Description>Taking people into that great big galaxy.</Description>
<Component>BasicSupport</Component>
<Component>BasicSupport</Component>
<Component>BasicSupport</Component>
<Component>HyperDrive</Component>
<Component>ColonyModule</Component>
</Ship>
<Ship Name="SurveyShip">
<DisplayName>Survey Ship</DisplayName>
<Model>SurveyShip</Model>
<Description>Go boldly where no one has gone before...into anomalies!</Description>
<Component>Sensors3</Component>
<Component>StarScanner0</Component>
<Component>AdvancedSupport</Component>
<Component>BasicSupport</Component>
<Component>IonDrive</Component>
<Component>IonDrive</Component>
</Ship>
<Ship Name="Transport">
<DisplayName>Transport</DisplayName>
<Model>Transport</Model>
<Description>Meet new people on distant worlds and conquer them.</Description>
<Component>BasicSupport</Component>
<Component>HyperDrive</Component>
<Component>TroopsModule</Component>
<Component>TroopsModule</Component>
</Ship>
<Ship Name="SporeShip">
<DisplayName>Spore Ship</DisplayName>
<Model>SporeShip</Model>
<Description>Destruction through germ warfare.</Description>
<Component>BasicSupport</Component>
<Component>HyperDrive</Component>
<Component>SporeModule</Component>
</Ship>
<Ship Name="Freighter">
<DisplayName>Freighter</DisplayName>
<Model>Freighter</Model>
<Description>Business is better than war. Send the freighter
to friendly worlds to establish money-making trade
routes.</Description>
<Component>BasicSupport</Component>
<Component>BasicSupport</Component>
<Component>TradeModuleLeft</Component>
<Component>HyperDrive</Component>
</Ship>
<Ship Name="Constructor">
<DisplayName>Constructor</DisplayName>
<Model>Constructor</Model>
<Description>Designed to build star bases, the Constructor
can be sent to to galactic resources or anywhere else a little extra
influence is needed.</Description>
<Component>BasicSupport</Component>
<Component>BasicSupport</Component>
<Component>HyperDrive</Component>
<Component>ConstructorModule</Component>
</Ship>
<Ship Name="Starbase">
<DisplayName>Starbase</DisplayName>
<Model>Starbase</Model>
<Description>Starbases expand your resources and extend your influence.</Description>
<Tech_Requirement>ImpossibleTech</Tech_Requirement>
<Component>LargeHull0</Component>
<Ability>Starbase</Ability>
</Ship>
<Ship Name="SpaceMiner">
<DisplayName>Space Miner</DisplayName>
<Model>SpaceMiner</Model>
<Description>The Space Miner is designed to mine asteroid fields.</Description>
<Component>BasicSupport</Component>
<Component>BasicSupport</Component>
<Component>HyperDrive</Component>
<Component>SpaceTruckModule</Component>
</Ship>
<Ship
Name="Viper2"> <!-- I know that this one did not work because the
size of all components did not fit on the tiny hull -->
<DisplayName>Attack Viper2</DisplayName>
<Model>Viper2</Model>
<Description>Attack Viper</Description>
<Component>MassDrivers0</Component>
<Component>HyperDrive</Component>
</Ship>
Sorry
I know that's a lot of informations, but I think I need to gave all to
help you to find the little thing that I did wrong. Thank you in
advance for your help.
I'll glad to share it with you when it will works.