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

    AI Development Discussion and Feedback

    Scheduled Pinned Locked Moved AI
    316 Posts 32 Posters 431.5k Views 30 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.
    • redrumR Offline
      redrum Admin @zlefin
      last edited by redrum

      @zlefin Correct, at a high level it first goes through an iteration of determining which territories to attack then updates enemy counter attacks based on that reduced list of territories then decides which units to actually use for each attack (and potentially removes some more attacks).

      If I recall correctly, submerge is treated essentially just like any other retreat where it tries to determine if it has positive TUV for the remaining battle and if not then submerge.

      Oh and I just ran a quick test to validate my theory by removing the UK bomber which then gives these results:

      Germany Attack Options After Removing Can't Attack Territories:
      [Southern Russia, Western Russia, SZ 10 North Sea, Northern Russia, SZ 16 North Atlantic, SZ 18 West Atlantic, Sweden, SZ 4 Denmark Straight, SZ 9 North Atlantic, SZ 13 Gulf of St Lawrence, SZ 7 Barents Sea, Leningrad, Switzerland, Spain, Caucasus, SZ 23 West Mediterranean, SZ 2 Labrador Sea, SZ 37 Caribbean Sea, Finland, SZ 17 English Channel]

      Enemy Counter Attacks on Western Russia: [armour owned by Russians, armour owned by Russians, armour owned by Russians, infantry owned by Russians, infantry owned by Russians, infantry owned by Russians, infantry owned by Russians, tactical_bomber owned by Russians, bomber owned by Russians, fighter owned by Russians, tactical_bomber owned by Russians, fighter owned by Russians]

      German attacks after removing the UK bomber:
      0_1520798479041_797fcfb8-27a6-4eb2-83fc-9af44a09ed80-image.png

      TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

      1 Reply Last reply Reply Quote 0
      • redrumR Offline
        redrum Admin @zlefin
        last edited by redrum

        @zlefin I looked at the code and I think after the enemy turn order changes I mentioned above, the territoriesToCheck needs to be set to ensure the potential territories to attack are all checked for all enemies. I did some testing and updating that seemed to fix the max enemy attackers issue and not cause any side effects. Here is the PR: https://github.com/triplea-game/triplea/pull/3271

        This can be tested with the latest pre-release: https://github.com/triplea-game/triplea/releases/tag/1.9.0.0.9743

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

        1 Reply Last reply Reply Quote 1
        • C Offline
          Cody Young
          last edited by Cody Young

          I don't know that anyone cares about what I have to say and I hope I am posting this in the right place, but for the first time since I discovered Triple A I find it utterly unenjoyable. Entirely due to the AI.

          I have been playing for many years, ever since I found it on Sourceforge, but only single player. My preference is toward World at War (or before that, New World Order), though I think I have tried pretty much every map which has been offered. Some are better than others. Ironically, the best single player experience for me currently has been Greyhawk, which I have absolutely no interest in, but which is immensely fun to play and very well balanced while still retaining its challenge.

          The AI has always been progressively improving. I remember when Moore N Able Russia was all bombers and infantry, or the US would just conscript fleets of Patrol Boats to swarm the Atlantic. They were things which were effective, sometimes brutally so, though really quite silly . .But currently, World of War as it exists now is just. . .Well its a nightmare..

          Hard AI doesn't, as near as I can tell, carry any additional strategic sophistication, but rather just gives more favorable rolls (even with low luck set, and I do hate low luck since that favors the AI calculations). France, rather than folding in six months, cannot be taken before turn four (I used to be able to take it in two), and if the AI is in charge of Germany (even on Hard) sometimes it won't fall at all.The Dutch and Australians can practically take out Japan's naval forces all by themselves, with only token assistance from the British and none at all from the Americans. In fact, if America does nothing, the Axis powers are defeated entirely within about twenty turns. There is never, and I mean absolutely never, a point at which Britain appears distressed, let alone pressed anywhere on the globe. Japan used to be poised for a Pearl Harbor strike even if it was somewhat out of sync with the setting, but now that is virtually impossible. Even if one commits everything within reach, it is a failure more often than not, and even when it is successful the next turn sees every ship destroyed. It is little wonder why the AI will not do it on their own, and really, an early Pearl Harbor strike is no more anomalous than the US conquering South America, so why not allow what is a trademark moment in the war.

          I like a challenge. it is the reason I usually play the Axis, but this goes beyond merely being disadvantaged. I have played games in the past as Finland or China where through patience and careful planning I could tip the scales of victory for my side, but it was always a struggle. That fine balance is no longer present in the game. I don't know why, and wish I could offer something more helpful that these feeble observations, but I sorely miss the game I used to love so I am just offering you what I have.

          Also, a personal annoyance I have always harbored but never felt particularly inclined to mention (though I may as well while I am here). . .I absolutely loathe how AI allies will sweep in and steal territories I have just barely lost (or just opened up access to through a pressed engagement) before I have a chance to (re)claim them. Seeing checkerboard islands of other nations in the heart of my territory bugs the, uh daylights, out of me. I realize they are opportunistic and tactically make some sense, but that frequent siphoning of IP is like death by a thousand cuts since their 'help" is otherwise pretty nonexistent. I will have Italy, Romania and Finland spilling through breaches I open, to claim territories they can't hold, while the British cross up through Turkey without any concern whatsoever from them. Ideally, Romania and Italy should be concentrating wholly upon Africa and the Middle East, leaving Russia to Germany. Italy can barely make headway in Africa as it is and has absolutely no chance of holding it against the Americans, its even worse when they seem to ignore the continent completely.

          Anyway, this sounds like a lot of griping, mostly because it is, but for many years I have been a loyal if silent fan and I really do appreciate all the work you guys have put into this and hope to see good things going forward. The way I figure it though, you can't fix problems you don't know about.

          C 1 Reply Last reply Reply Quote 0
          • C Online
            Cernel Moderators @Cody Young
            last edited by

            @cody-young I've never played World At War, but, aside from the AI, Yamamoto can attack 91, on round 1, with 5 Submarine, 1 Destroyer, 4 Fighter, 1 Bomber.
            With Low Luck, taking Destroyer first, then Submarine, then Fighter, this is, on average, 1 Bomber, 4 Fighter and 0.67 Submarine surviving.
            If you take Fighter before Submarine, you would have 1 Bomber, 5 Submarine and 0.33 Fighter surviving; tho you don't want to do that (just saying it gives you some more safety, if rolls are bad).
            Then, you can have the Fighters land on carriers in 96 (easily safe) or 104 (can be made safe with some effort).
            Just remember to have 1 land unit where the bomber is going to land (Kwajalein or Jaluit).

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              Cody Young @Cernel
              last edited by

              @cernel I didn't say it was impossible, but anything which survives that strike is annihilated the next turn by outlying American ships and aircraft. The AI won't even attempt a Pearl Harbor strike, and I really do think that is telling.

              C 1 Reply Last reply Reply Quote 0
              • C Online
                Cernel Moderators @Cody Young
                last edited by

                @cody-young Yeah, you can't sit in Pearl Harbor. Anything that attacks it and stays there is due to be destroyed (so, try to save air units). Still, not doing that attack is a really bad choice, and the AI has a big problem, if does it anything less than 100% times.

                C 1 Reply Last reply Reply Quote 0
                • C Offline
                  Cody Young
                  last edited by Cody Young

                  I mispoke, when I said next turn, I should have said before your next turn. Japan does not even have the opportunity to move anything out of Pearl Harbor. It is destroyed by the Americans at the end of that same round.

                  And I agree, Pearl Harbor should always occur. . .But I think the two World at War offerings are set in 1939 and 1940 respectively, which would make the occurrence somewhat incongruent so maybe it was left out of the AI priority tasks on purpose 😄

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cody Young @Cernel
                    last edited by

                    @cernel You know it never occured to me it may just be a problem on my end. Maybe something on my side might be corrupted. Let me try and fresh install and see what happens. My apologies in advance if I just wasted your time.

                    C 1 Reply Last reply Reply Quote 0
                    • C Online
                      Cernel Moderators @Cody Young
                      last edited by

                      @cody-young You may want to take a look at the latest savegame of this PBF:
                      https://forums.triplea-game.org/topic/622/waw-charlesthescot-vs-wirkey
                      Those players are very experienced on the map.
                      The Yamamoto player made the very interesting opening of also taking Wake and Midway round 1, that allows sitting in 88 Sea Zone.
                      You can see, in that savegame he didn't even send the Bomber in 91, tho that is very risky, and most people usually send the Bomber too in 91, as per what I said, and regroup in 96 or 104.
                      I'm guessing CharlestheScot did that for the fun of trying something uncommon, but I guess it is a reasonable risk.

                      The WaW map is actually anachronistic: Europe is late 1939, but without the non-aggression pact, so it is kind of mid 1941 in the east too, while China is 1937 and Pacific is december 1941. That was just what the mapmaker preferred.

                      I would agree that the AI doesn't look good at playing WaW, by just letting it playing and watching it, but I'm not a player. It also looks like it gets distracted by Neutral (like Switzerland) too much. I think @redrum didn't get a lot of feedback on the WaW map with AI, to fine tune it.

                      C 1 Reply Last reply Reply Quote 1
                      • C Online
                        Cernel Moderators @Cody Young
                        last edited by

                        @cody-young Actually, I didn't mean that I saw the AI doing it or not. I would be surely surprised to se a human player not doing it.

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          Cody Young @Cernel
                          last edited by

                          @cernel How would I upload my own save like that for review. Because I just ran everyone on hard AI, and in my game, Japan ignores Pearl Harbor complete. I am willing to accept that my gamefiles may have been corrupted, but I would feel better being able to prove I am not a madman 😄

                          C 1 Reply Last reply Reply Quote 0
                          • C Online
                            Cernel Moderators @Cody Young
                            last edited by

                            @cody-young Click on this thing: 0_1520826249690_upload.png

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              Cody Young
                              last edited by

                              0_1520826410812_test.tsvg

                              So this is for World At War 1940, if that distinction makes a difference.

                              C 1 Reply Last reply Reply Quote 0
                              • C Online
                                Cernel Moderators @Cody Young
                                last edited by

                                @cody-young Of course, "WAW" and "WAW 1940" are two different games. The fact that they are the same map (share the same skin) doesn't mean much, so you should always be sure to clarify which one you are referring too, just like if they were two different maps. I'm sorry, I assumed that you meant "game", when you said "map".

                                Well, "WAW 1940" is really a question mark, since I never see anyone playing it. I just ran the battlecalculator, I see there is a 100% Low Luck with +19 TUV swing and 2.67 Fighter left, sending 6 Fighters.
                                That is probably a terrific risk with dice.
                                Maybe it is good to sacrifice a Carrier, to get some better odds.
                                But if you clean 91, then you should be able to retreat the surviving air to 96 safely, as, for the Americans, only 1 Bomber and 3 Fighter reach, there, but I see attacking 91 on round 1 might be not a must, there; and surely much less appealing than in the original game (of the two games, "WAW" is the original and "WAW 1940" is the mod). Hard to say for me, not having played the map.
                                We would need the original game creator (ice) to consider the situation, or at least some reliable players of the game, to tell if WAW 1940 needs to be fixed, but I doubt we will, as I don't believe this game has a playerbase.
                                If you have setup changes proposals for "WAW 1940", you can open a topic for it. But I'm not sure if @redrum would review them, like he would do for the other game of the map? Let's wait what he has to say on the matter, I guess.

                                C 1 Reply Last reply Reply Quote 1
                                • C Offline
                                  Cody Young @Cernel
                                  last edited by

                                  @cernel Ah alright man. Thanks for your help. I guess I will wait to see if there is a reply here and make a specific post otherwise. Thanks for all your assistance though, I do appreciate it.

                                  C redrumR 2 Replies Last reply Reply Quote 0
                                  • C Online
                                    Cernel Moderators @Cody Young
                                    last edited by

                                    @cody-young You're welcomed (to the forum too).

                                    1 Reply Last reply Reply Quote 1
                                    • redrumR Offline
                                      redrum Admin @Cody Young
                                      last edited by redrum

                                      @cody-young So feedback on maps or the AI is always welcome. You seem to touch on a number of different points in your posts so its a bit hard to follow.

                                      If you are looking to have a discussion about WaW or WaW40 balance/strategy/etc then this probably isn't the right thread to do so in. That appears to primarily be what you've discussed with @Cernel so far. I'm not an expert at either WaW or WaW40 so can't add much there.

                                      If you have feedback on the AI then this would be a good place to discuss it. Generally, its best to have a more specific conversation on AI moves/purchases and having a save game to look at. WaW is a fairly large map which gives the AI some challenges but its also a map that in order for the Axis to be competitive the first few rounds are fairly scripted in attacks that need to take place. Due to that map design, the AI plays the Allies much better than the Axis (as do most non-expert players). I would recommend you give the AI some small bonuses to income and probably a bit more for Axis than Allies to make a more competitive game.

                                      If you have specific save games where you think the AI played particularly poorly or you'd like to better understand why it did something then I'm glad to take a look at those as well.

                                      TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                                      C 1 Reply Last reply Reply Quote 2
                                      • Z Offline
                                        zlefin Moderators
                                        last edited by zlefin

                                        I don't think i'm gonna get to test that new version redrum, I uninstalled all my versions, cleared the map and saves directory, and did a fresh install of 9743 with fresh downloads of the maps and i'm still getting that error.
                                        (I'm not gonna clutter this thread with anymore of this unrelated to ai bug, just wanted to let ya know I can't be testing that ai fix due to it)

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          Cody Young @redrum
                                          last edited by

                                          @redrum Thank you brother. I will go through a few playthroughs and see if I can arrive at more specific recommendations before getting back to you. It may take a few weeks for me to narrow down what is bothering me since I don't know what I am doing and want to make sure anything I site is demonstrable.

                                          This really is my favorite map though, so I appreciate all of this immensely and am happy to help.

                                          Just one question. How does the AI distinguish between priorities, are they hardcoded, or is there a mechanism for weighing variables?

                                          redrumR 1 Reply Last reply Reply Quote 0
                                          • redrumR Offline
                                            redrum Admin @Cody Young
                                            last edited by redrum

                                            @cody-young Currently, AI priorities are all generic and dynamic for all maps. There isn't any map specific AI configuration yet but its something I want to add in the future. For example, in terms of Germany moving in WaW turn 1 it mostly sees Paris as the number 1 objective for most of its units since its the closest factory then secondarily the Russian factories/capital. The way the AI tends to see it is each factory/capital radiate strategic value which diminishes the further away from it. So each unit tends to try to move towards increasing strategic value.

                                            @zlefin Can you create an github issue here so we can avoid cluttering this thread for debugging your error: https://github.com/triplea-game/triplea/issues. Does the error occur on other maps as well or just BW2: BoP?

                                            TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                                            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
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 15
                                            • 16
                                            • 6 / 16
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums