transportCost - Resolved -



    • This applies to what? isAir and land units? We have carrierCost for sea...

    • What happens if isLandTransportable is true but transportCost is not set (no attachment) ? does it error or does transportCost have a default value?


  • Admin

    @mahks transport cost applies to all is my understanding. You set the cost of transport for any unit that can transport. Example air transport can only carry para inf. Or land transport like trains in tww can carry 3 if i recall? @Hepps could correct here but the idea is the same since he changed the transport costs of armor and art. Thus armor costs 2 and inf 1 or something like that. So three inf or one armor art or mech and an inf. You get the idea



  • @mahks pretty sure it defaults to zero but I'm not able to test anything right now

    That would mean you could transport as many as you wanted though so idk maybe not. Just have to try it and see what happens



  • @beelee I suspect it would default to 1, but it could not be coded at all (expecting the attachment) and error out.



  • @prastle But it does not apply to sea transport, as we have carrierCost for that, correct?


  • Admin

    @mahks anything that transports should have transport costs. Thus why in old with super carriers you could land a bomber on a carrier if ya wished
    3 fighters or 1 bomber 1 fighter
    it all depends how you write it. Lebowskies Hearts of Iron 2 did that if I recall correctly.


  • Admin

    @prastle to extrapolate further you could theoretically make a tank is air transportable with a super strato fortress 🙂
    or Russian equivalent for a new era map 🙂



  • OK, so all I need now is the answer to the default question:

    What happens if isLandTransportable is true but transportCost is not set (no attachment) ? does it error or does transportCost have a default value?


  • Admin

    @mahks nidea test it out



  • So I should do all the documenting and do the testing too? 😛


  • Admin

    @mahks hehe gd point 🙂



  • Not to mention all this documenting is cutting into my playing time! Grrr Oh where have my priories gone?



  • @mahks I can't test anything till next week. I'll give it a go then if still needed


  • Admin

    @mahks So "isLandTransport" is a bit unique and here is the excerpt from POS2 XML:

    isLandTransport		values: allows the unit to transport "isLandTransportable" on a one-to-one basis, if you have the mechanizedInfantry technology. If "transportCapacity" is set then use "transportCost" and be able to transport multiple units just like sea transports														
    

    So essentially land transports can work in 2 different ways:

    1. Just like sea/air transports using transportCapacity and transpostCost. Example is Total World War.
    2. If "transportCapacity" is not specified on the "isLandTransport" unit then the land transport can transport any "1" unit that has "isLandTransportable" option (ignores any transportCost and can't transport more than 1 unit per land transport). Example is Global 1940 Second Edition.