How to load airtransports?



  • Hi all!

    I am trying to figure out how to load air transports. I am making a mod, based off of WaW 1940, and, I cannot seem to figure out how to load them. I also tried in another map, WW2 1941 v3, but I still couldn't figure it out. Here is my code:

    </attachment>
        <attachment name="unitAttachment" attachTo="Paratrooper" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
            <option name="movement" value="1"/>
            <option name="attack" value="2"/>
            <option name="defense" value="2"/>
            <option name="transportCost" value="2"/>
            <option name="isAirTransportable" value="true"/>
        </attachment>
        <attachment name="unitAttachment" attachTo="AirTransport" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
            <option name="movement" value="4"/>
            <option name="attack" value="1"/>
            <option name="defense" value="0"/>
            <option name="transportCapacity" value="2"/>
            <option name="isAir" value="true"/>
            <option name="isAirTransport" value="true"/>
    

    Anyways, did I mess the code up? I am new to TripleA modding, but I used to mod Rome Total War all the time back in the 2000's...

    Any help would be greatly appreciated, tried the search bar, tried google, nothing useful... Thanks! 🙂


  • Moderators

    Hi @AprilForever

    Make sure you have the "paratroopers" tech turned on for each player in "techAttachment".

    <attachment name="techAttachment" attachTo="Russians" javaClass="games.strategy.triplea.attachments.TechAttachment" type="player">
    <option name="techCost" value="5"/>
    <option name="superSub" value="false"/>
    <option name="jetPower" value="false"/>
    <option name="shipyards" value="false"/>
    <option name="aARadar" value="false"/>
    <option name="longRangeAir" value="false"/>
    <option name="heavyBomber" value="false"/>
    <option name="improvedArtillerySupport" value="false"/>
    <option name="rocket" value="false"/>
    <option name="paratroopers" value="false"/>
    <option name="increasedFactoryProduction" value="false"/>
    <option name="warBonds" value="false"/>
    <option name="mechanizedInfantry" value="false"/>
    </attachment>


  • Moderators

    @AprilForever The other thing you want to look at depending how you want to deal with things is looking in your properties... and playing around with these two settings...

    <property name="Paratroopers Can Move During Non Combat" value="true" editable="true">
      <boolean/>
    </property>
    <property name="Paratroopers Can Attack Deep Into Enemy Territory" value="false" editable="true">
      <boolean/>
    </property>


  • Thanks so much! 🙂



  • @beelee Thanks so much! 🙂



  • @AprilForever I have bad news for you, it isn't April right now!


  • Moderators

    @ff03k64 said in How to load airtransports?:

    @AprilForever I have bad news for you, it isn't April right now!

    Think it just depends on ones frame of mind. I know some people still living in th 60s 🙂



  • @beelee said in How to load airtransports?:

    @ff03k64 said in How to load airtransports?:

    @AprilForever I have bad news for you, it isn't April right now!

    Think it just depends on ones frame of mind. I know some people still living in th 60s 🙂

    Unfortunately when i look out my window right now, it most definitely isn't April! 😛


  • Moderators

    @ff03k64 yea closer to February where I'm at lol


Log in to reply