There are 3 ways to spawn units of the non player fractions to your fraction. I think I can remember I covered one of this methods in my tutorials, or did I forgot about this.. cant remember.
The 3 main fractions are Tauri (Underworld for FoC, but Rebel for EaW), Goauld (Empire for Eaw, Rebel for Foc) and Wraith ( Empire for FOC only because EAW has only 2 Fractions)
The other Fractions arnt playable by the player, they are simple AI fractions.
First way is: You search in your xml directory for the GC file of the Campaign you want to add them.
There you have to insert the
correct ingame unitname into the tag
<Starting_Forces>.
Explanation of the syntax of this tag:
<Starting_Forces> Empire, Planet_Name, Empire_Star_Base_1
</Starting_Forces>
- First parameter is the Fraction you want to spawn it for (Empire, Rebel or Underworld).
- Second parameter is the planet where you want it spawned as soon the Galactic Conquest was started (you always have to restart the GC to see the changes you applied for this method. But there is another method that allows spawning of units in a running savegame).
Third Parameter is the ingame name of the Unit you want to spawn. In this case it is a Level 1 Starbase over a planet, but it can also be a Spaceship or a Hero unit.
After adding this changes you have to whether reload .xml library in the running game or restarting the game and starting the campaign with the fraction you just added in parameter 1. Then the unit should spawn there.
Method 2
Search in your GC.xml file for the tag <Empire_Story_Name> or <Rebel_Story_Name> or <Underworld_Story_Name> (depending on which fraction you want to manipulate).
For example, you find the file written into this tag for the Rebels in
\Xml\Story_
Plots_Sandbox_???_rebel.xml
In this file you usually find something like Story_Sandbox_???_rebel.xml, which is the story file. You want to inject some code into this file.
These files work with events. The first event there is usually this one:
<Event Name="Universal_Story_Start">
<Event_Type>STORY_ELAPSED</Event_Type>
<Event_Param1>1</Event_Param1>
</Event>
Copy this event here under the "Universal_Story_Start" event or between any other events that already exist there:
<Event Name="Cheating_UnitName_01">
<Event_Type>STORY_ENTER</Event_Type>
<Event_Param1>PlanetName</Event_Param1>
<Event_Param2>FILTER_FRIENDLY_ONLY</Event_Param2>
<Reward_Type>UNIQUE_UNIT</Reward_Type>
<Reward_Param1>UnitName</Reward_Param1>
<Reward_Param2>PlanetName</Reward_Param2>
<Perpetual>False</Perpetual>
</Event>
Any event is mostly diveded into 2 paths:
The event part which checks for a condidtion to trigger (<Event_Type>, <Event_Param1>, <Event_Param2>...)
And the Reward part, which does a action like giving a reward to the player ( <Reward_Type>, <Reward_Param1>, <Reward_Param2> .. and so on)
Once the event triggers for the first time the game will store into the gamesave that this event already fired once. And the game wont try to fire this event again for normal events or events with <Perpetual>
False</Perpetual>.
You can fire the event each time the condition was fulfilled using <Perpetual>
True</Perpetual> (in this example each time any of your units enters the planet in <Event_Param1> it will fire)
Or if you want a similar event to fire twice only you can make a copy of this event and give it another name ( 01, 02, 03 ...) like:
<Event Name="Cheating_UnitName_
02">
And if you want it to fire a bunch of times (but not infinite using Perpetual) just copy it and increase the number from 02 to 03 and so on.
Reward Param1 describes the unit you want to spawn, paste its ingame Unit Name into this tag.
PlanetName has for both to be replaced with a valid planet name in this Galacitc Conquest map.
<Event_Param1> = Once any of your Units (
FILTER_FRIENDLY_ONLY) enters this planet, fire the event. <Revard_Param2> = This is the planet where your unit should spawn.
The good thing about this method is, that you can spawn units into a already running savegame without having to restart the gc.
There is a 3rd method. I wrote a Lua script that automatically spawns the desired units.
I can upload it here if you wish it. Altogeter it is easier using the lua script but it still isnt final (the final one will be very noob friendly).