Need Help editing the gunship

boneys26

BTS Play session tester
Joined
Nov 24, 2005
Messages
839
Location
Coventry, England
Hi guys having some problems editing the gunship i want it to transport 2artillery I can get it to carry 2 units including artillery but how do i get it so it doesn't caqrry any other unit? heres what i've done

from


<iBombardRate>0</iBombardRate>
<SpecialCargo>NONE</SpecialCargo>
<DomainCargo>NONE</DomainCargo>
<iCargo>0</iCargo>
<iConscription>0</iConscription>

TO

<iBombardRate>0</iBombardRate>
<SpecialCargo>NONE</SpecialCargo>
<DomainCargo>DOMAIN_LAND</DomainCargo>
<iCargo>2</iCargo>
<iConscription>0</iConscription>

I thought about changing the specialcargo to <SpecialCargo>SPECIALUNIT_ARTILLERY</SpecialCargo>

but when the game loads its says theres something wrong with unitclassinfo.xml any idea?
 
IVZanIV said:
You'll need to add the SPECIALUNIT_ARTILLERY tag to the artillery too.


Yeah done that but then when booting the game i get this

XML ERROR
Tag: SPECIALUNIT_ARTILLERY in info class was incorrect
current XML file is units\civ4unitinfos.xml


I get it twice once for the gunship and then again for the artillery unit
any ideas how to fix it?
 
That was what I was thinking... I'll look around, but if someone else want's to too, I haven't much looked at the schemas yet.
 
Ah found the problem i needed to add

<SpecialUnitInfo>
<Type>SPECIALUNIT_ARTILLERY</Type>
<Description>TXT_KEY_SPECIALUNIT_ARTILLERY</Description>
<bValid>1</bValid>
<ProductionTraits/>
</SpecialUnitInfo>

to the specialunitinfos.xml file its fix it i can now only load artillery units into my MI24 and KA50 gunships :king:

Thanks for your help guys :goodjob:
 
Back
Top Bottom