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

    "Units Cannot Fight" prompt

    Scheduled Pinned Locked Moved Bug Reports
    5 Posts 2 Posters 1.8k Views 2 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.
    • General_ZodG Offline
      General_Zod Moderators
      last edited by General_Zod

      I get this prompt pop up when I click done for combat move phase.

      "Units cannot fight"

      0_1524635407809_BW3_UnitsCanNotFight_Prompt.001.PNG

      The units I am sending are replicating how my depth charges will function.

      attack=0, defense=0, movement=1, first strike=3, isSuicide

      I want them to attack with first strike instead of the normal value so I can set them to only attack submarines. The isSuicide is there because I want them to die automatically after 1 combat round.

      The unit has an offensive capability, but this behavior is ignoring the first strike (aashot) ability.

      It seems that this engine behavior is carried over from before first strikes (aahot) could be used offensively. I wanted to confirm here before I post a bug report in GitHub.

      redrumR 2 Replies Last reply Reply Quote 1
      • redrumR Offline
        redrum Admin @General_Zod
        last edited by

        @general_zod You are probably right though I haven't personally seen this before. A save game would be helpful so I can easily reproduce and then test any fixes. Otherwise I gotta try hacking up a similar unit into a map.

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

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

          @general_zod PR that should fix that behavior: https://github.com/triplea-game/triplea/pull/3402

          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 2
          • General_ZodG Offline
            General_Zod Moderators @redrum
            last edited by

            @redrum

            Here is a save ready to give the prompt by clicking done for the combat move phase.

            The British.Cruisers are stand-ins for the depth charges in this xml. Note the xml in this save is just for testing so ignore any other strange stuff.

            0_1524680092127_bw3_units.cannot.fight_04.25.2018.tsvg

            Here is a link for the game if you don't already have the files.

            https://www.sendspace.com/file/7hf2d2

            Note this earlier functional version is not fully completed, and I never completed the tech model and tech balance. I am moving to a improved map with underwater sea zones and more territories for the version currently on drawing board.

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

              @general_zod Cool, just tested before the change to see the prompt and then after the change I no longer see it. So once that PR is merged you should be able to test it with the latest pre-release.

              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 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