fahrenderfisch
Chieftain
Hi
I'm quite new at modding. So far only played around with the Unitinfo.xml.
Now I wanted to create my first new Unit.
I imagined a small/lightweight/inflatable Boat, which can be carried by Marines in order to increase their amphibious abilitys.
The Graphik does not really look good (just a changed .dds from a workboat and made the zoom smaller), but first I want it to work!
I gave the workboat:
Named it SBOAT and made the Marine to a SPECIALUNIT_PEOPLE (just for testing)
So far it works, the sboat can carry one marine along the coast.
Now the Problem:
doing so the other way round, does not work.
I created a SPECIALUNIT_SBOAT
a copy of SPECIALUNIT_LAND
(I know the AI would probably not use it, I could need a UNITAI_CARRIER_LAND or so)
and gave the
Marine:
The Boat cannot move onto the Tile the Marine is onto (Like Land Units do, entering a boat)
Did I miss something?
Do I have to change the Python scripts somewhere? (by now I do not know how, but I want to learn it anyway)
If yes: WHERE?
Please Help, I got so many more Ideas concerning modern networked and asymetric warfare, but when I can't even do this...
I'm quite new at modding. So far only played around with the Unitinfo.xml.
Now I wanted to create my first new Unit.
I imagined a small/lightweight/inflatable Boat, which can be carried by Marines in order to increase their amphibious abilitys.
The Graphik does not really look good (just a changed .dds from a workboat and made the zoom smaller), but first I want it to work!
I gave the workboat:
Code:
<SpecialCargo>SPECIALUNIT_PEOPLE</SpecialCargo>
<DomainCargo>DOMAIN_LAND</DomainCargo>
<iCargo>1</iCargo>
So far it works, the sboat can carry one marine along the coast.
Now the Problem:
doing so the other way round, does not work.
I created a SPECIALUNIT_SBOAT
Spoiler :
a copy of SPECIALUNIT_LAND
(I know the AI would probably not use it, I could need a UNITAI_CARRIER_LAND or so)
Code:
<SpecialUnitInfo>
<Type>SPECIALUNIT_SBOAT</Type>
<Description>TXT_KEY_UNIT_SBOAT</Description>
<bValid>1</bValid>
<bCityLoad>0</bCityLoad>
<CarrierUnitAIs>
<CarrierUnitAI>
<UnitAIType>UNITAI_CARRIER_SEA</UnitAIType>
<bUnitAI>1</bUnitAI>
</CarrierUnitAI>
</CarrierUnitAIs>
<ProductionTraits/>
</SpecialUnitInfo>[/SPOILER]
and gave the
Marine:
Code:
<SpecialCargo>SPECIALUNIT_SBOAT</SpecialCargo>
<DomainCargo>DOMAIN_SEA</DomainCargo>
<iCargo>1</iCargo>
Did I miss something?
Do I have to change the Python scripts somewhere? (by now I do not know how, but I want to learn it anyway)
If yes: WHERE?
Please Help, I got so many more Ideas concerning modern networked and asymetric warfare, but when I can't even do this...
