TripleA Logo TripleA Forum
    • TripleA Website
    • Recent
    • Popular
    • Register
    • Login

    Paratroops not working need help with XML

    Scheduled Pinned Locked Moved Player Help
    20 Posts 3 Posters 281 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      craigviau @beelee
      last edited by

      @beelee Sorry for the late late reply i was not home last night.
      But after 5-6 hrs with AI I could never get no matter how many combinations of the tech above to even get any load prompt.

      C 1 Reply Last reply
      Reply Quote 2
      • C
        craigviau @wc_sumpton
        last edited by

        @wc_sumpton

        Totally awesome it worked. I've spent at least 6 hours with AI trying to figure this out. I must have tried 30 to 50 different combinations of the code I listed as it would often say one conflicts with the other or you only need this or that or these 2 or 3 then another set of 3. Have no fear of AI its at least 100 years away from actual Intelligence. Some might say that about me too but if the shoe fits.

        wc_sumptonW 1 Reply Last reply
        Reply Quote 1
        • C
          craigviau @craigviau
          last edited by

          Thanks for the help I got it working with the other fellows instructions.

          1 Reply Last reply
          Reply Quote 1
          • C
            craigviau @beelee
            last edited by

            @beelee Thanks for the help I got it working with the wc_sumpton's instructions.

            B 1 Reply Last reply
            Reply Quote 2
            • wc_sumptonW
              wc_sumpton @craigviau
              last edited by

              @craigviau said:

              Some might say that about me too but if the shoe fits.

              Yea... us 10 and halves are quite a mentally challenged group. 😎

              Cheers...

              1 Reply Last reply
              Reply Quote 2
              • B
                beelee @craigviau
                last edited by

                @craigviau

                Nice you got it working 👍 xml work can be frustrating, unless you were born with a large amount of patience 🙂 I try to look at it as a puzzle anymore, as opposed to wanting to throw my computer down the driveway lol

                PactofSteel2 xml is still the best information source, next to wc 🙂

                1 Reply Last reply
                Reply Quote 2
                • C
                  craigviau @wc_sumpton
                  last edited by

                  @wc_sumpton

                  Holy Smokes Batman. I broke this code somehow. I had it working based on your instructions but I must have changed something later on and its not working again my code is below.
                  If you can be so kind as to help.

                  	<attachment name="unitAttachment" attachTo="Paratroop" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                  		<option name="movement" value="1"/>
                  		<option name="attack" value="1"/>
                  		<option name="defense" value="2"/>
                  		<option name="transportCost" value="8"/>
                  		<option name="artillerySupportable" value="true"/>
                  		<option name="isInfantry" value="true"/>
                  		<option name="isAirTransportable" value="true"/>
                  	</attachment>
                  
                  	<attachment name="unitAttachment" attachTo="Light_Bomber" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                  		<option name="movement" value="6"/>
                  		<option name="attack" value="4"/>
                  		<option name="defense" value="4"/>
                  		<option name="isAir" value="true"/>
                  		<option name='isStrategicBomber' value='true'/>
                  		<option name='canAirBattle' value='true'/>
                  		<option name="airAttack" value="2"/>
                  		<option name="airDefense" value="2"/>			
                  		<option name="isAirTransport" value="true"/>
                  		<option name="transportCapacity" value="8"/> <!-- Can carry 1 paratrooper -->
                  		<option name="bombingMaxDieSides" value="5"/>
                  		<option name="bombingBonus" value="1"/>
                  		<option name='bombingTargets' value='factory_minor:Factory:AirBase:NavalBase'/>
                  	</attachment>
                  
                  wc_sumptonW 1 Reply Last reply
                  Reply Quote 0
                  • wc_sumptonW
                    wc_sumpton @craigviau
                    last edited by

                    @craigviau

                    Everything looks good. Is the 'techAttachment' set for each player?

                    Cheers...

                    C 1 Reply Last reply
                    Reply Quote 1
                    • C
                      craigviau @wc_sumpton
                      last edited by

                      @wc_sumpton

                      Do i just need this set up.

                      <attachment name="techAttachment" attachTo="Finns" javaClass="games.strategy.triplea.attachments.TechAttachment" type="player">
                      <option name="paratroopers" value="true"/>
                      <option name="mechanizedinfantry" value="true"/>
                      </attachment>

                      Regards

                      C 1 Reply Last reply
                      Reply Quote 0
                      • C
                        craigviau @craigviau
                        last edited by

                        I should have said it is set up but maybe there is more code needed?

                        wc_sumptonW 1 Reply Last reply
                        Reply Quote 0
                        • wc_sumptonW
                          wc_sumpton @craigviau
                          last edited by wc_sumpton

                          @craigviau

                          As long as there is a 'techAttachment' for each player that is using 'paratroopers'. If it is still not working, then it is very hard to figure out what the new problem might be with very limited information.

                          Sorry

                          Cheers...

                          C 1 Reply Last reply
                          Reply Quote 1
                          • C
                            craigviau @wc_sumpton
                            last edited by

                            @wc_sumpton

                            There is a techattachment for all players but so be it. crazy that it was working previously.
                            Not sure what I changed. But no worries if you don't know don't sweat it.

                            wc_sumptonW 1 Reply Last reply
                            Reply Quote 0
                            • wc_sumptonW
                              wc_sumpton @craigviau
                              last edited by

                              @craigviau

                              The first post presents a lot of information but is very disjointed. To be of any further assistance I would likely need to see the full xml.

                              Cheers...

                              C 1 Reply Last reply
                              Reply Quote 1
                              • C
                                craigviau @wc_sumpton
                                last edited by

                                @wc_sumpton

                                Here is some of the other code i found related to paratroopers

                                	<property name="Air Transportable Units" value="true" editable="false"/>
                                	<property name="Paratroopers Can Attack Deep Into Enemy Territory" value="true" editable="false"/>
                                	<property name="Paratroopers Can Move During Non Combat" value="true" editable="false"/>
                                	<property name="Air Transportable Units Require Air Base" value="false" editable="false"/>
                                	<property name="Paratroopers Can Only Launch From Own Territories" value="false" editable="false"/>
                                

                                Regards

                                wc_sumptonW 1 Reply Last reply
                                Reply Quote 0
                                • wc_sumptonW
                                  wc_sumpton @craigviau
                                  last edited by

                                  @craigviau

                                  "Paratroopers Can Attack Deep Into Enemy Territory" and "Paratroopers Can Move During Non Combat" deal with airborne and not paratroopers.
                                  The remaining three are user defined properties and should have attachments.

                                  Cheers...

                                  C 1 Reply Last reply
                                  Reply Quote 1
                                  • C
                                    craigviau @wc_sumpton
                                    last edited by

                                    @wc_sumpton
                                    Sorry i don't pop in here often,
                                    I don't know what you mean by airborne verses paratroopers to me its the same?
                                    Also on the last 3 two are false so i don't think i need anything and on the other what is the code to set up the attachment?

                                    Thanks

                                    wc_sumptonW 1 Reply Last reply
                                    Reply Quote 0
                                    • wc_sumptonW
                                      wc_sumpton @craigviau
                                      last edited by

                                      @craigviau said:

                                      I don't know what you mean by airborne verses paratroopers to me its the same?

                                      The airborne is a "techAbilityAttachment" which allows a unit to travel as air without a transporting unit, paratroopers require a transporting unit.

                                      @craigviau said:

                                      Also on the last 3 two are false so i don't think i need anything and on the other what is the code to set up the attachment?

                                      Look for gameProperty with a value set to the property. If there are no attachments with these options, then these properties have been disabled. Since I have no idea what they were designed for there would be no way for me to say they are for.

                                      @craigviau said:

                                      Sorry i don't pop in here often,

                                      No problems take your time.

                                      Cheers...

                                      1 Reply Last reply
                                      Reply Quote 1

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • 1 / 1
                                      • First post
                                        Last post
                                      Powered by NodeBB Forums