Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Flags for units not showing

    Map Making
    4
    15
    443
    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.
    • VictoryFirst
      VictoryFirst last edited by Panther

      I have Flag Display set to small, but for some reason the flags are not showing for some units.

      ed4832ca-e0e6-4640-981a-2f67bd85b550-image.png

      The 1-supply unit in the middle has no roundel indicating its owner. Does anyone know why that is and how to fix it? The 1-supply is a unit image I created myself. The other ones come from World At War.

      TheDog 1 Reply Last reply Reply Quote 2
      • TheDog
        TheDog @VictoryFirst last edited by

        @victoryfirst
        Is the 1-supply unit in the units folder? (but not in the faction/nations folder)

        If so, try 1-supply is in each faction/nations folder.

        1 Reply Last reply Reply Quote 2
        • VictoryFirst
          VictoryFirst last edited by

          Yes the 1-supply is in each player's folder (Americans, Germans, etc.)

          B 1 Reply Last reply Reply Quote 1
          • B
            beelee @VictoryFirst last edited by

            @victoryfirst

            Idk exactly how it all works but there are two Flag folders. One in the Big Triplea in assets but I think that's just a hardwired triplea thing.

            The other is in map, in your map of the downloaded game. You will need small and large, as well as just the flag name.

            Checkout how Changer does it in EXP.

            Idk where else you could have gone wrong, but doesn't mean you might not have 🙂

            1 Reply Last reply Reply Quote 2
            • VictoryFirst
              VictoryFirst last edited by

              I think the issue is with the units because it's showing for other units just fine, just not the ones that I made myself. It's also not showing for the sea mine images, which I took from WWI 1914. Perhaps that one was also self-made?

              Idk the World At War units are probably self made too.

              Maybe the unit image is too big? I have maxed out the image in the 48x48 space but when I look at other units there is still some room around the edges.

              TheDog 1 Reply Last reply Reply Quote 1
              • TheDog
                TheDog @VictoryFirst last edited by TheDog

                @victoryfirst
                I do not know how the mini flags work...

                But , below is a screen shot from 1941 GCD
                All the non moving units do not have a mini flag;
                Bunker
                Oil-Field
                Industry-Med

                So is this your commonality too?

                05f8c439-c9ac-46de-9bc0-d0ab9409495e-image.png

                VictoryFirst 1 Reply Last reply Reply Quote 3
                • VictoryFirst
                  VictoryFirst @TheDog last edited by

                  @thedog

                  You hit the nail on its head... the supply units indeed have 0 movement and therefore have no flag showing. Thank you, that makes sense and I did not know that!

                  Since supply in this game can only move when transported by a truck, what would be the best way to solve this? Is there a way to give the supply a movement value but not allow it to move? Or should I just add a flag to the unit image itself?

                  TheDog W 2 Replies Last reply Reply Quote 2
                  • TheDog
                    TheDog @VictoryFirst last edited by TheDog

                    Give 1-Supply a move 1 and give terrain effect to the territory of;
                    <option name="movementCostModifier" value="1-Supply" count="1"/>

                    But this is a lot of extra code as each territory will need the effect.

                    .
                    Yes, put the mini flag on the 1-Supply unit, as that might achieve the same effect?

                    B 1 Reply Last reply Reply Quote 3
                    • B
                      beelee @TheDog last edited by

                      @thedog said in Flags for units not showing:

                      Yes, put the mini flag on the 1-Supply unit, as that might achieve the same effect?

                      Yea that's probably the easiest. Of course it won't work with Large flags.
                      You might want to save as is also and throw it in misc or somewhere for those that don't use flags.
                      They can then switch it out.

                      1 Reply Last reply Reply Quote 3
                      • W
                        wc_sumpton @VictoryFirst last edited by

                        @victoryfirst

                        This would be an easy fix, since it is the same problem as with the Active Units and Move Selection. A PR was submitted but... So, I doubt that a fix for this would be accepted.

                        Any who, have fun! 😁

                        Cheers...

                        B 1 Reply Last reply Reply Quote 3
                        • B
                          beelee @wc_sumpton last edited by

                          @wc_sumpton

                          Can you post your changes that haven't been accepted to a different git repo so that people can dl it and use it separately from triplea ?

                          It seems that testing is the hang up. I don't understand how java works but just playing the game seems like good testing to me 🙂

                          W 1 Reply Last reply Reply Quote 0
                          • W
                            wc_sumpton @beelee last edited by

                            @beelee said in Flags for units not showing:

                            It seems that testing is the hang up.

                            LoL. These were not rule changes, they did not change the way the game was played. They updated how units were selected for display. How do you test for display changes?

                            Update for the Active Units Scroller would show units on transports that can be unloaded (which seems to me to be a no brainer). Would also show units which may receive movement/could be transported even if the movement were zero.

                            Cheers...

                            B 1 Reply Last reply Reply Quote 2
                            • B
                              beelee @wc_sumpton last edited by

                              @wc_sumpton

                              heh heh

                              just to clarify, the testing hangups are from the github gods 🙂

                              W 1 Reply Last reply Reply Quote 1
                              • W
                                wc_sumpton @beelee last edited by

                                @beelee said in Flags for units not showing:

                                just to clarify, the testing hangups are from the github gods

                                I know, that's why I pulled the PR. But even when testing is included, remember "hasResource", contained testing.

                                What I try to do is submit improvements, what I feel, IMHO, would either enhance gameplay, or map making. Something, I feel no other developer are concerned with.

                                Nuff' with the 📦

                                Cheers...

                                B 1 Reply Last reply Reply Quote 2
                                • B
                                  beelee @wc_sumpton last edited by

                                  @wc_sumpton

                                  yea i get ya, even if you are Lions fan 🙂

                                  Hopefully Victory First finishes his java class and jumps in 🙂

                                  1 Reply Last reply Reply Quote 3
                                  • 1 / 1
                                  • First post
                                    Last post
                                  Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums