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

    💥 Another World v AI - Official Thread

    Scheduled Pinned Locked Moved Maps & Mods
    thedog
    27 Posts 5 Posters 2.4k Views 5 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.
    • TheDogT Offline
      TheDog @Simon Hibbs
      last edited by

      @simon-hibbs
      Yes the politics flag is superfluous.

      To change all the factions to war, just find and replace all the
      Uncommitted
      to
      War

      but only for the <relationship block of code, about 180 lines, this is easy with Notedpad++ find and replace within a selection block of text.

      	<relationship type="Uncommitted" player1="Aquella" player2="Archenland" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Flemma" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Gilcrest" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Jandice" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Kallela" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Lancia" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Loch_Island" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Lorenzia" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Maflemia" roundValue="1"/>
      	<relationship type="Uncommitted" player1="Aquella" player2="Malliton" roundValue="1"/>
      	<relationship type="War" player1="Aquella" player2="none" roundValue="1"/>
      

      eg. Hopefully your Notepad like editor can do similar.
      5a716b3f-dc7c-446f-955e-c89464f48eb9-image.png

      https://forums.triplea-game.org/tags/thedog
      https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

      Simon HibbsS 1 Reply Last reply Reply Quote 2
      • Simon HibbsS Offline
        Simon Hibbs @TheDog
        last edited by Simon Hibbs

        @thedog I did this for my own, much more primitive attempt at an AI friendly hack. Basically just starting universal war and getting rid of population unit spawning and requirements.

        Is it possible for the politics flag, or any flag to trigger total war or change the default status? Currently I have two variants of my hack, one with politics and the other set to total war.

        What is it about unit costs that makes it easier for the AI to make reasonable decisions? I can see how stacking limits might help, or is that motivated differently?

        TheDogT 1 Reply Last reply Reply Quote 1
        • TheDogT Offline
          TheDog @Simon Hibbs
          last edited by

          @simon-hibbs
          Is it possible for the politics flag, or any flag to trigger total war or change the default status?
          Yes, you can write a Trigger that will execute a sequence of political changes.
          As an example in 1941 Global Command Decision it has this as an option
          9e80a4c3-2d41-49f3-b759-1f3928c7370b-image.png
          But you will need something like

          <attachment foreach="$All-Players$" name="triggerAttachment_Notify__USA-Mexico_@All-Players@" attachTo="@All-Players@" javaClass="TriggerAttachment" type="player">
          		<option name="conditions" value="conditionAttachment_Notify__USA-Mexico_@All-Players@"/>	<!-- see notification.properties -->
          		<option name="notification" value="Notify_USA-Mexico_@All-Players@"/> 
          		<option name="relationshipChange" value="USA:Neutrals:Open-Border:Closed-Border"/>
          		<option name="players" value="@All-Players@"/>
          		<option name="when" value="before:@All-Players@CombatMove"/>
          	</attachment>
          

          Stacking rules just forces the player and the AI from overstacking and doing crazy things like stacking 42 Tactical Bombers in Brazil for no good reason.

          Unit cost is complicated and is clever.
          Units are grouped into Fodder, Attack, Defence for Land, Sea and Air groupings. Its more complicated but you get the idea.

          One unit that costs too much or too little will skew the purchase formula.

          For a simple PU cost I use Attack+Defence+Movement, for most of my maps or a variant. You must add in Support variables and other unit bonuses.

          https://forums.triplea-game.org/tags/thedog
          https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

          RogerCooperR 1 Reply Last reply Reply Quote 3
          • RogerCooperR Offline
            RogerCooper @TheDog
            last edited by

            @thedog It doesn't hurt to create max build limits for units to prevent overuse by humans or AI.

            TheDogT RogerCooperR 2 Replies Last reply Reply Quote 3
            • TheDogT Offline
              TheDog @RogerCooper
              last edited by

              Latest version v010 ready for download.

              • Ship PU prices redone
              • Merchant Ship renamed to Convoy
              • Help for the AI to buy multi turn ships
              • Ship hulls have a move of 2, so the AI will buy them, but are stopped from moving, see below
              • New territory sea used to stop the ship hulls from moving

              Link to 1st post that has;
              Latest map download link
              https://forums.triplea-game.org/topic/4229/another-world-v-ai-official-thread

              https://forums.triplea-game.org/tags/thedog
              https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

              wc_sumptonW 1 Reply Last reply Reply Quote 2
              • wc_sumptonW Offline
                wc_sumpton @TheDog
                last edited by

                @thedog

                Lines 42160 and 42192 should read '$All-Air-Targetable$' as they say '$All-Air$-Targetable' the map does not load.

                Cheers...

                TheDogT 1 Reply Last reply Reply Quote 3
                • TheDogT Offline
                  TheDog @wc_sumpton
                  last edited by

                  Latest version v015 ready for download.

                  • Air units are cheaper
                    .
                  • Ship PU prices redone
                  • Merchant Ship renamed to Convoy
                  • Help for the AI to buy multi turn ships
                  • Ship hulls have a move of 2, so the AI will buy them, but are stopped from moving, see below
                  • New territory sea used to stop the ship hulls from moving

                  .
                  Link to 1st post that has;
                  Latest map download link
                  https://forums.triplea-game.org/topic/4229/another-world-v-ai-official-thread

                  https://forums.triplea-game.org/tags/thedog
                  https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                  TheDogT 1 Reply Last reply Reply Quote 2
                  • TheDogT Offline
                    TheDog @TheDog
                    last edited by

                    @Simon-Hibbs
                    If you are having problems with the latest versions of TripleA (as I am)

                    For AI testing Im using
                    https://github.com/triplea-game/triplea/releases/tag/2.7.15256

                    Currently I have 7 versions of TripleA on my PC
                    This is old but is still valid, if you did not know how to do it 😉
                    https://forums.triplea-game.org/topic/3724/how-to-have-triplea-2-5-2-6-installed-at-the-same-time

                    https://forums.triplea-game.org/tags/thedog
                    https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                    Simon HibbsS 1 Reply Last reply Reply Quote 3
                    • Simon HibbsS Offline
                      Simon Hibbs @TheDog
                      last edited by

                      @thedog Apologies, I have limited time for gaming and such at the moment. Visiting family. Thanks for the info, I'll take a look in the new year, or earlier if I get the chance.

                      1 Reply Last reply Reply Quote 2
                      • RogerCooperR Offline
                        RogerCooper @RogerCooper
                        last edited by

                        @rogercooper When I downloaded this into my downloaded maps folder, it did not appear in the selection list. I resolved it by eliminating the triple folder situation. I think the map.yml file was too deeply buried.

                        TheDogT 1 Reply Last reply Reply Quote 1
                        • TheDogT Offline
                          TheDog @RogerCooper
                          last edited by

                          @rogercooper
                          Thanks I have reposted the zip in the 1st post.

                          https://forums.triplea-game.org/tags/thedog
                          https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                          1 Reply Last reply Reply Quote 0

                          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
                          • 2
                          • 1 / 2
                          • First post
                            Last post
                          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums