In the startup options for steam use the following swfoc MODPATH=Mods\Caspar
Place all your stuff into C:\Program Files (x86)\Steam\steamapps\common\Star Wars Empire at War\corruption\Mods
, if the Mods
Folder does not exist, create it.
For adding units do the following:
- Download the XML Files from https://www.gamemaps.com/foc/tools
- Add your unit to the XML Files
- For example C:\Program Files (x86)\Steam\steamapps\common\Star Wars Empire at War\corruption\Mods\Source\Data\XML\UNIQUEUNITS.XML
- if it is a hero, set the techlevel to 6 or higher
- If you changed the abilities, you may need to change the
<LandBehavior>
tag and addABILITY_COUNTDOWN
for example
- Add Text and descriptions using the dat Editor http://www.petrolution.net/item-172
- Use the file located in "C:\Program Files (x86)\Steam\steamapps\common\Star Wars Empire at War\corruption\Mods\Source\Data\Text\mastertextfile_english.dat"
- Add the image for the unit
- Get the textures from the base game using the Eaw_file_Extractor https://www.moddb.com/downloads/eaw-file-extractor
- Use the file "C:\Program Files (x86)\Steam\steamapps\common\Star Wars Empire at War\corruption\Data\textures.meg" for force of curruption
- Obtain an .tga file for the icon
- Use GIMP
- Get some Picture from the internet (make sure you have the rights to use it)
- (Put a vigniette on the image, use
Filters → Light and Shadow → Vignette
and use transparent color) - Scale it to 50x50 pixels, use
Image>Scale Image
- Save as .tga
- Uing the MED Editor open the MT_COMMANDBAR.MTD file in C:\Program Files (x86)\Steam\steamapps\common\Star Wars Empire at War\corruption\Mods\Source\Data\ART\TEXTURES
- There open MT_COMMANDBAR.TGA.
- Add the image you want to use
- Now make the unit available in galactic conquest and skyrimish
- Skyrimish
- Open C:\Program Files (x86)\Steam\steamapps\common\Star Wars Empire at War\corruption\Mods\Source\Data\XML\STARBASES.XML
- Go to Skirmish_Empire_Star_Base_3 or add it to
Imperial_Command_Center
inXML\SPECIALSTRUCTURES.XML
whatever base you want to use - Add it to
<Tactical_Buildable_Objects_Multiplayer>
tag - Add for all starbases of higher level
- For adding to galactic conquest
- For the AI
- Open STORY_EMPIRE_AI_HEROES_EXP.XML
- Make a new event at the tech level for example
- For the player
- Find the file you need to edit in CAMPAIGNS_UNDERWORLD_GC.XML
- For example search for
<Campaign Name="Sandbox_Equal_Footing_Empire">
- Find the Empire_Story_Name tag
- Open the corresponding file, for example STORY_SANDBOX_56_EMPIRE.XML
- Add the entry under
<!-- Spawn Tech Level 1 Heroes -->
- For the AI
- You're done, have fun!