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

    How to change unit appearance?

    Scheduled Pinned Locked Moved Map Making
    13 Posts 3 Posters 1.6k 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.
    • C Online
      Cernel Moderators
      last edited by

      If you didn't yet, read this:
      https://github.com/triplea-game/triplea/wiki/Map-and-Map-Skin-Making

      Then feel free asking questions here.

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

        @Cernel Actually, that documentation is quite obsolete, but I'm not aware there is anything better around. You'll have to collocate it correctly yourself, I suppose. For example, there is not anymore a "maps" folder where the program is installed, or anywhere else, and you should change that with your "downloadedMaps" folder, wherever it is.

        1 Reply Last reply Reply Quote 1
        • jkprinceJ Offline
          jkprince
          last edited by

          I went into the units folder and added in one of my drawings (edited to be the right size and with a transparent background) but I played and nothing had changed. What do I do?

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

            @JOSEPH-PRINCE You should really do this by making a mapskin for the map. Otherwise, you need to substitute your image to the same named image you want to change.

            Also be sure to close and reopen TripleA, as I believe images are kept in memory in some places, otherwise (a strange behaviour that I've reported a few times but has never been fixed).

            1 Reply Last reply Reply Quote 1
            • jkprinceJ Offline
              jkprince
              last edited by

              I got it! But it doesn't look quite right.
              hmm.PNG

              1 Reply Last reply Reply Quote 0
              • jkprinceJ Offline
                jkprince
                last edited by

                How do i fix the unit scale? I don't know what the correct scaling for the units are.

                C PantherP 2 Replies Last reply Reply Quote 0
                • C Online
                  Cernel Moderators @jkprince
                  last edited by

                  @JOSEPH-PRINCE All images are drawn from "place" coordinates on their top-left corner. In theory, every map should make sure that all its units images have the same dimensions (a lot of maps, and even the TripleA assets, don't, however), which in turn should exactly correspond to what defined in the map.properties file for the units.width and units.height.

                  Long story short, if the map is decently made to start with, look at the map.properties file and be sure that your image has the pixels dimensions defined in the units.width and units.height entries. And, no, you should not add bigger or smaller images, unless you redo the "place" file too and modify all units to have the same dimensions, as well.

                  1 Reply Last reply Reply Quote 1
                  • PantherP Offline
                    Panther Admin Moderators @jkprince
                    last edited by Panther

                    @JOSEPH-PRINCE Unfortunately the Global map.properties file does not have that information included. But you can easily see from the images in the map's unit-directories that most of them are 48x48 pixel.

                    Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

                    C 1 Reply Last reply Reply Quote 2
                    • C Online
                      Cernel Moderators @Panther
                      last edited by

                      @Panther Right, default is 48 pixels in both cases, if not specified (I would always).

                      1 Reply Last reply Reply Quote 1
                      • jkprinceJ Offline
                        jkprince
                        last edited by

                        Thanks for the help you two! It looks great now and I think I got the hang of it!
                        yay2.PNG

                        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