FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   SW:EaW Modding, Mapping and Editing (http://forums.filefront.com/sw-eaw-modding-mapping-editing-1099/)
-   -   [Help] Getting build pads for additional factions (http://forums.filefront.com/sw-eaw-modding-mapping-editing/451608-getting-build-pads-additional-factions.html)

msc204 May 27th, 2013 09:15 AM

Getting build pads for additional factions
 
So, long story short, I'm making a small mini-mod that will add the Hutts as a playable faction. This is also the first mod I've ever made for Empire at War.

Currently, one of my biggest problems is trying to get the additional faction to build turrets on neutral satellites. After looking through the code some I noticed each of the vanilla factions have a bit of code referencing a kind of build pad, I.E. "Rebel_Build_Pad" for example.

I'm trying to find the XML that contains these, but so far no luck. Anyone happen to know what XML this is?

Blood Asp May 27th, 2013 01:40 PM

Re: Getting build pads for additional factions
 
Firstly:

Spoiler:

SpaceBuildablesSkirmish.xml

<SpaceBuildable Name="Defense_Satellite_Laser_Pad">

<Tactical_Buildable_Objects_Multiplayer>
Empire,
UC_Empire_Defense_Satellite_Laser,
UC_Empire_Defense_Satellite_Missile,
UC_Empire_Defense_Satellite_Repair,

<Affiliation>Neutral, Rebel, Empire, Underworld</Affiliation>


All these have to be edited for your new faction.

You're also going to need to give them versions of these:

Spoiler:
<SpaceBuildable Name="UC_Rebel_Defense_Satellite_Laser">
<Variant_Of_Existing_Type>UC_Empire_Defense_Satell ite_Laser</Variant_Of_Existing_Type>

<Tactical_Buildable_Constructed> Rebel_Defense_Satellite_Laser </Tactical_Buildable_Constructed>
<Tactical_Build_Cost_Multiplayer> 875 </Tactical_Build_Cost_Multiplayer>
<Tactical_Build_Cost_Campaign>400</Tactical_Build_Cost_Campaign>
<Tactical_Build_Time_Seconds> 25 </Tactical_Build_Time_Seconds>

<Affiliation>Rebel</Affiliation>
<SFXEvent_Build_Started>RHD_Build_Structure</SFXEvent_Build_Started>
<SFXEvent_Build_Cancelled>RHD_Building_Canceled</SFXEvent_Build_Cancelled>
<SFXEvent_Build_Complete>RHD_Construction_Complete </SFXEvent_Build_Complete>
</SpaceBuildable>


Spoiler:
<SpaceBuildable Name="UC_Rebel_Defense_Satellite_Missile">
<Variant_Of_Existing_Type>UC_Empire_Defense_Satell ite_Missile</Variant_Of_Existing_Type>

<Tactical_Buildable_Constructed> Rebel_Defense_Satellite_Missile </Tactical_Buildable_Constructed>
<Tactical_Build_Cost_Multiplayer> 700 </Tactical_Build_Cost_Multiplayer>
<Tactical_Build_Cost_Campaign>275</Tactical_Build_Cost_Campaign>
<Tactical_Build_Time_Seconds> 28 </Tactical_Build_Time_Seconds>

<Affiliation>Rebel</Affiliation>
<SFXEvent_Build_Started>RHD_Build_Structure</SFXEvent_Build_Started>
<SFXEvent_Build_Cancelled>RHD_Building_Canceled</SFXEvent_Build_Cancelled>
<SFXEvent_Build_Complete>RHD_Construction_Complete </SFXEvent_Build_Complete>
</SpaceBuildable>


Spoiler:

<SpaceBuildable Name="Rebel_Defense_Satellite_Laser">
<Variant_Of_Existing_Type>Empire_Defense_Satellite _Laser</Variant_Of_Existing_Type>
<Affiliation>Rebel</Affiliation>
</SpaceBuildable>


Spoiler:
<SpaceBuildable Name="Rebel_Defense_Satellite_Missile">
<Variant_Of_Existing_Type>Empire_Defense_Satellite _Missile</Variant_Of_Existing_Type>
<Affiliation>Rebel</Affiliation>
</SpaceBuildable>


You can also give them the Zann Consortium satellites if you wanted to.

msc204 May 27th, 2013 02:45 PM

Re: Getting build pads for additional factions
 
All of the above were edited to meet specifications a while ago, units can cap the satellites but I can't build anything on them - hence why I'm confused. :confused:



Also, another slight issue cropped up - I started adding a few custom units and I put the icon files in textures folder, however they fail to show up in-game along with the ship names in the description.

Blood Asp May 28th, 2013 11:47 AM

Re: Getting build pads for additional factions
 
Quote:

Originally Posted by msc204 (Post 5699685)
All of the above were edited to meet specifications a while ago, units can cap the satellites but I can't build anything on them - hence why I'm confused. :confused:



Also, another slight issue cropped up - I started adding a few custom units and I put the icon files in textures folder, however they fail to show up in-game along with the ship names in the description.

For the text, you have to edit the "mastertextfile_english.dat" file. As for the icons, they have to added to "MT_Commandbar.MTD". There's an editor for each of these files.

If you're still talking about the space build pads, you must add them like this:
Spoiler:

Hutts,
UC_Hutts_Defense_Satellite_Laser,
UC_Hutts_Defense_Satellite_Missile,
UC_Hutts_Defense_Satellite_Repair,

This is to be added under both of the following entries:

<Tactical_Buildable_Objects_Multiplayer>
<Tactical_Buildable_Objects_Campaign>


The same goes for the ground buildables located in groundbuildablesskirmish.xml


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.