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

    Switching out default units

    Scheduled Pinned Locked Moved Maps & Mods
    41 Posts 6 Posters 12.7k 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.
    • redrumR Offline
      redrum Admin @Stohrm
      last edited by redrum

      @Stohrm So where a unit gets placed within a territory is based on 2 things:

      1. The unit placements defined for each territory (where and the order of them). This also is then used for unit overflow.
      2. Where the unit is sorted to which I think is based on some of its properties and the order in the XML file: https://forums.triplea-game.org/topic/681/group-and-sort-units-onto-placements-logically

      Grouping/sorting:

      1. Unit owner: territory owner, not at war with territory owner, player order in XML
      2. Unit type: 0 movement, can't combat move, sea, air if sea territory, land, air if land territory
      3. Within each of those groups sort the units by XML order in UnitList

      So for placing say the harbor in the first slot of a territory, as long as its owned by the territory owner, has 0 movement, and is the first unit in the unit list then it should appear in the territory's first placement slot.

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

      C StohrmS 2 Replies Last reply Reply Quote 1
      • C Offline
        Cernel Moderators @redrum
        last edited by

        @redrum said in Switching out default units:

        So for placing say the harbor in the first slot of a territory, as long as its owned by the territory owner, has 0 movement, and is the first unit in the unit list then it should appear in the territory's first placement slot.

        @redrum I wonder if this is intended, and I want to add that, from testing, I believe that movement 0 units that cannot combat move are prioritized over movement 0 units that can combat move. So I think he should also look out that either all movement 0 units can combat move or at least the harbour cannot.

        It would probably be good to exactly document this matter somewhere official, but I think it doesn't belong to pos2, since it is purely a view matter.

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

          @Stohrm I'm starting thinking you are using a very old version of TripleA, maybe 1.8.0.9. What one I wonder?

          StohrmS 1 Reply Last reply Reply Quote 2
          • StohrmS Offline
            Stohrm @redrum
            last edited by

            @redrum The issue was that I hadn't upgraded to the latest version of Triple-A. I just did that and it works fine. That having been said (and achieved): I've been giving it a lot of thought and was wondering if the Harbour should be considered a naval unit as opposed to a land unit?

            Think about it and take Novgorod for an example: It only has one harbor; but it has two sea zones that are not attached to each other. The map I'm currently revamping still shows it in the midst of the territory; but I gather that it's effect will apply to either sea zone (and it really shouldn't).

            It's a tough call, though; as one sea zone is often attached to two territories and they may or may not belong to the same faction. So, perhaps there needs to be a new distinction called "coastal" that would apply to harbours , shore batteries, dry-docks and other such structures.

            It might be worth exploring. For now, though, I thank you. Even though you didn't say to check the version I've been running; your response did help me to realize that I needed the updated engine.

            SK

            1 Reply Last reply Reply Quote 1
            • StohrmS Offline
              Stohrm @Cernel
              last edited by

              @Cernel said in Switching out default units:

              @Stohrm I'm starting thinking you are using a very old version of TripleA, maybe 1.8.0.9. What one I wonder?

              Yes, I had just realized that as well. Thank you.

              SK

              1 Reply Last reply Reply Quote 0
              • HeppsH Offline
                Hepps Moderators @Joe Pants
                last edited by

                @Joe-Pants I have a copy of your unit folder.

                "A joyous heart sours with the burden of expectation"
                Hepster

                Joe PantsJ 1 Reply Last reply Reply Quote 0
                • Joe PantsJ Offline
                  Joe Pants @Hepps
                  last edited by

                  @Hepps I still have it as well; is there a new group repository?

                  HeppsH C 2 Replies Last reply Reply Quote 0
                  • HeppsH Offline
                    Hepps Moderators @Joe Pants
                    last edited by

                    @Joe-Pants Not sure. One of the technocrats may know.

                    "A joyous heart sours with the burden of expectation"
                    Hepster

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

                      @Hepps @Joe-Pants I believe this is the new repository we are using for map maker unit images: https://github.com/triplea-game/map-maker-assets

                      I think we are trying to consolidate all the various map maker links here: https://forums.triplea-game.org/topic/918/map-maker-resources

                      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
                        Cernel Moderators @Joe Pants
                        last edited by

                        @Joe-Pants said in Switching out default units:

                        @Hepps I still have it as well; is there a new group repository?

                        Here are the relevant links:
                        https://forums.triplea-game.org/topic/918/map-maker-resources
                        Here it is the one you are asking for:
                        https://github.com/triplea-game/map-maker-assets
                        Here it is the old one, for the units:
                        https://sourceforge.net/projects/tripleamaps/files/developer resources/units/
                        Are your old units images in there, or were you asking for something else?

                        Going back on topic, I suggest you share your map customization of WAW as a mapskin. This would also make much easier deciding what possibly to integrate into the original skin itself.

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