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

    flag image file ext

    Scheduled Pinned Locked Moved Map Making
    15 Posts 5 Posters 3.1k 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.
    • MahksM Offline
      Mahks
      last edited by

      I noticed on some maps flags are .gif and some are .png, but the xml file does not specify which. So is the engine testing for every type of image when it loads these?

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

        @mahks .gif and .png are the only 2 that are supported and checked for.

        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
        • RoiEXR Offline
          RoiEX Admin
          last edited by

          As a supporter of the png format:
          We should drop gif support 😛
          (But really migrate the existing images to png!! Because of the filesize and color variety)

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

            @roiex What do you mean? Dropping gif support for flags or generally or for what cases?

            1 Reply Last reply Reply Quote 0
            • RoiEXR Offline
              RoiEX Admin
              last edited by

              @Cernel I was just joking ^^
              But PNG really is superior to gif

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

                @roiex Not necessarily. There is 1 thing PNG cannot do. Look at the notifications of Iron War.
                Something like "WebP" would be absolutely superior to GIF. Would it make any sense to make a feature request to support "WebP", or just no way for java?

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

                  Meaning PNG is superior to GIF except only for the fact that it doesn't support animations.

                  1 Reply Last reply Reply Quote 1
                  • RoiEXR Offline
                    RoiEX Admin
                    last edited by

                    @Cernel I don't think such a feature requests would be feasible right now, simply because SWING is a very old framework that doesn't support new standards.
                    After an UI Migration this might be possible but we don't know yet.

                    Are there some maps using gifs for animations?

                    C 2 Replies Last reply Reply Quote 0
                    • FrostionF Offline
                      Frostion Admin
                      last edited by Frostion

                      Yes, the notification mini movies in Iron War are gif animations.

                      EDIT: I think that rotating globe that one of the maps has is also gif, but I'm not sure.

                      Just out of curiosity, can unit images be animated? Or flags etc. I have only seen animations in notes and notifications.

                      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

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

                        @roiex Are there any other ways at all but GIF to have animations, currently?

                        If the answer to my question is no, then the answer to your question is that all maps having animations are using gif.

                        @Frostion Unless recent changes, I tested all ways and animations on board (like having animated flags or units or decorations) never appeared to work. Only in notes or notifications.

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

                          @frostion Yes. Unless I'm unaware of other rotating stuff, the rotating globe of World At War is a gif, as I'm not aware that can be made any other ways.

                          1 Reply Last reply Reply Quote 0
                          • RoiEXR Offline
                            RoiEX Admin
                            last edited by

                            Yeah, I don't think gifs in map images are possible from a code perspective either.
                            We're loading in the images during the loading of the map and draw it a single time when needed. So animations don't seems to be possible except in HTML contexts

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

                              @roiex I also tried for an animated gif for the cursor and animated images of rolling dice for the custom dice images, but they didn't work, either.

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

                                @roiex said in flag image file ext:

                                After an UI Migration this might be possible but we don't know yet.

                                Cool. My suggestion would be keeping an eye open for anything that allows animation and it is not as limited as GIF. Like the possibility to have videos (MP4?) in the notifications (sounds are already supported), if not "WebP" images.

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

                                  In regards to a new UI and videos, it might also be nice to be able to embed YouTube video into the notes or notifications. Perhaps this could be useful for examples, tutorials, map intros and stuff 🤔

                                  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

                                  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