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

    AI repair logic

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    9 Posts 3 Posters 1.5k 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.
    • ubernautU Online
      ubernaut Moderators
      last edited by

      i've noticed that the AI isn't very good at budgeting repairs it tends to max out repairs even if it cannot build enough units for the capacity it is creating by repairing. Also, it doesn't seem to try to repair non-factories at all.

      "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

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

        @ubernaut Yeah the AI repair logic is very simple and mostly boils down to "repair all factories as much as possible". It can definitely be improved though doesn't have a major impact on most maps I'd say.

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

        ubernautU 1 Reply Last reply Reply Quote 1
        • ubernautU Online
          ubernaut Moderators @redrum
          last edited by

          @redrum i think it def could in almost any map i think anytime when AI is under 40 PU's and significant damage to at least one factory.

          "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

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

            @ubernaut Yeah, I think its more that most maps, you don't see a significant amount of bombing damage. But yeah when it does happen and especially if its a poorer nation then having it spend a good portion of its PUs on repairs when it doesn't need to can be pretty bad.

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

            ubernautU 1 Reply Last reply Reply Quote 0
            • ubernautU Online
              ubernaut Moderators @redrum
              last edited by

              @redrum would it be difficult to add a rule like "check to see if the next PU spent for repair would actually allow AI to build another unit?" i would think a simple limit like that would eliminate 99% of the problem.

              "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

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

                @ubernaut Its not terribly difficult but the challenge is that repair and production are separate phases with repair before purchase. So the AI would need to simulate its purchase with say no repairs and determine if it needs to make repairs to free up more production space. You eventually get into situations on "should I repair this factory to build here as its closer to the front vs build at an undamaged factory a bit further away?" which makes it more complex as well.

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

                ubernautU 1 Reply Last reply Reply Quote 1
                • ubernautU Online
                  ubernaut Moderators @redrum
                  last edited by

                  @redrum hmm i guess i don't really understand how the logic for production really works to begin with. 😛 seems like there should be some way to simply prevent it from wasting PU then not building anything it creates a pretty big hole in the AI's game if you chose to exploit it.

                  "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

                  Captain CrunchC 1 Reply Last reply Reply Quote 0
                  • Captain CrunchC Offline
                    Captain Crunch Banned @ubernaut
                    last edited by

                    @ubernaut the AI is a work in progress!

                    ubernautU 1 Reply Last reply Reply Quote 2
                    • ubernautU Online
                      ubernaut Moderators @Captain Crunch
                      last edited by

                      @Captain-Crunch i know it is 🙂 still remember how inept it was before @redrum came around. 🙂

                      "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

                      1 Reply Last reply Reply Quote 2

                      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