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

    What is Player canBeDisabled Used For?

    Scheduled Pinned Locked Moved Map Making
    5 Posts 3 Posters 2.0k 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.
    • redrumR Offline
      redrum Admin
      last edited by redrum

      There is a property in game XML on player called 'canBeDisabled' and defined as:
      <!-- canBeDisabled if true means that the player will skip all of their phases. their delegates will be removed from the game (so triggers will not happen during those delegates either) -->
      <player name="Italians" optional="false" canBeDisabled="false"/>

      When do maps use this property? Is it just for removing player's phases after they are defeated to speed things up? It appears if you uncheck the checkbox on the player selection screen then it sets to Weak AI but you can still change it. If it has no phases then the player type shouldn't matter?

      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 0
      • C Offline
        Cernel Moderators @redrum
        last edited by Cernel

        @redrum Correct. Disabled players have all phases nullified (this may be critical, in some cases; look at "Conquest of the World"). They will also refuse whatever actions requiring acceptance, when assigned to an AI that behaves so, or accept any, when assinged to an AI that behaves so, like Does Nothing. Yes, I believe the main usage is for removing player's phases after they are defeated or for skipping them in case the game can be customised on variable number of players, so that, like, you can play it with 2 to 6 players, without requiring several different games, especially referring to games having a Risk style starting setup (look at "Conquest of the World"), to speed things up, particularly important in case of extensive use of triggers.

        The player type is only for selecting casualties in defence and accepting actions, so that you can set it to some AI or have some human player managing it, maybe following the rules of the game for disabled players.
        For example, say, if you want some disabled players to accept all actions proposed to them, then you probably want to assign them to Does Nothing, as this AI always accepts everything (was set so by Veqryn, possibly under my request, or maybe he decided it on its own, anyways), that is not what other AI would do.

        Short story: I believe everything with that option works fine as it is, especially the behaviour of fully nullifying (not just skipping) any phases, except only that I tend to think a better behaviour for disabled players assigned to AI would be for any to accept any actions, instead of any refusing any (any maps would be still able to follow what they prefer by spelling it out in notes and have an human player taking over the disabled players and do what supposed to). However, if you want, I tend to think you can limit the type options to "Does Nothing" and "Human" only, and I also think that it may make more sense "Does Nothing" being the default, here, instead of "Easy". However, I suggest you consult with Veqryn before making any changes, as there may be reasons if he set "Fodder" instead of "Does Nothing" as defaults, since both were already available options, back then.

        Very short story: I think you should leave all working as it is, except that I suggest the default being Does Nothing, but ask Veqryn first, if any changes (I'm particularly curious why he didn't set the default to Does Nothing himself).

        1 Reply Last reply Reply Quote 0
        • C Offline
          Cernel Moderators
          last edited by

          Also, I guess you already know this, but, just in case, there is a property, namely "Disabled Players Assets Deleted" that it is directly related to the "canBeDisabled" setting, as explained in pos2: "If any players are disabled and unused, then all their units, money, etc, gets deleted at the start of the game during initialization delegate.". I don't know of other properties directly related, but I can't be sure; again, ask Veqryn, in case.

          1 Reply Last reply Reply Quote 0
          • FrostionF Offline
            Frostion Admin
            last edited by

            I think the only map I made that uses this feature is Star Trek Dilithium War.

            I use it as a method of having or not having the Borg join in on the otherwise two alliance fight. So the map can be played with Borg or without, with meaning that they show at the end of the first round and starts to harass everyone.

            Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

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

              @Frostion @Cernel Alright, thanks for the input. I was just thinking when would someone disable a player vs use Does Nothing AI. I'm planning to leave this option as is for now.

              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

              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