TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Limited battle round

    Scheduled Pinned Locked Moved Player Help
    4 Posts 3 Posters 760 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.
    • Simon WesterlundS Offline
      Simon Westerlund
      last edited by

      Where and how do you limit battle rounds on any map. If it needs to bee coded, in which file should the code be changed?

      TorpedoAT 1 Reply Last reply Reply Quote 0
      • F Offline
        ff03k64
        last edited by

        You will need to change the xml file, it should be located here.

        ~user\triplea\downloadedMaps\mapname.zip\map\games\mapname.xml
        

        I don't remember what it is you need to change, but you can find it in the Pact of Steel 2 xml. That map acts as a tutorial for map making.

        1 Reply Last reply Reply Quote 0
        • TorpedoAT Offline
          TorpedoA @Simon Westerlund
          last edited by

          @Simon-Westerlund
          in every maps xml you find the following lines to determine the rounds for sea, air, land each:

          	<property name="Land Battle Rounds" value="2" editable="true">
          		<number min="-1" max="100"/>
          	</property>
          
          	<!-- Sea Battle Rounds means the number of rounds that a normal Battle goes on for (sea). Default is -1, and if negative, the battle continues forever until 1 side is eliminated. -->
          	<property name="Sea Battle Rounds" value="2" editable="true">
          		<number min="-1" max="100"/>
          	</property>
          
          	<property name="Air Battle Rounds" value="2" editable="true">
          		<number min="-1" max="100"/>
          	</property>
          
          1 Reply Last reply Reply Quote 1
          • Simon WesterlundS Offline
            Simon Westerlund
            last edited by

            Thank you for the reply. I acctually solved it by examining maps that had it in their map options, like "the Great War". Not(!) every map has that code line in it's xml file, but at least as long as the map is based on WW2V2 rules, you can add the option to limit battle rounds by adding the above code lines to the xml files, like so;

            1. Find map in triplea/downloadedMaps/'map name'
            2. in map folder open file map/games/'map name'.xml
            3. find code section <propertyList>
            4. insert following code lines like image below;

            battleroundslimited.png

            Then you should be able to freely tweak battle rounds limit.

            Hope this thread is helpful to others as well

            Happy conquering!

            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
            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums