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

    Dyeing/Colorizing Unit Images

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    68 Posts 10 Posters 31.3k Views 9 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.
    • LaFayetteL Offline
      LaFayette Admin
      last edited by

      Flip & coloring should be completely independent IMO. We can add a 'flip' ignore later I suppose, so not critical. If it comes to that, I just hope that map makers will request the feature before they add more unit images to work around it.

      I've pondered a bit if unit.transform.mirror.image=true would be any better, but does not necessarily seem so. I think the only thing missing or unclear about 'flip' is that it's a horizontal flip. There can be multiple types of flip, color, orientation, and for orientation multiple kinds.

      Using the value 'horizontal' could potentially add clarity, eg:

      units.transform.flip.Germans=horizontal
      

      The fact that there is no vertical is fine, it's an unsupported configuration that we could add in if needed. That would be a good route to leave open, if we did start allowing a vertical flip, for whatever reason, we wouldn't need an additional property (which would make the property naming even trickier).

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

        @LaFayette I thought about including something about horizontal so that later on vertical flipping could be added more easily. I just couldn't come up with any case where I would want to flip unit images vertically. If someone can think of something then I'm fine adjusting the property.

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

        LaFayetteL 1 Reply Last reply Reply Quote 0
        • LaFayetteL Offline
          LaFayette Admin @redrum
          last edited by

          @redrum I don't think there will be a case for it TBH, so it'd mostly just be for clarity IMO

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

            PR is now merged. Feel free to give it a try in the pre-release and provide feedback!

            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 3
            • W Offline
              wc_sumpton
              last edited by

              @redrum
              Trying this out on 'Invasion_USA'. If I understand how the search of the image works it should be 'nation folder to units folder to images included with TripleA'

              Under the units folder I have only the 'Americans' folder the other nations share the other units. The 'Americans' also share the 'infantry' unit so no 'infantry.prg' in the 'Americans' folder.

              When I run the game the 'Invaders' do share the same units, but the 'Americans' infantry seems to be coming from the TripleA resources.

              If you have time could you check the search order, everything else works great.
              :thumbs_up_medium-light_skin_tone: :thumbs_up_medium-light_skin_tone:

              Cheers...

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

                @wc_sumpton That's correct. It should be first the folders in the map zip (nation, then shared) then the folders in TripleA engine assets (nation, then shared). If you share the map zip then I can take a look.

                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
                • ubernautU Online
                  ubernaut Moderators
                  last edited by

                  not sure why but for some reason i thought triplea was already doing this. 😛

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

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

                    @redrum I suggest the feature as default applying only to the units in main folder, not to any of the ones in the player's folder.

                    For example, if a player would have some called units in its own folder and some in main folder and you set units.transform.flip or units.transform.color, only the units in main folder would be flipped or colourized, while no changes would be made on the ones in the player's folder. I think it would make the most sense, this way.

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