PDA

View Full Version : Adding a New Transport



UmbrellaSecrets
03-07-2011, 02:21 PM
Hello, I've been trying to add a new transport to my faction lately where units can call in a transport to pick them up. I've been having problems with compiling my mod and I keep getting an error saying "includes/ascallfortransportforvehicle.xml" <CreateAndEnterObjectSpecialPower xmlns="uri:ea.com:eala:asset" could not be declared near line 10. I'm guessing something is missing from the code.

Here is the code:

<?xml version="1.0" encoding="us-ascii"?>
<CreateAndEnterObjectSpecialPower xmlns="uri:ea.com:eala:asset"
id="ModuleTag_CallForTransport"
SpecialPowerTemplate="SpecialPowerCallForTransportAS"
OCL="OCL_ASCallForTransportForVehicle"
CreateLocation="CREATE_ABOVE_LOCATION"
TriggerFX=""
ChildModuleHandlesFX="false"
IdleWhenStartingPower="true">
</CreateAndEnterObjectSpecialPower>

Thanks for the help in advance.

Golan2781
03-07-2011, 04:44 PM
What does the XInclude you are referencing this code with look like?

NODSOLDIERGIRL
03-07-2011, 05:04 PM
Hello, I've been trying to add a new transport to my faction lately where units can call in a transport to pick them up. I've been having problems with compiling my mod and I keep getting an error saying "includes/ascallfortransportforvehicle.xml" <CreateAndEnterObjectSpecialPower xmlns="uri:ea.com:eala:asset" could not be declared near line 10. I'm guessing something is missing from the code.

Here is the code:

<?xml version="1.0" encoding="us-ascii"?>
<CreateAndEnterObjectSpecialPower xmlns="uri:ea.com:eala:asset"
id="ModuleTag_CallForTransport"
SpecialPowerTemplate="SpecialPowerCallForTransportAS"
OCL="OCL_ASCallForTransportForVehicle"
CreateLocation="CREATE_ABOVE_LOCATION"
TriggerFX=""
ChildModuleHandlesFX="false"
IdleWhenStartingPower="true">
</CreateAndEnterObjectSpecialPower>

Thanks for the help in advance.
Shouldn't the "URI" before ea.com be a URL instead?

UmbrellaSecrets
03-07-2011, 05:48 PM
It worked when I changed it to URL instead of URI, but I still yet have to try my transport special power in game. :)

The code I was referring too is this:
MOD SDK/cncxml/Includes/GDICallForTransportForVehicle

<?xml version="1.0" encoding="us-ascii"?>

<CreateAndEnterObjectSpecialPower xmlns="uri:ea.com:eala:asset"
id="ModuleTag_CallForTransport"
SpecialPowerTemplate="SpecialPowerCallForTransportGDI"
OCL="OCL_GDICallForTransportForVehicle"
CreateLocation="CREATE_ABOVE_LOCATION"
TriggerFX="FX_GDICallForTransportFlare"
ChildModuleHandlesFX="true"
IdleWhenStartingPower="true">
<FXOffset x="25" y="0" z="0"></FXOffset>
</CreateAndEnterObjectSpecialPower>