PDA

View Full Version : "Not-Modded" Units in Special Powers



divhashmorex
04-28-2011, 03:10 PM
Hi All,
I have a problem with GDI Special Powers that are based on OCL (like Airborne, Bloodhound).
I changed number of units in squad and gave Infantry and some vehicles Veteran Experience on start. There are also some little changes, like 3 slots in APC, Speed of Engineer, costs and etc.
I changed also for example GDIRifleSquad_Veteran (and other with _VETERAN in name) to gain experience Elite on start.
Everything working, until I try to use of Special Powers like Airborne, Bloodhound Hunter Killer Team or Zone Troopers Drop Pod.
The units starts with Elite Experience but are "normally", "not-moded" units. For example APC have only 1 slot and the number of squad members are basic.

I don't know that to change now. Please help guys. There are some "sources" and screenshoots:

GDIMissileSoldierSquad.xml - Behaviors

<Behaviors>
<WeaponSetUpdate
id="ModuleTag_WeaponSetUpdate">
<WeaponSlotHardpoint
ID="1"
AllowInterleavedFiring="false"
InterleavedStyle="INTERLEAVE_FIRST_AVAILABLE"
WeaponChoiceCriteria="PREFER_MOST_DAMAGE">
<Weapon
Ordering="PRIMARY_WEAPON"
Template="SquadMissileRangefinder" />
</WeaponSlotHardpoint>
</WeaponSetUpdate>
<StealthDetectorUpdate
id="ModuleTag_StealthDetect"
DetectionRange="100" />
<Physics
id="ModuleTag_Physics"></Physics>
<HordeContain
id="ModuleTag_HordeContain"
FrontAngle="4.7123"
FlankedDelaySeconds="2.0"
ShowPips="false"
Formation="MAIN"
MeleeAttackLeashDistance="1"
Slots="5"
ObjectStatusOfContained=""
ConditionForEntry="INVALID">
<PassengerFilter
Rule="NONE"
Include="INFANTRY" />
<DieMuxData />
<InitialPayload
Name="GDIMissileSoldier"
Count="5" />
<MeleeBehavior
Type="AMOEBA" />
<RankInfo
RankID="1"
UnitType="GDIMissileSoldier">
<Position
X="0"
Y="-10" />
<Position
X="0"
Y="10" />
<Position
X="0"
Y="0" />
<Position
X="10"
Y="0" />
<Position
X="10"
Y="10" />
</RankInfo>
<RankToReleaseWhenAttacking>1</RankToReleaseWhenAttacking>
</HordeContain>
<ProductionUpdate
id="ModuleTag_ProductionUpdate"
GiveNoXP="true" />
<ModelConditionUpgrade
id="ModuleTag_MissileSoldierArmorComposite"
Permanent="true">
<TriggeredBy>Upgrade_GDICompositeArmor</TriggeredBy>
</ModelConditionUpgrade>
<AimWeapon
id="ModuleTag_AimWeapon"
AimHighThreshold="0.5"/>
<xi:include
href="DATA:Includes/GDICallForTransport.xml" />
<xi:include
href="DATA:Includes/CaptureBehavior.xml"
xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:Behaviors/child::*)" />
<xi:include
href="DATA:Includes/GDICallSupportVeterancy.xml" />
<xi:include
href="DATA:Includes/GDICallSupportVeterancyUpgrade.xml" />
</Behaviors>

GDIMissileSoldierSquad_Veteran.xml


<Includes>
<Include
type="instance"
source="DATA:GDI/Units/GDIMissileSoldierSquad.xml" />
</Includes>
<GameObject
id="GDIMissileSoldierSquad_Veteran"
EditorName="GDIMissileSoldierSquad_Veteran"
inheritFrom="GDIMissileSoldierSquad">
<EquivalentTo>GDIMissileSoldierSquad</EquivalentTo>

<Behaviors>
<LevelUpUpgrade
xmlns="uri:ea.com:eala:asset"
id="ModuleTag_LevelUpUpgrade"
LevelCap="4"
DoFlash="false"
LevelsToGain="2">
<TriggeredBy>Upgrade_CallSupportUpgrade</TriggeredBy>
</LevelUpUpgrade>
<xi:include
href="DATA:Includes/GDICallSupportVeterancyUpgrade.xml" />
</Behaviors>

</GameObject>

Mod.xml

<Include type="reference" source="DATA:static.xml" />
<Include type="reference" source="DATA:global.xml" />

<Include type="all" source="DATA:GDICampaignMod/data/GDIPowerPlant.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/Upgrade.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDICommandPost.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIBarracks.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIRifleSoldierSquad.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIRifleSoldier.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIRifleSoldierSquad_Veteran.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDICommando.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIMissileSoldier.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIMissileSoldierSquad.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIMissileSoldierSquad_Veteran.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIEngineer.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIGrenadeSoldierSquad.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIGrenadeSoldier.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDISniper.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDISniperSquad.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDISniperSquad_Veteran.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIZoneTrooper.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIZoneTrooperSquad.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIZoneTrooperSquad_Veteran.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIPitbull.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIRefinery.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIPitbull_Veteran.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIWarFactory.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIAPC.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIAPC_Veteran.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/ExperienceLevels.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/ObjectCreationLists.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIV35Ox_CallSupportGDIAirborne.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIV35Ox_CallSupportGDIAirborneRockets.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIV35Ox_CallSupportHunterKillerTeam.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIV35Ox.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIV35Ox_Summoned.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/GDIV35Ox_SummonedForVehicle.xml" />
<Include type="all" source="DATA:GDICampaignMod/data/SpecialPowerTemplates.xml" />

</Includes>

I tried to add bolded files, but it don't work (bolded files are unchanged).

And screenshoots:
http://img40.imageshack.us/img40/7875/gdicm08.th.jpg (http://img40.imageshack.us/i/gdicm08.jpg/)http://img97.imageshack.us/img97/4224/gdicm01.th.jpg (http://img97.imageshack.us/i/gdicm01.jpg/)http://img863.imageshack.us/img863/5999/gdicm02.th.jpg (http://img863.imageshack.us/i/gdicm02.jpg/)http://img684.imageshack.us/img684/5205/gdicm03.th.jpg (http://img684.imageshack.us/i/gdicm03.jpg/)http://img13.imageshack.us/img13/1023/gdicm04.th.jpg (http://img13.imageshack.us/i/gdicm04.jpg/)http://img696.imageshack.us/img696/5315/gdicm05.th.jpg (http://img696.imageshack.us/i/gdicm05.jpg/)http://img638.imageshack.us/img638/3290/gdicm06.th.jpg (http://img638.imageshack.us/i/gdicm06.jpg/)http://img140.imageshack.us/img140/4256/gdicm07.th.jpg (http://img140.imageshack.us/i/gdicm07.jpg/)

Golan2781
04-28-2011, 03:43 PM
The include in your GDIMissileSoldierSquad_Veteran.xml is poiting to the original file of the unmodified MissileSoldierSquad, thus it only modifies the original one. Change the include to point to your new file containing the modified unit.

divhashmorex
04-28-2011, 06:16 PM
Thanks, it's working

ehh, Generals modding was much more easier.

Golan2781
04-28-2011, 06:28 PM
You'll get used to it, there are some handy features to compensate.